Replace some gt-
classes with tw-
(#29570)
Replace 18 `gt-` prefixes with `tw-` with perl replacement. I manually checked them all with `rg` afterwards. (cherry picked from commit a2e90014ec20a1085449a66061389cfe0d12260f) Conflicts: templates/repo/header.tmpl because some of the header moved to header_fork.tmpl
This commit is contained in:
parent
4dbf2d7c11
commit
2e9ca0597d
41 changed files with 50 additions and 70 deletions
|
@ -6,7 +6,7 @@
|
|||
{{if .PinnedIssues}}
|
||||
<div id="issue-pins" {{if .IsRepoAdmin}}data-is-repo-admin{{end}}>
|
||||
{{range .PinnedIssues}}
|
||||
<div class="issue-card gt-word-break {{if $.IsRepoAdmin}}gt-cursor-grab{{end}}" data-move-url="{{$.Link}}/move_pin" data-issue-id="{{.ID}}">
|
||||
<div class="issue-card gt-word-break {{if $.IsRepoAdmin}}tw-cursor-grab{{end}}" data-move-url="{{$.Link}}/move_pin" data-issue-id="{{.ID}}">
|
||||
{{template "repo/issue/card" (dict "Issue" . "Page" $ "isPinnedIssueCard" true)}}
|
||||
</div>
|
||||
{{end}}
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
<textarea name="content">{{.content}}</textarea>
|
||||
</div>
|
||||
<div class="divider"></div>
|
||||
<div class="gt-text-right">
|
||||
<div class="tw-text-right">
|
||||
{{if .PageIsEditMilestone}}
|
||||
<a class="ui primary basic button" href="{{.RepoLink}}/milestones">
|
||||
{{ctx.Locale.Tr "repo.milestones.cancel"}}
|
||||
|
|
|
@ -114,7 +114,7 @@
|
|||
</div>
|
||||
</div>
|
||||
{{else if .Repository.IsArchived}}
|
||||
<div class="ui warning message gt-text-center">
|
||||
<div class="ui warning message tw-text-center">
|
||||
{{if .Issue.IsPull}}
|
||||
{{ctx.Locale.Tr "repo.archive.pull.nocomment"}}
|
||||
{{else}}
|
||||
|
@ -124,7 +124,7 @@
|
|||
{{end}}
|
||||
{{else}} {{/* not .IsSigned */}}
|
||||
{{if .Repository.IsArchived}}
|
||||
<div class="ui warning message gt-text-center">
|
||||
<div class="ui warning message tw-text-center">
|
||||
{{if .Issue.IsPull}}
|
||||
{{ctx.Locale.Tr "repo.archive.pull.nocomment"}}
|
||||
{{else}}
|
||||
|
|
|
@ -566,7 +566,7 @@
|
|||
{{end}}
|
||||
</span>
|
||||
{{if and .IsForcePush $.Issue.PullRequest.BaseRepo.Name}}
|
||||
<span class="gt-float-right comparebox">
|
||||
<span class="tw-float-right comparebox">
|
||||
<a href="{{$.Issue.PullRequest.BaseRepo.Link}}/compare/{{PathEscape .OldCommit}}..{{PathEscape .NewCommit}}" rel="nofollow" class="ui compare label">{{ctx.Locale.Tr "repo.issues.force_push_compare"}}</a>
|
||||
</span>
|
||||
{{end}}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{{if and .comment.Time (.ctxData.Repository.IsTimetrackerEnabled ctx)}} {{/* compatibility with time comments made before v1.14 */}}
|
||||
{{if (not .comment.Time.Deleted)}}
|
||||
{{if (or .ctxData.IsAdmin (and .ctxData.IsSigned (eq .ctxData.SignedUserID .comment.PosterID)))}}
|
||||
<span class="gt-float-right">
|
||||
<span class="tw-float-right">
|
||||
<div class="ui mini modal issue-delete-time-modal" data-id="{{.comment.Time.ID}}">
|
||||
<form method="post" class="delete-time-form" action="{{.ctxData.RepoLink}}/issues/{{.ctxData.Issue.Index}}/times/{{.comment.TimeID}}/delete">
|
||||
{{.ctxData.CsrfTokenHtml}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue