mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-27 00:23:41 +09:00 
			
		
		
		
	Replace some gt- classes with tw- (#29570)
				
					
				
			Replace 18 `gt-` prefixes with `tw-` with perl replacement. I manually checked them all with `rg` afterwards.
This commit is contained in:
		| @@ -31,7 +31,7 @@ | ||||
| 						<tr> | ||||
| 							<th></th> | ||||
| 							<th colspan="5"> | ||||
| 								<form class="gt-float-right" method="post" action="{{AppSubUrl}}/admin/notices/empty"> | ||||
| 								<form class="tw-float-right" method="post" action="{{AppSubUrl}}/admin/notices/empty"> | ||||
| 									{{.CsrfTokenHtml}} | ||||
| 									<button type="submit" class="ui red small button">{{ctx.Locale.Tr "admin.notices.delete_all"}}</button> | ||||
| 								</form> | ||||
|   | ||||
| @@ -7,7 +7,7 @@ | ||||
| 				{{if .Org.Visibility.IsLimited}}<span class="ui large basic horizontal label">{{ctx.Locale.Tr "org.settings.visibility.limited_shortname"}}</span>{{end}} | ||||
| 				{{if .Org.Visibility.IsPrivate}}<span class="ui large basic horizontal label">{{ctx.Locale.Tr "org.settings.visibility.private_shortname"}}</span>{{end}} | ||||
| 			</span> | ||||
| 			<span class="gt-df gt-ac gt-gap-2 gt-ml-auto gt-font-16 gt-whitespace-nowrap"> | ||||
| 			<span class="gt-df gt-ac gt-gap-2 gt-ml-auto gt-font-16 tw-whitespace-nowrap"> | ||||
| 				{{if .EnableFeed}} | ||||
| 					<a class="ui basic label button gt-mr-0" href="{{.Org.HomeLink}}.rss" data-tooltip-content="{{ctx.Locale.Tr "rss_feed"}}"> | ||||
| 						{{svg "octicon-rss" 24}} | ||||
|   | ||||
| @@ -87,7 +87,7 @@ | ||||
| 				{{end}} | ||||
| 				<div class="divider"></div> | ||||
| 				<strong>{{ctx.Locale.Tr "packages.versions"}} ({{.TotalVersionCount}})</strong> | ||||
| 				<a class="gt-float-right" href="{{$.PackageDescriptor.PackageWebLink}}/versions">{{ctx.Locale.Tr "packages.versions.view_all"}}</a> | ||||
| 				<a class="tw-float-right" href="{{$.PackageDescriptor.PackageWebLink}}/versions">{{ctx.Locale.Tr "packages.versions.view_all"}}</a> | ||||
| 				<div class="ui relaxed list"> | ||||
| 				{{range .LatestVersions}} | ||||
| 					<div class="item gt-df"> | ||||
|   | ||||
| @@ -10,7 +10,7 @@ | ||||
| 				{{ctx.Locale.PrettyNumber .ClosedCount}} {{ctx.Locale.Tr "repo.issues.closed_title"}} | ||||
| 			</a> | ||||
| 		</div> | ||||
| 		<div class="gt-text-right"> | ||||
| 		<div class="tw-text-right"> | ||||
| 			<a class="ui small primary button" href="{{$.Link}}/new">{{ctx.Locale.Tr "repo.projects.new"}}</a> | ||||
| 		</div> | ||||
| 	</div> | ||||
|   | ||||
| @@ -55,7 +55,7 @@ | ||||
| 		</div> | ||||
| 	</div> | ||||
| 	<div class="divider"></div> | ||||
| 	<div class="gt-text-right"> | ||||
| 	<div class="tw-text-right"> | ||||
| 		<a class="ui cancel button" href="{{$.CancelLink}}"> | ||||
| 			{{ctx.Locale.Tr "repo.milestones.cancel"}} | ||||
| 		</a> | ||||
|   | ||||
| @@ -165,9 +165,9 @@ | ||||
|  | ||||
| 				<div class="divider"></div> | ||||
|  | ||||
| 				<div class="ui cards {{if and $canWriteProject (ne .ID 0)}}{{/* ID 0 is default column which cannot be moved */}}gt-cursor-grab{{end}}" data-url="{{$.Link}}/{{.ID}}" data-project="{{$.Project.ID}}" data-board="{{.ID}}" id="board_{{.ID}}"> | ||||
| 				<div class="ui cards {{if and $canWriteProject (ne .ID 0)}}{{/* ID 0 is default column which cannot be moved */}}tw-cursor-grab{{end}}" data-url="{{$.Link}}/{{.ID}}" data-project="{{$.Project.ID}}" data-board="{{.ID}}" id="board_{{.ID}}"> | ||||
| 					{{range (index $.IssuesMap .ID)}} | ||||
| 						<div class="issue-card gt-word-break {{if $canWriteProject}}gt-cursor-grab{{end}}" data-issue="{{.ID}}"> | ||||
| 						<div class="issue-card gt-word-break {{if $canWriteProject}}tw-cursor-grab{{end}}" data-issue="{{.ID}}"> | ||||
| 							{{template "repo/issue/card" (dict "Issue" . "Page" $)}} | ||||
| 						</div> | ||||
| 					{{end}} | ||||
|   | ||||
| @@ -72,7 +72,7 @@ | ||||
| 				<div class="gt-df gt-ac"> | ||||
| 					{{ctx.Locale.Tr "repo.branches"}} | ||||
| 				</div> | ||||
| 				<div class="gt-whitespace-nowrap"> | ||||
| 				<div class="tw-whitespace-nowrap"> | ||||
| 					<form class="ignore-dirty" method="get"> | ||||
| 						<div class="ui tiny search input"> | ||||
| 							<input name="q" placeholder="{{ctx.Locale.Tr "repo.branch.search"}}" value="{{.Keyword}}" autofocus> | ||||
|   | ||||
| @@ -184,7 +184,7 @@ | ||||
| 				</div> | ||||
| 		</div> | ||||
| 		{{if .Commit.Signature}} | ||||
| 			<div class="ui bottom attached message gt-text-left gt-df gt-ac gt-sb commit-header-row gt-fw gt-mb-0 {{$class}}"> | ||||
| 			<div class="ui bottom attached message tw-text-left gt-df gt-ac gt-sb commit-header-row gt-fw gt-mb-0 {{$class}}"> | ||||
| 				<div class="gt-df gt-ac"> | ||||
| 					{{if .Verification.Verified}} | ||||
| 						{{if ne .Verification.SigningUser.ID 0}} | ||||
|   | ||||
| @@ -13,7 +13,7 @@ | ||||
|  | ||||
| 		{{$commitLink:= printf "%s/commit/%s" $.comment.Issue.PullRequest.BaseRepo.Link (PathEscape .ID.String)}} | ||||
|  | ||||
| 		<span class="shabox gt-df gt-ac gt-float-right"> | ||||
| 		<span class="shabox gt-df gt-ac tw-float-right"> | ||||
| 			{{template "repo/commit_statuses" dict "Status" .Status "Statuses" .Statuses}} | ||||
| 			{{$class := "ui sha label"}} | ||||
| 			{{if .Signature}} | ||||
|   | ||||
| @@ -8,7 +8,7 @@ | ||||
| 			{{ctx.Locale.Tr "repo.commits.no_commits" $.BaseBranch $.HeadBranch}} | ||||
| 		{{end}} | ||||
| 	</div> | ||||
| 	<div class="commits-table-right gt-whitespace-nowrap"> | ||||
| 	<div class="commits-table-right tw-whitespace-nowrap"> | ||||
| 		{{if .PageIsCommits}} | ||||
| 			<form class="ignore-dirty" action="{{.RepoLink}}/commits/{{.BranchNameSubURL}}/search"> | ||||
| 				<div class="ui tiny search input"> | ||||
|   | ||||
| @@ -25,7 +25,7 @@ | ||||
| 		</div> | ||||
| 		<div class="diff-detail-actions"> | ||||
| 			{{if and .PageIsPullFiles $.SignedUserID (not .IsArchived) (not .DiffNotAvailable)}} | ||||
| 				<div class="not-mobile gt-df gt-ac gt-fc gt-whitespace-nowrap gt-mr-2"> | ||||
| 				<div class="not-mobile gt-df gt-ac gt-fc tw-whitespace-nowrap gt-mr-2"> | ||||
| 					<label for="viewed-files-summary" id="viewed-files-summary-label" data-text-changed-template="{{ctx.Locale.Tr "repo.pulls.viewed_files_label"}}"> | ||||
| 						{{ctx.Locale.Tr "repo.pulls.viewed_files_label" .Diff.NumViewedFiles .Diff.NumFiles}} | ||||
| 					</label> | ||||
| @@ -202,7 +202,7 @@ | ||||
| 							</div> | ||||
| 							{{if $showFileViewToggle}} | ||||
| 								{{/* for image or CSV, it can have a horizontal scroll bar, there won't be review comment context menu (position absolute) which would be clipped by "overflow" */}} | ||||
| 								<div id="diff-rendered-{{$file.NameHash}}" class="file-body file-code {{if $.IsSplitStyle}}code-diff-split{{else}}code-diff-unified{{end}} gt-overflow-x-scroll"> | ||||
| 								<div id="diff-rendered-{{$file.NameHash}}" class="file-body file-code {{if $.IsSplitStyle}}code-diff-split{{else}}code-diff-unified{{end}} tw-overflow-x-scroll"> | ||||
| 									<table class="chroma tw-w-full"> | ||||
| 										{{if $isImage}} | ||||
| 											{{template "repo/diff/image_diff" dict "file" . "root" $ "blobBase" $blobBase "blobHead" $blobHead "sniffedTypeBase" $sniffedTypeBase "sniffedTypeHead" $sniffedTypeHead}} | ||||
|   | ||||
| @@ -27,7 +27,7 @@ | ||||
|  | ||||
| 		<div class="field footer gt-mx-3"> | ||||
| 			<span class="markup-info">{{svg "octicon-markup"}} {{ctx.Locale.Tr "repo.diff.comment.markdown_info"}}</span> | ||||
| 			<div class="gt-text-right"> | ||||
| 			<div class="tw-text-right"> | ||||
| 				{{if $.reply}} | ||||
| 					<button class="ui submit primary tiny button btn-reply" type="submit">{{ctx.Locale.Tr "repo.diff.comment.reply"}}</button> | ||||
| 					<input type="hidden" name="reply" value="{{$.reply}}"> | ||||
|   | ||||
| @@ -208,7 +208,7 @@ | ||||
| 					<button class="ui button primary show-form">{{ctx.Locale.Tr "repo.pulls.new"}}</button> | ||||
| 				</div> | ||||
| 			{{else if .Repository.IsArchived}} | ||||
| 				<div class="ui warning message gt-text-center"> | ||||
| 				<div class="ui warning message tw-text-center"> | ||||
| 					{{if .Repository.ArchivedUnix.IsZero}} | ||||
| 						{{ctx.Locale.Tr "repo.archive.title"}} | ||||
| 					{{else}} | ||||
|   | ||||
| @@ -6,7 +6,7 @@ | ||||
| 			<div class="sixteen wide column content"> | ||||
| 				{{template "base/alert" .}} | ||||
| 				{{if .Repository.IsArchived}} | ||||
| 					<div class="ui warning message gt-text-center"> | ||||
| 					<div class="ui warning message tw-text-center"> | ||||
| 						{{if .Repository.ArchivedUnix.IsZero}} | ||||
| 							{{ctx.Locale.Tr "repo.archive.title"}} | ||||
| 						{{else}} | ||||
|   | ||||
| @@ -93,7 +93,7 @@ | ||||
| 								<div class="header"> | ||||
| 									{{ctx.Locale.Tr "repo.already_forked" .Name}} | ||||
| 								</div> | ||||
| 								<div class="content gt-text-left"> | ||||
| 								<div class="content tw-text-left"> | ||||
| 									<div class="ui list"> | ||||
| 										{{range $.UserAndOrgForks}} | ||||
| 											<div class="ui item gt-py-3"> | ||||
|   | ||||
| @@ -41,7 +41,7 @@ | ||||
| 					<input type="hidden" name="topics" value="{{range $i, $v := .Topics}}{{.Name}}{{if Eval $i "+" 1 "<" (len $.Topics)}},{{end}}{{end}}"> | ||||
| 					{{range .Topics}} | ||||
| 						{{/* keey the same layout as Fomantic UI generated labels */}} | ||||
| 						<a class="ui label transition visible gt-cursor-default gt-dib" data-value="{{.Name}}">{{.Name}}{{svg "octicon-x" 16 "delete icon"}}</a> | ||||
| 						<a class="ui label transition visible tw-cursor-default gt-dib" data-value="{{.Name}}">{{.Name}}{{svg "octicon-x" 16 "delete icon"}}</a> | ||||
| 					{{end}} | ||||
| 					<div class="text"></div> | ||||
| 				</div> | ||||
| @@ -53,7 +53,7 @@ | ||||
| 		</div> | ||||
| 		{{end}} | ||||
| 		{{if .Repository.IsArchived}} | ||||
| 			<div class="ui warning message gt-text-center"> | ||||
| 			<div class="ui warning message tw-text-center"> | ||||
| 				{{if .Repository.ArchivedUnix.IsZero}} | ||||
| 					{{ctx.Locale.Tr "repo.archive.title"}} | ||||
| 				{{else}} | ||||
|   | ||||
| @@ -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}} | ||||
|   | ||||
| @@ -562,7 +562,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}} | ||||
|   | ||||
| @@ -16,10 +16,10 @@ | ||||
| 							{{svg (printf "gitea-%s" .Name) 184}} | ||||
| 						{{end}} | ||||
| 						<div class="content"> | ||||
| 							<div class="header gt-text-center"> | ||||
| 							<div class="header tw-text-center"> | ||||
| 								{{.Title}} | ||||
| 							</div> | ||||
| 							<div class="description gt-text-center"> | ||||
| 							<div class="description tw-text-center"> | ||||
| 								{{ctx.Locale.Tr (printf "repo.migrate.%s.description" .Name)}} | ||||
| 							</div> | ||||
| 						</div> | ||||
|   | ||||
| @@ -64,7 +64,7 @@ | ||||
| 						<div class="flex-text-inline gt-f1"> | ||||
| 							<input name="attachment-edit-{{.UUID}}"  class="attachment_edit" required value="{{.Name}}"> | ||||
| 							<input name="attachment-del-{{.UUID}}" type="hidden" value="false"> | ||||
| 							<span class="ui text grey gt-whitespace-nowrap">{{.Size | FileSize}}</span> | ||||
| 							<span class="ui text grey tw-whitespace-nowrap">{{.Size | FileSize}}</span> | ||||
| 							<span data-tooltip-content="{{ctx.Locale.Tr "repo.release.download_count" (ctx.Locale.PrettyNumber .DownloadCount)}}"> | ||||
| 								{{svg "octicon-info"}} | ||||
| 							</span> | ||||
|   | ||||
| @@ -1,7 +1,7 @@ | ||||
| {{template "repo/settings/layout_head" (dict "ctxData" . "pageClass" "repository settings edit")}} | ||||
| 	<div class="repo-setting-content"> | ||||
| 		{{if .Repository.IsArchived}} | ||||
| 			<div class="ui warning message gt-text-center"> | ||||
| 			<div class="ui warning message tw-text-center"> | ||||
| 				{{ctx.Locale.Tr "repo.settings.archive.branchsettings_unavailable"}} | ||||
| 			</div> | ||||
| 		{{else}} | ||||
|   | ||||
| @@ -12,7 +12,7 @@ | ||||
| 					<div class="item truncated-item-container"> | ||||
| 						<span class="text {{if .IsActive}}green{{else}}grey{{end}} gt-mr-3">{{svg "octicon-dot-fill" 22}}</span> | ||||
| 						<span class="text truncate gt-f1 gt-mr-3">{{.Name}}</span> | ||||
| 						<a class="muted gt-float-right gt-p-3" href="{{$.RepoLink}}/settings/hooks/git/{{.Name|PathEscape}}"> | ||||
| 						<a class="muted tw-float-right gt-p-3" href="{{$.RepoLink}}/settings/hooks/git/{{.Name|PathEscape}}"> | ||||
| 							{{svg "octicon-pencil"}} | ||||
| 						</a> | ||||
| 					</div> | ||||
|   | ||||
| @@ -44,7 +44,7 @@ | ||||
| 							<td>{{if .InRepo}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</td> | ||||
| 							<td>{{if .Exists}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</td> | ||||
| 							<td>{{if .Accessible}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</td> | ||||
| 							<td class="gt-text-right"> | ||||
| 							<td class="tw-text-right"> | ||||
| 								<a class="ui primary button" href="{{$.LFSFilesLink}}/find?oid={{.Oid}}&size={{.Size}}&sha={{.SHA}}">{{ctx.Locale.Tr "repo.settings.lfs_findcommits"}}</a> | ||||
| 							</td> | ||||
| 						</tr> | ||||
|   | ||||
| @@ -80,7 +80,7 @@ | ||||
| 			</h4> | ||||
| 			<div class="ui attached segment"> | ||||
| 				{{if .Repository.IsArchived}} | ||||
| 					<div class="ui warning message gt-text-center"> | ||||
| 					<div class="ui warning message tw-text-center"> | ||||
| 						{{ctx.Locale.Tr "repo.settings.archive.mirrors_unavailable"}} | ||||
| 					</div> | ||||
| 				{{else}} | ||||
|   | ||||
| @@ -1,7 +1,7 @@ | ||||
| {{template "repo/settings/layout_head" (dict "ctxData" . "pageClass" "repository settings edit")}} | ||||
| 	<div class="repo-setting-content"> | ||||
| 		{{if .Repository.IsArchived}} | ||||
| 			<div class="ui warning message gt-text-center"> | ||||
| 			<div class="ui warning message tw-text-center"> | ||||
| 				{{ctx.Locale.Tr "repo.settings.archive.tagsettings_unavailable"}} | ||||
| 			</div> | ||||
| 		{{else}} | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
| {{if .EscapeStatus}} | ||||
| 	{{if .EscapeStatus.HasInvisible}} | ||||
| 		<div class="ui warning message unicode-escape-prompt gt-text-left"> | ||||
| 		<div class="ui warning message unicode-escape-prompt tw-text-left"> | ||||
| 			<button class="btn close icon hide-panel" data-panel-closest=".message">{{svg "octicon-x" 16 "close inside"}}</button> | ||||
| 			<div class="header"> | ||||
| 				{{ctx.Locale.Tr "repo.invisible_runes_header"}} | ||||
| @@ -11,7 +11,7 @@ | ||||
| 			{{end}} | ||||
| 		</div> | ||||
| 	{{else if .EscapeStatus.HasAmbiguous}} | ||||
| 		<div class="ui warning message unicode-escape-prompt gt-text-left"> | ||||
| 		<div class="ui warning message unicode-escape-prompt tw-text-left"> | ||||
| 			<button class="btn close icon hide-panel" data-panel-closest=".message">{{svg "octicon-x" 16 "close inside"}}</button> | ||||
| 			<div class="header"> | ||||
| 				{{ctx.Locale.Tr "repo.ambiguous_runes_header"}} | ||||
|   | ||||
| @@ -1,12 +1,12 @@ | ||||
| <div {{if .ReadmeInList}}id="readme" {{end}}class="{{TabSizeClass .Editorconfig .FileName}} non-diff-file-content"> | ||||
| 	{{- if .FileError}} | ||||
| 		<div class="ui error message"> | ||||
| 			<div class="text left gt-whitespace-pre">{{.FileError}}</div> | ||||
| 			<div class="text left tw-whitespace-pre">{{.FileError}}</div> | ||||
| 		</div> | ||||
| 	{{end}} | ||||
| 	{{- if .FileWarning}} | ||||
| 		<div class="ui warning message"> | ||||
| 			<div class="text left gt-whitespace-pre">{{.FileWarning}}</div> | ||||
| 			<div class="text left tw-whitespace-pre">{{.FileWarning}}</div> | ||||
| 		</div> | ||||
| 	{{end}} | ||||
|  | ||||
|   | ||||
| @@ -79,19 +79,19 @@ | ||||
| 			{{if .sidebarPresent}} | ||||
| 			<div class="markup wiki-content-sidebar"> | ||||
| 				{{if and .CanWriteWiki (not .Repository.IsMirror)}} | ||||
| 					<a class="gt-float-right muted" href="{{.RepoLink}}/wiki/_Sidebar?action=_edit" aria-label="{{ctx.Locale.Tr "repo.wiki.edit_page_button"}}">{{svg "octicon-pencil"}}</a> | ||||
| 					<a class="tw-float-right muted" href="{{.RepoLink}}/wiki/_Sidebar?action=_edit" aria-label="{{ctx.Locale.Tr "repo.wiki.edit_page_button"}}">{{svg "octicon-pencil"}}</a> | ||||
| 				{{end}} | ||||
| 				{{template "repo/unicode_escape_prompt" dict "EscapeStatus" .sidebarEscapeStatus "root" $}} | ||||
| 				{{.sidebarContent | SafeHTML}} | ||||
| 			</div> | ||||
| 			{{end}} | ||||
|  | ||||
| 			<div class="gt-clear-both"></div> | ||||
| 			<div class="tw-clear-both"></div> | ||||
|  | ||||
| 			{{if .footerPresent}} | ||||
| 			<div class="markup wiki-content-footer"> | ||||
| 				{{if and .CanWriteWiki (not .Repository.IsMirror)}} | ||||
| 					<a class="gt-float-right muted" href="{{.RepoLink}}/wiki/_Footer?action=_edit" aria-label="{{ctx.Locale.Tr "repo.wiki.edit_page_button"}}">{{svg "octicon-pencil"}}</a> | ||||
| 					<a class="tw-float-right muted" href="{{.RepoLink}}/wiki/_Footer?action=_edit" aria-label="{{ctx.Locale.Tr "repo.wiki.edit_page_button"}}">{{svg "octicon-pencil"}}</a> | ||||
| 				{{end}} | ||||
| 				{{template "repo/unicode_escape_prompt" dict "footerEscapeStatus" .sidebarEscapeStatus "root" $}} | ||||
| 				{{.footerContent | SafeHTML}} | ||||
|   | ||||
| @@ -38,7 +38,7 @@ | ||||
| 			<div class="ui container gt-my-5"> | ||||
| 				{{if .ErrorMsg}} | ||||
| 					<p>{{ctx.Locale.Tr "error.occurred"}}:</p> | ||||
| 					<pre class="gt-whitespace-pre-wrap gt-break-all">{{.ErrorMsg}}</pre> | ||||
| 					<pre class="tw-whitespace-pre-wrap gt-break-all">{{.ErrorMsg}}</pre> | ||||
| 				{{end}} | ||||
| 				<div class="center gt-mt-5"> | ||||
| 					{{if or .SignedUser.IsAdmin .ShowFooterVersion}}<p>{{ctx.Locale.Tr "admin.config.app_ver"}}: {{AppVer}}</p>{{end}} | ||||
|   | ||||
| @@ -24,7 +24,7 @@ | ||||
| 		<div id="captcha" data-captcha-type="m-captcha" data-sitekey="{{.McaptchaSitekey}}" data-instance-url="{{.McaptchaURL}}"></div> | ||||
| 	</div> | ||||
| {{else if eq .CaptchaType "cfturnstile"}} | ||||
| 	<div class="inline field gt-text-center"> | ||||
| 	<div class="inline field tw-text-center"> | ||||
| 		<div id="captcha" data-captcha-type="cf-turnstile" data-sitekey="{{.CfTurnstileSitekey}}"></div> | ||||
| 	</div> | ||||
| 	<script src='https://challenges.cloudflare.com/turnstile/v0/api.js'></script> | ||||
|   | ||||
| @@ -57,7 +57,7 @@ | ||||
| 					</form> | ||||
| 					<!-- Sort --> | ||||
| 					<div class="list-header-sort ui small dropdown type jump item"> | ||||
| 						<span class="text gt-whitespace-nowrap"> | ||||
| 						<span class="text tw-whitespace-nowrap"> | ||||
| 							{{ctx.Locale.Tr "repo.issues.filter_sort"}} | ||||
| 							{{svg "octicon-triangle-down" 14 "dropdown icon"}} | ||||
| 						</span> | ||||
|   | ||||
| @@ -36,7 +36,7 @@ | ||||
| 				{{else}} | ||||
| 					{{range $notification := .Notifications}} | ||||
| 						<div class="notifications-item gt-df gt-ac gt-fw gt-gap-3 gt-p-3" id="notification_{{.ID}}" data-status="{{.Status}}"> | ||||
| 							<div class="notifications-icon gt-ml-3 gt-mr-2 gt-self-start gt-mt-2"> | ||||
| 							<div class="notifications-icon gt-ml-3 gt-mr-2 tw-self-start gt-mt-2"> | ||||
| 								{{if .Issue}} | ||||
| 									{{template "shared/issueicon" .Issue}} | ||||
| 								{{else}} | ||||
|   | ||||
| @@ -61,11 +61,11 @@ | ||||
| 				</div> | ||||
| 				<div class="field"> | ||||
| 					<label>{{ctx.Locale.Tr "settings.repo_and_org_access"}}</label> | ||||
| 					<label class="gt-cursor-pointer"> | ||||
| 					<label class="tw-cursor-pointer"> | ||||
| 						<input class="enable-system gt-mt-2 gt-mr-2" type="radio" name="scope" value="{{$.AccessTokenScopePublicOnly}}"> | ||||
| 						{{ctx.Locale.Tr "settings.permissions_public_only"}} | ||||
| 					</label> | ||||
| 					<label class="gt-cursor-pointer"> | ||||
| 					<label class="tw-cursor-pointer"> | ||||
| 						<input class="enable-system gt-mt-2 gt-mr-2" type="radio" name="scope" value="" checked> | ||||
| 						{{ctx.Locale.Tr "settings.permissions_access_all"}} | ||||
| 					</label> | ||||
|   | ||||
| @@ -32,7 +32,7 @@ | ||||
| 									{{else}} | ||||
| 										<span class="icon gt-dib gt-pt-3">{{svg "octicon-file-directory-fill"}}</span> | ||||
| 										<span class="name gt-dib gt-pt-3">{{$.ContextUser.Name}}/{{$dir}}</span> | ||||
| 										<div class="gt-float-right"> | ||||
| 										<div class="tw-float-right"> | ||||
| 											{{if $.allowAdopt}} | ||||
| 												<button class="ui button primary show-modal gt-p-3" data-modal="#adopt-unadopted-modal-{{$dirI}}"><span class="icon">{{svg "octicon-plus"}}</span><span class="label">{{ctx.Locale.Tr "repo.adopt_preexisting_label"}}</span></button> | ||||
| 												<div class="ui g-modal-confirm modal" id="adopt-unadopted-modal-{{$dirI}}"> | ||||
|   | ||||
| @@ -52,34 +52,14 @@ Gitea's private styles use `g-` prefix. | ||||
| /* below class names match Tailwind CSS */ | ||||
| .gt-break-all { word-break: break-all !important; } | ||||
| .gt-content-center { align-content: center !important; } | ||||
| .gt-cursor-default { cursor: default !important; } | ||||
| .gt-cursor-pointer { cursor: pointer !important; } | ||||
| .gt-cursor-grab { cursor: grab !important; } | ||||
| .gt-invisible { visibility: hidden !important; } | ||||
| .gt-items-start { align-items: flex-start !important; } | ||||
| .gt-pointer-events-none { pointer-events: none !important; } | ||||
| .gt-relative { position: relative !important; } | ||||
| .gt-whitespace-nowrap { white-space: nowrap !important; } | ||||
| .gt-whitespace-pre { white-space: pre !important; } | ||||
| .gt-whitespace-pre-wrap { white-space: pre-wrap !important; } | ||||
| .gt-object-contain { object-fit: contain !important; } | ||||
| .gt-self-center { align-self: center !important; } | ||||
| .gt-self-start { align-self: flex-start !important; } | ||||
| .gt-self-end { align-self: flex-end !important; } | ||||
| .gt-no-underline { text-decoration-line: none !important; } | ||||
| .gt-normal-case { text-transform: none !important; } | ||||
| .gt-italic { font-style: italic !important; } | ||||
| .gt-overflow-x-auto { overflow-x: auto !important; } | ||||
| .gt-overflow-x-scroll { overflow-x: scroll !important; } | ||||
| .gt-overflow-y-hidden { overflow-y: hidden !important; } | ||||
|  | ||||
| .gt-float-left { float: left !important; } | ||||
| .gt-float-right { float: right !important; } | ||||
| .gt-clear-both { clear: both !important; } | ||||
|  | ||||
| .gt-text-center { text-align: center !important; } | ||||
| .gt-text-left { text-align: left !important; } | ||||
| .gt-text-right { text-align: right !important; } | ||||
|  | ||||
| .gt-font-light { font-weight: var(--font-weight-light) !important; } | ||||
| .gt-font-normal { font-weight: var(--font-weight-normal) !important; } | ||||
|   | ||||
| @@ -278,7 +278,7 @@ export default sfc; // activate IDE's Vue plugin | ||||
|           <div class="ui label" v-if="item.name===repoDefaultBranch && mode === 'branches'"> | ||||
|             {{ textDefaultBranchLabel }} | ||||
|           </div> | ||||
|           <a v-show="enableFeed && mode === 'branches'" role="button" class="rss-icon gt-float-right" :href="rssURLPrefix + item.url" target="_blank" @click.stop> | ||||
|           <a v-show="enableFeed && mode === 'branches'" role="button" class="rss-icon tw-float-right" :href="rssURLPrefix + item.url" target="_blank" @click.stop> | ||||
|             <!-- creating a lot of Vue component is pretty slow, so we use a static SVG here --> | ||||
|             <svg width="14" height="14" class="svg octicon-rss"><use href="#svg-symbol-octicon-rss"/></svg> | ||||
|           </a> | ||||
|   | ||||
| @@ -234,7 +234,7 @@ export function initDropzone(el) { | ||||
|         // Create a "Copy Link" element, to conveniently copy the image | ||||
|         // or file link as Markdown to the clipboard | ||||
|         const copyLinkElement = document.createElement('div'); | ||||
|         copyLinkElement.className = 'gt-text-center'; | ||||
|         copyLinkElement.className = 'tw-text-center'; | ||||
|         // The a element has a hardcoded cursor: pointer because the default is overridden by .dropzone | ||||
|         copyLinkElement.innerHTML = `<a href="#" style="cursor: pointer;">${svg('octicon-copy', 14, 'copy link')} Copy link</a>`; | ||||
|         copyLinkElement.addEventListener('click', async (e) => { | ||||
|   | ||||
| @@ -17,7 +17,7 @@ export function initGiteaFomantic() { | ||||
|   // By default, use "exact match" for full text search | ||||
|   $.fn.dropdown.settings.fullTextSearch = 'exact'; | ||||
|   // Do not use "cursor: pointer" for dropdown labels | ||||
|   $.fn.dropdown.settings.className.label += ' gt-cursor-default'; | ||||
|   $.fn.dropdown.settings.className.label += ' tw-cursor-default'; | ||||
|   // Always use Gitea's SVG icons | ||||
|   $.fn.dropdown.settings.templates.label = function(_value, text, preserveHTML, className) { | ||||
|     const escape = $.fn.dropdown.settings.templates.escape; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user