|
|
@ -9,21 +9,21 @@ |
|
|
|
<div class="column right aligned"> |
|
|
|
<div class="column right aligned"> |
|
|
|
{{if and .CanWriteProjects (not .Repository.IsArchived)}} |
|
|
|
{{if and .CanWriteProjects (not .Repository.IsArchived)}} |
|
|
|
<a class="ui green button show-modal item" href="{{$.RepoLink}}/issues/new/choose?project={{$.Project.ID}}">{{.locale.Tr "repo.issues.new"}}</a> |
|
|
|
<a class="ui green button show-modal item" href="{{$.RepoLink}}/issues/new/choose?project={{$.Project.ID}}">{{.locale.Tr "repo.issues.new"}}</a> |
|
|
|
<a class="ui green button show-modal item" data-modal="#new-board-item">{{.locale.Tr "new_project_board"}}</a> |
|
|
|
<a class="ui green button show-modal item" data-modal="#new-board-item">{{.locale.Tr "new_project_column"}}</a> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
<div class="ui small modal new-board-modal" id="new-board-item"> |
|
|
|
<div class="ui small modal new-board-modal" id="new-board-item"> |
|
|
|
<div class="header"> |
|
|
|
<div class="header"> |
|
|
|
{{$.locale.Tr "repo.projects.board.new"}} |
|
|
|
{{$.locale.Tr "repo.projects.column.new"}} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="content"> |
|
|
|
<div class="content"> |
|
|
|
<form class="ui form"> |
|
|
|
<form class="ui form"> |
|
|
|
<div class="required field"> |
|
|
|
<div class="required field"> |
|
|
|
<label for="new_board">{{$.locale.Tr "repo.projects.board.new_title"}}</label> |
|
|
|
<label for="new_board">{{$.locale.Tr "repo.projects.column.new_title"}}</label> |
|
|
|
<input class="new-board" id="new_board" name="title" required> |
|
|
|
<input class="new-board" id="new_board" name="title" required> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="field color-field"> |
|
|
|
<div class="field color-field"> |
|
|
|
<label for="new_board_color">{{$.locale.Tr "repo.projects.board.color"}}</label> |
|
|
|
<label for="new_board_color">{{$.locale.Tr "repo.projects.column.color"}}</label> |
|
|
|
<div class="color picker column"> |
|
|
|
<div class="color picker column"> |
|
|
|
<input class="color-picker" maxlength="7" placeholder="#c320f6" id="new_board_color_picker" name="color"> |
|
|
|
<input class="color-picker" maxlength="7" placeholder="#c320f6" id="new_board_color_picker" name="color"> |
|
|
|
<div class="column precolors"> |
|
|
|
<div class="column precolors"> |
|
|
@ -34,7 +34,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
<div class="text right actions"> |
|
|
|
<div class="text right actions"> |
|
|
|
<div class="ui cancel button">{{$.locale.Tr "settings.cancel"}}</div> |
|
|
|
<div class="ui cancel button">{{$.locale.Tr "settings.cancel"}}</div> |
|
|
|
<button data-url="{{$.RepoLink}}/projects/{{$.Project.ID}}" class="ui green button" id="new_board_submit">{{$.locale.Tr "repo.projects.board.new_submit"}}</button> |
|
|
|
<button data-url="{{$.RepoLink}}/projects/{{$.Project.ID}}" class="ui primary button" id="new_board_submit">{{$.locale.Tr "repo.projects.column.new_submit"}}</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</form> |
|
|
|
</form> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -96,32 +96,32 @@ |
|
|
|
<div class="menu user-menu" tabindex="-1"> |
|
|
|
<div class="menu user-menu" tabindex="-1"> |
|
|
|
<a class="item show-modal button" data-modal="#edit-project-board-modal-{{.ID}}"> |
|
|
|
<a class="item show-modal button" data-modal="#edit-project-board-modal-{{.ID}}"> |
|
|
|
{{svg "octicon-pencil"}} |
|
|
|
{{svg "octicon-pencil"}} |
|
|
|
{{$.locale.Tr "repo.projects.board.edit"}} |
|
|
|
{{$.locale.Tr "repo.projects.column.edit"}} |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
{{if not .Default}} |
|
|
|
{{if not .Default}} |
|
|
|
<a class="item show-modal button" data-modal="#set-default-project-board-modal-{{.ID}}"> |
|
|
|
<a class="item show-modal button" data-modal="#set-default-project-board-modal-{{.ID}}"> |
|
|
|
{{svg "octicon-pin"}} |
|
|
|
{{svg "octicon-pin"}} |
|
|
|
{{$.locale.Tr "repo.projects.board.set_default"}} |
|
|
|
{{$.locale.Tr "repo.projects.column.set_default"}} |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
<a class="item show-modal button" data-modal="#delete-board-modal-{{.ID}}"> |
|
|
|
<a class="item show-modal button" data-modal="#delete-board-modal-{{.ID}}"> |
|
|
|
{{svg "octicon-trash"}} |
|
|
|
{{svg "octicon-trash"}} |
|
|
|
{{$.locale.Tr "repo.projects.board.delete"}} |
|
|
|
{{$.locale.Tr "repo.projects.column.delete"}} |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
|
|
|
|
|
|
|
|
<div class="ui small modal edit-project-board" id="edit-project-board-modal-{{.ID}}"> |
|
|
|
<div class="ui small modal edit-project-board" id="edit-project-board-modal-{{.ID}}"> |
|
|
|
<div class="header"> |
|
|
|
<div class="header"> |
|
|
|
{{$.locale.Tr "repo.projects.board.edit"}} |
|
|
|
{{$.locale.Tr "repo.projects.column.edit"}} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="content"> |
|
|
|
<div class="content"> |
|
|
|
<form class="ui form"> |
|
|
|
<form class="ui form"> |
|
|
|
<div class="required field"> |
|
|
|
<div class="required field"> |
|
|
|
<label for="new_board_title">{{$.locale.Tr "repo.projects.board.edit_title"}}</label> |
|
|
|
<label for="new_board_title">{{$.locale.Tr "repo.projects.column.edit_title"}}</label> |
|
|
|
<input class="project-board-title" id="new_board_title" name="title" value="{{.Title}}" required> |
|
|
|
<input class="project-board-title" id="new_board_title" name="title" value="{{.Title}}" required> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="field color-field"> |
|
|
|
<div class="field color-field"> |
|
|
|
<label for="new_board_color">{{$.locale.Tr "repo.projects.board.color"}}</label> |
|
|
|
<label for="new_board_color">{{$.locale.Tr "repo.projects.column.color"}}</label> |
|
|
|
<div class="color picker column"> |
|
|
|
<div class="color picker column"> |
|
|
|
<input class="color-picker" maxlength="7" placeholder="#c320f6" id="new_board_color" name="color" value="{{.Color}}"> |
|
|
|
<input class="color-picker" maxlength="7" placeholder="#c320f6" id="new_board_color" name="color" value="{{.Color}}"> |
|
|
|
<div class="column precolors"> |
|
|
|
<div class="column precolors"> |
|
|
@ -132,7 +132,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
<div class="text right actions"> |
|
|
|
<div class="text right actions"> |
|
|
|
<div class="ui cancel button">{{$.locale.Tr "settings.cancel"}}</div> |
|
|
|
<div class="ui cancel button">{{$.locale.Tr "settings.cancel"}}</div> |
|
|
|
<button data-url="{{$.RepoLink}}/projects/{{$.Project.ID}}/{{.ID}}" class="ui red button">{{$.locale.Tr "repo.projects.board.edit"}}</button> |
|
|
|
<button data-url="{{$.RepoLink}}/projects/{{$.Project.ID}}/{{.ID}}" class="ui primary button">{{$.locale.Tr "repo.projects.column.edit"}}</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</form> |
|
|
|
</form> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -140,31 +140,31 @@ |
|
|
|
|
|
|
|
|
|
|
|
<div class="ui basic modal" id="set-default-project-board-modal-{{.ID}}"> |
|
|
|
<div class="ui basic modal" id="set-default-project-board-modal-{{.ID}}"> |
|
|
|
<div class="ui icon header"> |
|
|
|
<div class="ui icon header"> |
|
|
|
{{$.locale.Tr "repo.projects.board.set_default"}} |
|
|
|
{{$.locale.Tr "repo.projects.column.set_default"}} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="content center"> |
|
|
|
<div class="content center"> |
|
|
|
<label> |
|
|
|
<label> |
|
|
|
{{$.locale.Tr "repo.projects.board.set_default_desc"}} |
|
|
|
{{$.locale.Tr "repo.projects.column.set_default_desc"}} |
|
|
|
</label> |
|
|
|
</label> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="text right actions"> |
|
|
|
<div class="text right actions"> |
|
|
|
<div class="ui cancel button">{{$.locale.Tr "settings.cancel"}}</div> |
|
|
|
<div class="ui cancel button">{{$.locale.Tr "settings.cancel"}}</div> |
|
|
|
<button class="ui red button set-default-project-board" data-url="{{$.RepoLink}}/projects/{{$.Project.ID}}/{{.ID}}/default">{{$.locale.Tr "repo.projects.board.set_default"}}</button> |
|
|
|
<button class="ui primary button set-default-project-board" data-url="{{$.RepoLink}}/projects/{{$.Project.ID}}/{{.ID}}/default">{{$.locale.Tr "repo.projects.column.set_default"}}</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="ui basic modal" id="delete-board-modal-{{.ID}}"> |
|
|
|
<div class="ui basic modal" id="delete-board-modal-{{.ID}}"> |
|
|
|
<div class="ui icon header"> |
|
|
|
<div class="ui icon header"> |
|
|
|
{{$.locale.Tr "repo.projects.board.delete"}} |
|
|
|
{{$.locale.Tr "repo.projects.column.delete"}} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="content center"> |
|
|
|
<div class="content center"> |
|
|
|
<label> |
|
|
|
<label> |
|
|
|
{{$.locale.Tr "repo.projects.board.deletion_desc"}} |
|
|
|
{{$.locale.Tr "repo.projects.column.deletion_desc"}} |
|
|
|
</label> |
|
|
|
</label> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="text right actions"> |
|
|
|
<div class="text right actions"> |
|
|
|
<div class="ui cancel button">{{$.locale.Tr "settings.cancel"}}</div> |
|
|
|
<div class="ui cancel button">{{$.locale.Tr "settings.cancel"}}</div> |
|
|
|
<button class="ui red button delete-project-board" data-url="{{$.RepoLink}}/projects/{{$.Project.ID}}/{{.ID}}">{{$.locale.Tr "repo.projects.board.delete"}}</button> |
|
|
|
<button class="ui red button delete-project-board" data-url="{{$.RepoLink}}/projects/{{$.Project.ID}}/{{.ID}}">{{$.locale.Tr "repo.projects.column.delete"}}</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -249,7 +249,7 @@ |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
<div class="right floated"> |
|
|
|
<div class="right floated"> |
|
|
|
{{range .Assignees}} |
|
|
|
{{range .Assignees}} |
|
|
|
<a class="tooltip" target="_blank" href="{{.HomeLink}}" data-content="{{$.locale.Tr "repo.projects.board.assigned_to"}} {{.Name}}">{{avatar $.Context . 28 "mini gt-mr-3"}}</a> |
|
|
|
<a class="tooltip" target="_blank" href="{{.HomeLink}}" data-content="{{$.locale.Tr "repo.projects.column.assigned_to"}} {{.Name}}">{{avatar $.Context . 28 "mini gt-mr-3"}}</a> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|