2023-08-12 16:00:28 +05:30
|
|
|
{{$canWriteProject := and .CanWriteProjects (or (not .Repository) (not .Repository.IsArchived))}}
|
|
|
|
|
2024-04-23 09:47:51 +05:30
|
|
|
<div class="ui container tw-max-w-full">
|
|
|
|
<div class="tw-flex tw-justify-between tw-items-center tw-mb-4 tw-gap-3">
|
|
|
|
<h2 class="tw-mb-0 tw-flex-1 tw-break-anywhere">{{.Project.Title}}</h2>
|
2023-11-27 23:13:52 +05:30
|
|
|
{{if $canWriteProject}}
|
|
|
|
<div class="ui compact mini menu">
|
|
|
|
<a class="item" href="{{.Link}}/edit?redirect=project">
|
|
|
|
{{svg "octicon-pencil"}}
|
|
|
|
{{ctx.Locale.Tr "repo.issues.label_edit"}}
|
|
|
|
</a>
|
|
|
|
{{if .Project.IsClosed}}
|
|
|
|
<button class="item btn link-action" data-url="{{.Link}}/open">
|
|
|
|
{{svg "octicon-check"}}
|
|
|
|
{{ctx.Locale.Tr "repo.projects.open"}}
|
|
|
|
</button>
|
|
|
|
{{else}}
|
|
|
|
<button class="item btn link-action" data-url="{{.Link}}/close">
|
|
|
|
{{svg "octicon-skip"}}
|
|
|
|
{{ctx.Locale.Tr "repo.projects.close"}}
|
|
|
|
</button>
|
|
|
|
{{end}}
|
|
|
|
<button class="item btn delete-button" data-url="{{.Link}}/delete" data-id="{{.Project.ID}}">
|
|
|
|
{{svg "octicon-trash"}}
|
|
|
|
{{ctx.Locale.Tr "repo.issues.label_delete"}}
|
2023-08-12 16:00:28 +05:30
|
|
|
</button>
|
2023-11-27 23:13:52 +05:30
|
|
|
<button class="item btn show-modal" data-modal="#new-project-column-item">
|
|
|
|
{{svg "octicon-plus"}}
|
|
|
|
{{ctx.Locale.Tr "new_project_column"}}
|
2023-08-12 16:00:28 +05:30
|
|
|
</button>
|
2023-01-20 17:12:33 +05:30
|
|
|
</div>
|
2023-11-27 23:13:52 +05:30
|
|
|
<div class="ui small modal new-project-column-modal" id="new-project-column-item">
|
|
|
|
<div class="header">
|
|
|
|
{{ctx.Locale.Tr "repo.projects.column.new"}}
|
|
|
|
</div>
|
|
|
|
<div class="content">
|
|
|
|
<form class="ui form">
|
|
|
|
<div class="required field">
|
|
|
|
<label for="new_project_column">{{ctx.Locale.Tr "repo.projects.column.new_title"}}</label>
|
|
|
|
<input class="new-project-column" id="new_project_column" name="title" required>
|
|
|
|
</div>
|
2023-01-20 17:12:33 +05:30
|
|
|
|
2023-11-27 23:13:52 +05:30
|
|
|
<div class="field color-field">
|
2024-03-15 18:42:08 +05:30
|
|
|
<label for="new_project_column_color_picker">{{ctx.Locale.Tr "repo.projects.column.color"}}</label>
|
2024-03-29 08:30:07 +05:30
|
|
|
<div class="js-color-picker-input column">
|
|
|
|
<input maxlength="7" placeholder="#c320f6" id="new_project_column_color_picker" name="color">
|
2023-11-27 23:13:52 +05:30
|
|
|
{{template "repo/issue/label_precolors"}}
|
|
|
|
</div>
|
2023-07-07 23:36:49 +05:30
|
|
|
</div>
|
2023-01-20 17:12:33 +05:30
|
|
|
|
2023-11-27 23:13:52 +05:30
|
|
|
<div class="text right actions">
|
|
|
|
<button class="ui cancel button">{{ctx.Locale.Tr "settings.cancel"}}</button>
|
|
|
|
<button data-url="{{$.Link}}" class="ui primary button" id="new_project_column_submit">{{ctx.Locale.Tr "repo.projects.column.new_submit"}}</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
2023-01-20 17:12:33 +05:30
|
|
|
</div>
|
2023-11-27 23:13:52 +05:30
|
|
|
{{end}}
|
|
|
|
</div>
|
2023-07-07 20:57:12 +05:30
|
|
|
|
2024-03-01 12:41:51 +05:30
|
|
|
<div class="content">{{$.Project.RenderedContent}}</div>
|
2023-08-12 16:00:28 +05:30
|
|
|
|
2023-11-27 23:13:52 +05:30
|
|
|
<div class="divider"></div>
|
|
|
|
</div>
|
2023-01-20 17:12:33 +05:30
|
|
|
|
2023-07-07 23:36:49 +05:30
|
|
|
<div id="project-board">
|
2024-05-08 19:14:57 +05:30
|
|
|
<div class="board {{if .CanWriteProjects}}sortable{{end}}"{{if .CanWriteProjects}} data-url="{{$.Link}}/move"{{end}}>
|
2023-08-12 16:00:28 +05:30
|
|
|
{{range .Columns}}
|
2024-04-07 21:49:25 +05:30
|
|
|
<div class="ui segment project-column"{{if .Color}} style="background: {{.Color}} !important; color: {{ContrastColor .Color}} !important"{{end}} data-id="{{.ID}}" data-sorting="{{.Sorting}}" data-url="{{$.Link}}/{{.ID}}">
|
2024-03-28 04:50:38 +05:30
|
|
|
<div class="project-column-header{{if $canWriteProject}} tw-cursor-grab{{end}}">
|
Migrate margin and padding helpers to tailwind (#30043)
This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g' {web_src/js,templates,routers,services}/**/*
```
(cherry picked from commit 68ec9b48592fe88765bcc3a73093d43c98b315de)
Conflicts:
routers/web/repo/view.go
templates/base/head_navbar.tmpl
templates/repo/code/recently_pushed_new_branches.tmpl
templates/repo/diff/box.tmpl
templates/repo/diff/compare.tmpl
templates/repo/diff/conversation.tmpl
templates/repo/header.tmpl
templates/repo/issue/filter_list.tmpl
templates/repo/issue/view_content/conversation.tmpl
templates/repo/issue/view_content/sidebar.tmpl
templates/repo/settings/options.tmpl
templates/repo/view_file.tmpl
templates/shared/user/blocked_users.tmpl
templates/status/500.tmpl
web_src/js/components/DashboardRepoList.vue
resolved by prefering Forgejo version and applying the
commands to all files
2024-03-24 22:12:49 +05:30
|
|
|
<div class="ui large label project-column-title tw-py-1">
|
2023-08-12 16:00:28 +05:30
|
|
|
<div class="ui small circular grey label project-column-issue-count">
|
2023-09-29 17:42:54 +05:30
|
|
|
{{.NumIssues ctx}}
|
2023-07-07 23:36:49 +05:30
|
|
|
</div>
|
2024-04-07 21:49:25 +05:30
|
|
|
<span class="project-column-title-label">{{.Title}}</span>
|
2023-08-12 16:00:28 +05:30
|
|
|
</div>
|
2024-03-28 02:24:32 +05:30
|
|
|
{{if $canWriteProject}}
|
2023-08-12 16:00:28 +05:30
|
|
|
<div class="ui dropdown jump item">
|
Migrate margin and padding helpers to tailwind (#30043)
This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g' {web_src/js,templates,routers,services}/**/*
```
(cherry picked from commit 68ec9b48592fe88765bcc3a73093d43c98b315de)
Conflicts:
routers/web/repo/view.go
templates/base/head_navbar.tmpl
templates/repo/code/recently_pushed_new_branches.tmpl
templates/repo/diff/box.tmpl
templates/repo/diff/compare.tmpl
templates/repo/diff/conversation.tmpl
templates/repo/header.tmpl
templates/repo/issue/filter_list.tmpl
templates/repo/issue/view_content/conversation.tmpl
templates/repo/issue/view_content/sidebar.tmpl
templates/repo/settings/options.tmpl
templates/repo/view_file.tmpl
templates/shared/user/blocked_users.tmpl
templates/status/500.tmpl
web_src/js/components/DashboardRepoList.vue
resolved by prefering Forgejo version and applying the
commands to all files
2024-03-24 22:12:49 +05:30
|
|
|
<div class="tw-px-2">
|
2023-08-12 16:00:28 +05:30
|
|
|
{{svg "octicon-kebab-horizontal"}}
|
|
|
|
</div>
|
2023-08-26 08:14:00 +05:30
|
|
|
<div class="menu user-menu">
|
2023-08-12 16:00:28 +05:30
|
|
|
<a class="item show-modal button" data-modal="#edit-project-column-modal-{{.ID}}">
|
|
|
|
{{svg "octicon-pencil"}}
|
|
|
|
{{ctx.Locale.Tr "repo.projects.column.edit"}}
|
2023-01-20 17:12:33 +05:30
|
|
|
</a>
|
2023-08-12 16:00:28 +05:30
|
|
|
{{if not .Default}}
|
|
|
|
<a class="item show-modal button default-project-column-show"
|
2024-03-28 02:24:32 +05:30
|
|
|
data-modal="#default-project-column-modal-{{.ID}}"
|
|
|
|
data-modal-default-project-column-header="{{ctx.Locale.Tr "repo.projects.column.set_default"}}"
|
|
|
|
data-modal-default-project-column-content="{{ctx.Locale.Tr "repo.projects.column.set_default_desc"}}"
|
|
|
|
data-url="{{$.Link}}/{{.ID}}/default">
|
2023-08-12 16:00:28 +05:30
|
|
|
{{svg "octicon-pin"}}
|
|
|
|
{{ctx.Locale.Tr "repo.projects.column.set_default"}}
|
|
|
|
</a>
|
2024-03-28 02:24:32 +05:30
|
|
|
<a class="item show-modal button show-delete-project-column-modal"
|
|
|
|
data-modal="#delete-project-column-modal-{{.ID}}"
|
|
|
|
data-url="{{$.Link}}/{{.ID}}">
|
|
|
|
{{svg "octicon-trash"}}
|
|
|
|
{{ctx.Locale.Tr "repo.projects.column.delete"}}
|
2023-08-12 16:00:28 +05:30
|
|
|
</a>
|
|
|
|
{{end}}
|
2023-01-20 17:12:33 +05:30
|
|
|
|
2023-08-12 16:00:28 +05:30
|
|
|
<div class="ui small modal edit-project-column-modal" id="edit-project-column-modal-{{.ID}}">
|
|
|
|
<div class="header">
|
|
|
|
{{ctx.Locale.Tr "repo.projects.column.edit"}}
|
|
|
|
</div>
|
|
|
|
<div class="content">
|
|
|
|
<form class="ui form">
|
|
|
|
<div class="required field">
|
|
|
|
<label for="new_project_column_title">{{ctx.Locale.Tr "repo.projects.column.edit_title"}}</label>
|
|
|
|
<input class="project-column-title-input" id="new_project_column_title" name="title" value="{{.Title}}" required>
|
|
|
|
</div>
|
2023-01-20 17:12:33 +05:30
|
|
|
|
2023-08-12 16:00:28 +05:30
|
|
|
<div class="field color-field">
|
|
|
|
<label for="new_project_column_color">{{ctx.Locale.Tr "repo.projects.column.color"}}</label>
|
2024-03-29 08:30:07 +05:30
|
|
|
<div class="js-color-picker-input column">
|
|
|
|
<input maxlength="7" placeholder="#c320f6" id="new_project_column_color" name="color" value="{{.Color}}">
|
2023-08-28 19:44:51 +05:30
|
|
|
{{template "repo/issue/label_precolors"}}
|
2023-01-20 17:12:33 +05:30
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2023-08-12 16:00:28 +05:30
|
|
|
<div class="text right actions">
|
|
|
|
<button class="ui cancel button">{{ctx.Locale.Tr "settings.cancel"}}</button>
|
|
|
|
<button data-url="{{$.Link}}/{{.ID}}" class="ui primary button edit-project-column-button">{{ctx.Locale.Tr "repo.projects.column.edit"}}</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
2023-01-20 17:12:33 +05:30
|
|
|
</div>
|
|
|
|
|
2023-08-12 16:00:28 +05:30
|
|
|
<div class="ui g-modal-confirm modal default-project-column-modal" id="default-project-column-modal-{{.ID}}">
|
|
|
|
<div class="header">
|
|
|
|
<span id="default-project-column-header"></span>
|
|
|
|
</div>
|
|
|
|
<div class="content">
|
|
|
|
<label id="default-project-column-content"></label>
|
|
|
|
</div>
|
2023-09-25 02:01:58 +05:30
|
|
|
{{template "base/modal_actions_confirm" (dict "ModalButtonTypes" "confirm")}}
|
2023-01-20 17:12:33 +05:30
|
|
|
</div>
|
|
|
|
|
2023-08-12 16:00:28 +05:30
|
|
|
<div class="ui g-modal-confirm modal" id="delete-project-column-modal-{{.ID}}">
|
|
|
|
<div class="header">
|
|
|
|
{{ctx.Locale.Tr "repo.projects.column.delete"}}
|
|
|
|
</div>
|
|
|
|
<div class="content">
|
|
|
|
<label>
|
|
|
|
{{ctx.Locale.Tr "repo.projects.column.deletion_desc"}}
|
|
|
|
</label>
|
|
|
|
</div>
|
2023-09-25 02:01:58 +05:30
|
|
|
{{template "base/modal_actions_confirm" (dict "ModalButtonTypes" "confirm")}}
|
2023-07-07 23:36:49 +05:30
|
|
|
</div>
|
2023-01-20 17:12:33 +05:30
|
|
|
</div>
|
|
|
|
</div>
|
2023-07-07 23:36:49 +05:30
|
|
|
{{end}}
|
2023-08-12 16:00:28 +05:30
|
|
|
</div>
|
2024-04-07 21:49:25 +05:30
|
|
|
<div class="divider"{{if .Color}} style="color: {{ContrastColor .Color}} !important"{{end}}></div>
|
2024-03-28 04:50:38 +05:30
|
|
|
<div class="ui cards" data-url="{{$.Link}}/{{.ID}}" data-project="{{$.Project.ID}}" data-board="{{.ID}}" id="board_{{.ID}}">
|
2023-08-12 16:00:28 +05:30
|
|
|
{{range (index $.IssuesMap .ID)}}
|
2024-03-04 09:03:20 +05:30
|
|
|
<div class="issue-card gt-word-break {{if $canWriteProject}}tw-cursor-grab{{end}}" data-issue="{{.ID}}">
|
2023-08-12 16:00:28 +05:30
|
|
|
{{template "repo/issue/card" (dict "Issue" . "Page" $)}}
|
2023-01-20 17:12:33 +05:30
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-07-07 23:36:49 +05:30
|
|
|
{{end}}
|
2023-01-20 17:12:33 +05:30
|
|
|
</div>
|
2023-07-07 23:36:49 +05:30
|
|
|
</div>
|
|
|
|
|
2023-03-12 19:06:47 +05:30
|
|
|
{{if .CanWriteProjects}}
|
2023-04-24 16:38:59 +05:30
|
|
|
<div class="ui g-modal-confirm delete modal">
|
2023-04-23 14:54:19 +05:30
|
|
|
<div class="header">
|
2023-01-20 17:12:33 +05:30
|
|
|
{{svg "octicon-trash"}}
|
2023-08-12 16:00:28 +05:30
|
|
|
{{ctx.Locale.Tr "repo.projects.deletion"}}
|
2023-01-20 17:12:33 +05:30
|
|
|
</div>
|
|
|
|
<div class="content">
|
2023-08-12 16:00:28 +05:30
|
|
|
<p>{{ctx.Locale.Tr "repo.projects.deletion_desc"}}</p>
|
2023-01-20 17:12:33 +05:30
|
|
|
</div>
|
2023-04-23 14:54:19 +05:30
|
|
|
{{template "base/modal_actions_confirm" .}}
|
2023-01-20 17:12:33 +05:30
|
|
|
</div>
|
|
|
|
{{end}}
|