2023-02-21 08:36:53 -05:00
|
|
|
<div id="review-box">
|
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 11:42:49 -05:00
|
|
|
<button class="ui tiny primary button tw-pr-1 tw-flex js-btn-review {{if not $.IsShowingAllCommits}}disabled{{end}}" {{if not $.IsShowingAllCommits}}data-tooltip-content="{{ctx.Locale.Tr "repo.pulls.review_only_possible_for_full_diff"}}"{{end}}>
|
2023-09-25 03:56:50 -05:00
|
|
|
{{ctx.Locale.Tr "repo.diff.review"}}
|
2022-05-07 00:35:12 -05:00
|
|
|
<span class="ui small label review-comments-counter" data-pending-comment-number="{{.PendingCodeCommentNumber}}">{{.PendingCodeCommentNumber}}</span>
|
2020-10-31 17:15:11 -05:00
|
|
|
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
|
2023-02-21 08:36:53 -05:00
|
|
|
</button>
|
2023-07-28 14:18:12 -05:00
|
|
|
{{if $.IsShowingAllCommits}}
|
2023-03-17 12:24:00 -05:00
|
|
|
<div class="review-box-panel tippy-target">
|
2023-02-21 08:36:53 -05:00
|
|
|
<div class="ui segment">
|
2023-06-14 03:01:37 -05:00
|
|
|
<form class="ui form form-fetch-action" action="{{.Link}}/reviews/submit" method="post">
|
2023-04-03 05:06:57 -05:00
|
|
|
{{.CsrfTokenHtml}}
|
2023-03-27 11:05:51 -05:00
|
|
|
<input type="hidden" name="commit_id" value="{{.AfterCommitID}}">
|
2024-03-22 14:51:29 -05:00
|
|
|
<div class="field tw-flex tw-items-center">
|
2024-03-22 08:45:10 -05:00
|
|
|
<div class="tw-flex-1">{{ctx.Locale.Tr "repo.diff.review.header"}}</div>
|
2023-05-12 05:53:41 -05:00
|
|
|
<a class="muted close">{{svg "octicon-x" 16}}</a>
|
2018-08-05 23:43:22 -05:00
|
|
|
</div>
|
2023-05-12 05:53:41 -05:00
|
|
|
<div class="field">
|
2023-04-03 05:06:57 -05:00
|
|
|
{{template "shared/combomarkdowneditor" (dict
|
2023-05-12 05:53:41 -05:00
|
|
|
"MarkdownPreviewUrl" (print .Repository.Link "/markup")
|
|
|
|
"MarkdownPreviewContext" .RepoLink
|
2023-04-03 05:06:57 -05:00
|
|
|
"TextareaName" "content"
|
2023-09-25 03:56:50 -05:00
|
|
|
"TextareaPlaceholder" (ctx.Locale.Tr "repo.diff.review.placeholder")
|
2023-04-03 05:06:57 -05:00
|
|
|
"DropzoneParentContainer" "form"
|
|
|
|
)}}
|
2018-08-05 23:43:22 -05:00
|
|
|
</div>
|
2021-06-14 20:12:33 -05:00
|
|
|
{{if .IsAttachmentEnabled}}
|
|
|
|
<div class="field">
|
|
|
|
{{template "repo/upload" .}}
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2023-06-29 07:24:22 -05:00
|
|
|
<div class="divider"></div>
|
2023-03-20 16:54:23 -05:00
|
|
|
{{$showSelfTooltip := (and $.IsSigned ($.Issue.IsPoster $.SignedUser.ID))}}
|
2024-04-27 06:55:03 -05:00
|
|
|
{{if not $.Issue.IsClosed}}
|
|
|
|
{{if $showSelfTooltip}}
|
|
|
|
<span class="tw-inline-block" data-tooltip-content="{{ctx.Locale.Tr "repo.diff.review.self_approve"}}">
|
|
|
|
<button type="submit" name="type" value="approve" disabled class="ui submit primary tiny button btn-submit">{{ctx.Locale.Tr "repo.diff.review.approve"}}</button>
|
|
|
|
</span>
|
|
|
|
{{else}}
|
|
|
|
<button type="submit" name="type" value="approve" class="ui submit primary tiny button btn-submit">{{ctx.Locale.Tr "repo.diff.review.approve"}}</button>
|
|
|
|
{{end}}
|
2023-03-20 16:54:23 -05:00
|
|
|
{{end}}
|
2023-09-25 03:56:50 -05:00
|
|
|
<button type="submit" name="type" value="comment" class="ui submit tiny basic button btn-submit">{{ctx.Locale.Tr "repo.diff.review.comment"}}</button>
|
2024-04-27 06:55:03 -05:00
|
|
|
{{if not $.Issue.IsClosed}}
|
|
|
|
{{if $showSelfTooltip}}
|
|
|
|
<span class="tw-inline-block" data-tooltip-content="{{ctx.Locale.Tr "repo.diff.review.self_reject"}}">
|
|
|
|
<button type="submit" name="type" value="reject" disabled class="ui submit red tiny button btn-submit">{{ctx.Locale.Tr "repo.diff.review.reject"}}</button>
|
|
|
|
</span>
|
|
|
|
{{else}}
|
|
|
|
<button type="submit" name="type" value="reject" class="ui submit red tiny button btn-submit">{{ctx.Locale.Tr "repo.diff.review.reject"}}</button>
|
|
|
|
{{end}}
|
2023-03-20 16:54:23 -05:00
|
|
|
{{end}}
|
2018-08-05 23:43:22 -05:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-07-28 14:18:12 -05:00
|
|
|
{{end}}
|
2018-08-05 23:43:22 -05:00
|
|
|
</div>
|