loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

silverwind and committed by
Earl Warren
c82bef51 ade8fc51

+691 -706
+1 -1
routers/web/repo/blame.go
··· 260 260 if commit.User != nil { 261 261 avatar = string(avatarUtils.Avatar(commit.User, 18)) 262 262 } else { 263 - avatar = string(avatarUtils.AvatarByEmail(commit.Author.Email, commit.Author.Name, 18, "gt-mr-3")) 263 + avatar = string(avatarUtils.AvatarByEmail(commit.Author.Email, commit.Author.Name, 18, "tw-mr-2")) 264 264 } 265 265 266 266 br.Avatar = gotemplate.HTML(avatar)
+1 -1
routers/web/repo/issue_content_history.go
··· 70 70 } 71 71 72 72 src := html.EscapeString(item.UserAvatarLink) 73 - class := avatars.DefaultAvatarClass + " gt-mr-3" 73 + class := avatars.DefaultAvatarClass + " tw-mr-2" 74 74 name := html.EscapeString(username) 75 75 avatarHTML := string(templates.AvatarHTML(src, 28, class, username)) 76 76 timeSinceText := string(timeutil.TimeSinceUnix(item.EditedUnix, ctx.Locale))
+2 -2
routers/web/repo/view.go
··· 938 938 schema, _, _ := strings.Cut(app.OpenURL, ":") 939 939 var iconHTML template.HTML 940 940 if schema == "vscode" || schema == "vscodium" || schema == "jetbrains" { 941 - iconHTML = svg.RenderHTML(fmt.Sprintf("gitea-open-with-%s", schema), 16, "gt-mr-3") 941 + iconHTML = svg.RenderHTML(fmt.Sprintf("gitea-open-with-%s", schema), 16, "tw-mr-2") 942 942 } else { 943 - iconHTML = svg.RenderHTML("gitea-git", 16, "gt-mr-3") // TODO: it could support user's customized icon in the future 943 + iconHTML = svg.RenderHTML("gitea-git", 16, "tw-mr-2") // TODO: it could support user's customized icon in the future 944 944 } 945 945 tmplApps = append(tmplApps, map[string]any{ 946 946 "DisplayName": app.DisplayName,
+1 -1
services/auth/source/oauth2/providers.go
··· 59 59 60 60 func (p *AuthSourceProvider) IconHTML(size int) template.HTML { 61 61 if p.iconURL != "" { 62 - img := fmt.Sprintf(`<img class="tw-object-contain gt-mr-3" width="%d" height="%d" src="%s" alt="%s">`, 62 + img := fmt.Sprintf(`<img class="tw-object-contain tw-mr-2" width="%d" height="%d" src="%s" alt="%s">`, 63 63 size, 64 64 size, 65 65 html.EscapeString(p.iconURL), html.EscapeString(p.DisplayName()),
+2 -2
services/auth/source/oauth2/providers_base.go
··· 35 35 case "github": 36 36 svgName = "octicon-mark-github" 37 37 } 38 - svgHTML := svg.RenderHTML(svgName, size, "gt-mr-3") 38 + svgHTML := svg.RenderHTML(svgName, size, "tw-mr-2") 39 39 if svgHTML == "" { 40 40 log.Error("No SVG icon for oauth2 provider %q", b.name) 41 - svgHTML = svg.RenderHTML("gitea-openid", size, "gt-mr-3") 41 + svgHTML = svg.RenderHTML("gitea-openid", size, "tw-mr-2") 42 42 } 43 43 return svgHTML 44 44 }
+1 -1
services/auth/source/oauth2/providers_openid.go
··· 29 29 30 30 // IconHTML returns icon HTML for this provider 31 31 func (o *OpenIDProvider) IconHTML(size int) template.HTML { 32 - return svg.RenderHTML("gitea-openid", size, "gt-mr-3") 32 + return svg.RenderHTML("gitea-openid", size, "tw-mr-2") 33 33 } 34 34 35 35 // CreateGothProvider creates a GothProvider from this Provider
+2 -2
templates/admin/config.tmpl
··· 231 231 <dt>{{ctx.Locale.Tr "admin.config.mailer_user"}}</dt> 232 232 <dd>{{if .Mailer.User}}{{.Mailer.User}}{{else}}(empty){{end}}</dd> 233 233 <div class="divider"></div> 234 - <dt class="gt-py-2">{{ctx.Locale.Tr "admin.config.send_test_mail"}}</dt> 234 + <dt class="tw-py-1">{{ctx.Locale.Tr "admin.config.send_test_mail"}}</dt> 235 235 <dd> 236 236 <form class="ui form ignore-dirty" action="{{AppSubUrl}}/admin/config/test_mail" method="post"> 237 237 {{.CsrfTokenHtml}} ··· 334 334 {{range $loggerName, $loggerDetail := .Loggers}} 335 335 <dt>{{ctx.Locale.Tr "admin.config.logger_name_fmt" $loggerName}}</dt> 336 336 {{if $loggerDetail.IsEnabled}} 337 - <dd><pre class="gt-m-0">{{$loggerDetail.EventWriters | JsonUtils.EncodeToString | JsonUtils.PrettyIndent}}</pre></dd> 337 + <dd><pre class="tw-m-0">{{$loggerDetail.EventWriters | JsonUtils.EncodeToString | JsonUtils.PrettyIndent}}</pre></dd> 338 338 {{else}} 339 339 <dd>{{ctx.Locale.Tr "admin.config.disabled_logger"}}</dd> 340 340 {{end}}
+1 -1
templates/admin/config_settings.tmpl
··· 28 28 <div class="field"> 29 29 <details> 30 30 <summary>{{ctx.Locale.Tr "admin.config.open_with_editor_app_help"}}</summary> 31 - <pre class="gt-px-4">{{.DefaultOpenWithEditorAppsString}}</pre> 31 + <pre class="tw-px-4">{{.DefaultOpenWithEditorAppsString}}</pre> 32 32 </details> 33 33 </div> 34 34 <div class="field">
+1 -1
templates/admin/cron.tmpl
··· 5 5 </h4> 6 6 <div class="ui attached table segment"> 7 7 <form method="post" action="{{AppSubUrl}}/admin"> 8 - <table class="ui very basic striped table unstackable gt-mb-0"> 8 + <table class="ui very basic striped table unstackable tw-mb-0"> 9 9 <thead> 10 10 <tr> 11 11 <th></th>
+1 -1
templates/admin/dashboard.tmpl
··· 11 11 <div class="ui attached table segment"> 12 12 <form method="post" action="{{AppSubUrl}}/admin"> 13 13 {{.CsrfTokenHtml}} 14 - <table class="ui very basic table gt-mt-0 gt-px-4"> 14 + <table class="ui very basic table tw-mt-0 tw-px-4"> 15 15 <tbody> 16 16 <tr> 17 17 <td>{{ctx.Locale.Tr "admin.dashboard.delete_inactive_accounts"}}</td>
+2 -2
templates/admin/emails/list.tmpl
··· 4 4 {{ctx.Locale.Tr "admin.emails.email_manage_panel"}} ({{ctx.Locale.Tr "admin.total" .Total}}) 5 5 </h4> 6 6 <div class="ui attached segment"> 7 - <div class="ui secondary filter menu tw-items-center gt-mx-0"> 7 + <div class="ui secondary filter menu tw-items-center tw-mx-0"> 8 8 <form class="ui form ignore-dirty tw-flex-1"> 9 9 {{template "shared/search/combo" dict "Value" .Keyword}} 10 10 </form> 11 11 <!-- Sort --> 12 - <div class="ui dropdown type jump item gt-mr-0"> 12 + <div class="ui dropdown type jump item tw-mr-0"> 13 13 <span class="text"> 14 14 {{ctx.Locale.Tr "repo.issues.filter_sort"}} 15 15 </span>
+2 -2
templates/admin/org/list.tmpl
··· 7 7 </div> 8 8 </h4> 9 9 <div class="ui attached segment"> 10 - <div class="ui secondary filter menu tw-items-center gt-mx-0"> 10 + <div class="ui secondary filter menu tw-items-center tw-mx-0"> 11 11 <form class="ui form ignore-dirty tw-flex-1"> 12 12 {{template "shared/search/combo" dict "Value" .Keyword "Placeholder" (ctx.Locale.Tr "search.org_kind")}} 13 13 </form> 14 14 <!-- Sort --> 15 - <div class="ui dropdown type jump item gt-mr-0"> 15 + <div class="ui dropdown type jump item tw-mr-0"> 16 16 <span class="text"> 17 17 {{ctx.Locale.Tr "repo.issues.filter_sort"}} 18 18 </span>
+1 -1
templates/admin/queue_manage.tmpl
··· 30 30 - 31 31 {{else}} 32 32 {{$sum}} 33 - <form action="{{$.Link}}/remove-all-items" method="post" class="tw-inline-block gt-ml-4"> 33 + <form action="{{$.Link}}/remove-all-items" method="post" class="tw-inline-block tw-ml-4"> 34 34 {{$.CsrfTokenHtml}} 35 35 <button class="ui tiny basic red button">{{ctx.Locale.Tr "admin.monitor.queue.settings.remove_all_items"}}</button> 36 36 </form>
+2 -2
templates/admin/repo/unadopted.tmpl
··· 23 23 <div class="item tw-flex tw-items-center"> 24 24 <span class="tw-flex-1"> {{svg "octicon-file-directory-fill"}} {{$dir}}</span> 25 25 <div> 26 - <button class="ui button primary show-modal gt-p-3" data-modal="#adopt-unadopted-modal-{{$dirI}}">{{svg "octicon-plus"}} {{ctx.Locale.Tr "repo.adopt_preexisting_label"}}</button> 26 + <button class="ui button primary show-modal tw-p-2" data-modal="#adopt-unadopted-modal-{{$dirI}}">{{svg "octicon-plus"}} {{ctx.Locale.Tr "repo.adopt_preexisting_label"}}</button> 27 27 <div class="ui g-modal-confirm modal" id="adopt-unadopted-modal-{{$dirI}}"> 28 28 <div class="header"> 29 29 <span class="label">{{ctx.Locale.Tr "repo.adopt_preexisting"}}</span> ··· 40 40 {{template "base/modal_actions_confirm"}} 41 41 </form> 42 42 </div> 43 - <button class="ui button red show-modal gt-p-3" data-modal="#delete-unadopted-modal-{{$dirI}}">{{svg "octicon-x"}} {{ctx.Locale.Tr "repo.delete_preexisting_label"}}</button> 43 + <button class="ui button red show-modal tw-p-2" data-modal="#delete-unadopted-modal-{{$dirI}}">{{svg "octicon-x"}} {{ctx.Locale.Tr "repo.delete_preexisting_label"}}</button> 44 44 <div class="ui g-modal-confirm modal" id="delete-unadopted-modal-{{$dirI}}"> 45 45 <div class="header"> 46 46 <span class="label">{{ctx.Locale.Tr "repo.delete_preexisting"}}</span>
+3 -3
templates/admin/self_check.tmpl
··· 7 7 <div class="ui attached segment"> 8 8 {{if .DatabaseCheckHasProblems}} 9 9 {{if .DatabaseType.IsMySQL}} 10 - <div class="gt-p-3">{{ctx.Locale.Tr "admin.self_check.database_fix_mysql"}}</div> 10 + <div class="tw-p-2">{{ctx.Locale.Tr "admin.self_check.database_fix_mysql"}}</div> 11 11 {{else if .DatabaseType.IsMSSQL}} 12 - <div class="gt-p-3">{{ctx.Locale.Tr "admin.self_check.database_fix_mssql"}}</div> 12 + <div class="tw-p-2">{{ctx.Locale.Tr "admin.self_check.database_fix_mssql"}}</div> 13 13 {{end}} 14 14 {{if .DatabaseCheckCollationMismatch}} 15 15 <div class="ui red message">{{ctx.Locale.Tr "admin.self_check.database_collation_mismatch" .DatabaseCheckResult.ExpectedCollation}}</div> ··· 28 28 </div> 29 29 {{end}} 30 30 {{else}} 31 - <div class="gt-p-3">{{ctx.Locale.Tr "admin.self_check.no_problem_found"}}</div> 31 + <div class="tw-p-2">{{ctx.Locale.Tr "admin.self_check.no_problem_found"}}</div> 32 32 {{end}} 33 33 </div> 34 34 </div>
+5 -5
templates/admin/stacktrace-row.tmpl
··· 1 1 <div class="item"> 2 2 <div class="tw-flex tw-items-center"> 3 - <div class="icon gt-ml-3 gt-mr-3"> 3 + <div class="icon tw-ml-2 tw-mr-2"> 4 4 {{if eq .Process.Type "request"}} 5 5 {{svg "octicon-globe" 16}} 6 6 {{else if eq .Process.Type "system"}} ··· 22 22 </div> 23 23 </div> 24 24 {{if .Process.Stacks}} 25 - <div class="divided list gt-ml-3"> 25 + <div class="divided list tw-ml-2"> 26 26 {{range .Process.Stacks}} 27 27 <div class="item"> 28 28 <details> 29 29 <summary> 30 30 <div class="flex-text-inline"> 31 - <div class="header gt-ml-3"> 32 - <span class="icon gt-mr-3">{{svg "octicon-code" 16}}</span>{{.Description}}{{if gt .Count 1}} * {{.Count}}{{end}} 31 + <div class="header tw-ml-2"> 32 + <span class="icon tw-mr-2">{{svg "octicon-code" 16}}</span>{{.Description}}{{if gt .Count 1}} * {{.Count}}{{end}} 33 33 </div> 34 34 <div class="description"> 35 35 {{range .Labels}} ··· 41 41 <div class="list"> 42 42 {{range .Entry}} 43 43 <div class="item tw-flex tw-items-center"> 44 - <span class="icon gt-mr-4">{{svg "octicon-dot-fill" 16}}</span> 44 + <span class="icon tw-mr-4">{{svg "octicon-dot-fill" 16}}</span> 45 45 <div class="content tw-flex-1"> 46 46 <div class="header"><code>{{.Function}}</code></div> 47 47 <div class="description"><code>{{.File}}:{{.Line}}</code></div>
+2 -2
templates/admin/user/edit.tmpl
··· 181 181 <label>{{ctx.Locale.Tr "settings.lookup_avatar_by_mail"}}</label> 182 182 </div> 183 183 </div> 184 - <div class="field gt-pl-4 {{if .Err_Gravatar}}error{{end}}"> 184 + <div class="field tw-pl-4 {{if .Err_Gravatar}}error{{end}}"> 185 185 <label for="gravatar">Avatar {{ctx.Locale.Tr "email"}}</label> 186 186 <input id="gravatar" name="gravatar" value="{{.User.AvatarEmail}}"> 187 187 </div> ··· 194 194 </div> 195 195 </div> 196 196 197 - <div class="inline field gt-pl-4"> 197 + <div class="inline field tw-pl-4"> 198 198 <label for="avatar">{{ctx.Locale.Tr "settings.choose_new_avatar"}}</label> 199 199 <input name="avatar" type="file" accept="image/png,image/jpeg,image/gif,image/webp"> 200 200 </div>
+14 -14
templates/base/head_navbar.tmpl
··· 13 13 <!-- mobile right menu, it must be here because in mobile view, each item is a flex column, the first item is a full row column --> 14 14 <div class="ui secondary menu item navbar-mobile-right only-mobile"> 15 15 {{if .IsSigned}} 16 - <a id="mobile-notifications-icon" class="item tw-w-auto gt-p-3" href="{{AppSubUrl}}/notifications" data-tooltip-content="{{ctx.Locale.Tr "notifications"}}" aria-label="{{ctx.Locale.Tr "notifications"}}"> 16 + <a id="mobile-notifications-icon" class="item tw-w-auto tw-p-2" href="{{AppSubUrl}}/notifications" data-tooltip-content="{{ctx.Locale.Tr "notifications"}}" aria-label="{{ctx.Locale.Tr "notifications"}}"> 17 17 <div class="tw-relative"> 18 18 {{svg "octicon-bell"}} 19 19 <span class="notification_count{{if not $notificationUnreadCount}} gt-hidden{{end}}">{{$notificationUnreadCount}}</span> 20 20 </div> 21 21 </a> 22 22 {{end}} 23 - <button class="item tw-w-auto ui icon mini button gt-p-3 gt-m-0" id="navbar-expand-toggle" aria-label="{{ctx.Locale.Tr "toggle_menu"}}">{{svg "octicon-three-bars"}}</button> 23 + <button class="item tw-w-auto ui icon mini button tw-p-2 tw-m-0" id="navbar-expand-toggle" aria-label="{{ctx.Locale.Tr "toggle_menu"}}">{{svg "octicon-three-bars"}}</button> 24 24 </div> 25 25 26 26 <!-- navbar links non-mobile --> ··· 57 57 {{if and .IsSigned .MustChangePassword}} 58 58 <div class="ui dropdown jump item" data-tooltip-content="{{ctx.Locale.Tr "user_profile_and_more"}}"> 59 59 <span class="text tw-flex tw-items-center"> 60 - {{ctx.AvatarUtils.Avatar .SignedUser 24 "gt-mr-2"}} 61 - <span class="only-mobile gt-ml-3">{{.SignedUser.Name}}</span> 60 + {{ctx.AvatarUtils.Avatar .SignedUser 24 "tw-mr-1"}} 61 + <span class="only-mobile tw-ml-2">{{.SignedUser.Name}}</span> 62 62 <span class="not-mobile">{{svg "octicon-triangle-down"}}</span> 63 63 </span> 64 64 <div class="menu user-menu"> ··· 75 75 </div><!-- end dropdown avatar menu --> 76 76 {{else if .IsSigned}} 77 77 {{if EnableTimetracking}} 78 - <a class="active-stopwatch-trigger item gt-mx-0{{if not .ActiveStopwatch}} gt-hidden{{end}}" href="{{.ActiveStopwatch.IssueLink}}" title="{{ctx.Locale.Tr "active_stopwatch"}}"> 78 + <a class="active-stopwatch-trigger item tw-mx-0{{if not .ActiveStopwatch}} gt-hidden{{end}}" href="{{.ActiveStopwatch.IssueLink}}" title="{{ctx.Locale.Tr "active_stopwatch"}}"> 79 79 <div class="tw-relative"> 80 80 {{svg "octicon-stopwatch"}} 81 81 <span class="header-stopwatch-dot"></span> 82 82 </div> 83 - <span class="only-mobile gt-ml-3">{{ctx.Locale.Tr "active_stopwatch"}}</span> 83 + <span class="only-mobile tw-ml-2">{{ctx.Locale.Tr "active_stopwatch"}}</span> 84 84 </a> 85 - <div class="active-stopwatch-popup item tippy-target gt-p-3"> 85 + <div class="active-stopwatch-popup item tippy-target tw-p-2"> 86 86 <div class="tw-flex tw-items-center"> 87 87 <a class="stopwatch-link tw-flex tw-items-center" href="{{.ActiveStopwatch.IssueLink}}"> 88 - {{svg "octicon-issue-opened" 16 "gt-mr-3"}} 88 + {{svg "octicon-issue-opened" 16 "tw-mr-2"}} 89 89 <span class="stopwatch-issue">{{.ActiveStopwatch.RepoSlug}}#{{.ActiveStopwatch.IssueIndex}}</span> 90 - <span class="ui primary label stopwatch-time gt-my-0 gt-mx-4" data-seconds="{{.ActiveStopwatch.Seconds}}"> 90 + <span class="ui primary label stopwatch-time tw-my-0 tw-mx-4" data-seconds="{{.ActiveStopwatch.Seconds}}"> 91 91 {{if .ActiveStopwatch}}{{Sec2Time .ActiveStopwatch.Seconds}}{{end}} 92 92 </span> 93 93 </a> ··· 111 111 </div> 112 112 {{end}} 113 113 114 - <a class="item not-mobile gt-mx-0" href="{{AppSubUrl}}/notifications" data-tooltip-content="{{ctx.Locale.Tr "notifications"}}" aria-label="{{ctx.Locale.Tr "notifications"}}"> 114 + <a class="item not-mobile tw-mx-0" href="{{AppSubUrl}}/notifications" data-tooltip-content="{{ctx.Locale.Tr "notifications"}}" aria-label="{{ctx.Locale.Tr "notifications"}}"> 115 115 <div class="tw-relative"> 116 116 {{svg "octicon-bell"}} 117 117 <span class="notification_count{{if not $notificationUnreadCount}} gt-hidden{{end}}">{{$notificationUnreadCount}}</span> 118 118 </div> 119 119 </a> 120 120 121 - <div class="ui dropdown jump item gt-mx-0 gt-pr-3" data-tooltip-content="{{ctx.Locale.Tr "create_new"}}"> 121 + <div class="ui dropdown jump item tw-mx-0 tw-pr-2" data-tooltip-content="{{ctx.Locale.Tr "create_new"}}"> 122 122 <span class="text"> 123 123 {{svg "octicon-plus"}} 124 124 <span class="not-mobile">{{svg "octicon-triangle-down"}}</span> ··· 141 141 </div><!-- end content create new menu --> 142 142 </div><!-- end dropdown menu create new --> 143 143 144 - <div class="ui dropdown jump item gt-mx-0 gt-pr-3" data-tooltip-content="{{ctx.Locale.Tr "user_profile_and_more"}}"> 144 + <div class="ui dropdown jump item tw-mx-0 tw-pr-2" data-tooltip-content="{{ctx.Locale.Tr "user_profile_and_more"}}"> 145 145 <span class="text tw-flex tw-items-center"> 146 - {{ctx.AvatarUtils.Avatar .SignedUser 24 "gt-mr-2"}} 147 - <span class="only-mobile gt-ml-3">{{.SignedUser.Name}}</span> 146 + {{ctx.AvatarUtils.Avatar .SignedUser 24 "tw-mr-1"}} 147 + <span class="only-mobile tw-ml-2">{{.SignedUser.Name}}</span> 148 148 <span class="not-mobile">{{svg "octicon-triangle-down"}}</span> 149 149 </span> 150 150 <div class="menu user-menu">
+4 -4
templates/base/paginate.tmpl
··· 6 6 <div class="center page buttons"> 7 7 <div class="ui borderless pagination menu"> 8 8 <a class="{{if .IsFirst}}disabled{{end}} item navigation" {{if not .IsFirst}}href="{{$paginationLink}}{{if $paginationParams}}?{{$paginationParams}}{{end}}"{{end}}> 9 - {{svg "gitea-double-chevron-left" 16 "gt-mr-2"}} 9 + {{svg "gitea-double-chevron-left" 16 "tw-mr-1"}} 10 10 <span class="navigation_label">{{ctx.Locale.Tr "admin.first_page"}}</span> 11 11 </a> 12 12 <a class="{{if not .HasPrevious}}disabled{{end}} item navigation" {{if .HasPrevious}}href="{{$paginationLink}}?page={{.Previous}}{{if $paginationParams}}&{{$paginationParams}}{{end}}"{{end}}> 13 - {{svg "octicon-chevron-left" 16 "gt-mr-2"}} 13 + {{svg "octicon-chevron-left" 16 "tw-mr-1"}} 14 14 <span class="navigation_label">{{ctx.Locale.Tr "repo.issues.previous"}}</span> 15 15 </a> 16 16 {{range .Pages}} ··· 22 22 {{end}} 23 23 <a class="{{if not .HasNext}}disabled{{end}} item navigation" {{if .HasNext}}href="{{$paginationLink}}?page={{.Next}}{{if $paginationParams}}&{{$paginationParams}}{{end}}"{{end}}> 24 24 <span class="navigation_label">{{ctx.Locale.Tr "repo.issues.next"}}</span> 25 - {{svg "octicon-chevron-right" 16 "gt-ml-2"}} 25 + {{svg "octicon-chevron-right" 16 "tw-ml-1"}} 26 26 </a> 27 27 <a class="{{if .IsLast}}disabled{{end}} item navigation" {{if not .IsLast}}href="{{$paginationLink}}?page={{.TotalPages}}{{if $paginationParams}}&{{$paginationParams}}{{end}}"{{end}}> 28 28 <span class="navigation_label">{{ctx.Locale.Tr "admin.last_page"}}</span> 29 - {{svg "gitea-double-chevron-right" 16 "gt-ml-2"}} 29 + {{svg "gitea-double-chevron-right" 16 "tw-ml-1"}} 30 30 </a> 31 31 </div> 32 32 </div>
+1 -1
templates/devtest/fetch-action.tmpl
··· 26 26 <div><button name="btn">submit post</button></div> 27 27 </form> 28 28 <form method="post" action="/no-such-uri" class="form-fetch-action"> 29 - <div class="gt-py-5">bad action url</div> 29 + <div class="tw-py-8">bad action url</div> 30 30 <div><button name="btn">submit test</button></div> 31 31 </form> 32 32 </div>
+2 -2
templates/devtest/flex-list.tmpl
··· 73 73 </div> 74 74 <div class="flex-item-trailing"> 75 75 <a class="muted" href="{{$.Link}}"> 76 - <span class="flex-text-inline"><i class="color-icon gt-mr-3 tw-bg-blue"></i>Go</span> 76 + <span class="flex-text-inline"><i class="color-icon tw-mr-2 tw-bg-blue"></i>Go</span> 77 77 </a> 78 78 <a class="text grey flex-text-inline" href="{{$.Link}}">{{svg "octicon-star" 16}}45000</a> 79 79 <a class="text grey flex-text-inline" href="{{$.Link}}">{{svg "octicon-git-branch" 16}}1234</a> ··· 104 104 </div> 105 105 106 106 <h1>If parent provides the padding/margin space:</h1> 107 - <div class="tw-border tw-border-secondary gt-py-4"> 107 + <div class="tw-border tw-border-secondary tw-py-4"> 108 108 <div class="flex-list flex-space-fitted"> 109 109 <div class="flex-item">item 1 (no padding top)</div> 110 110 <div class="flex-item">item 2 (no padding bottom)</div>
+6 -6
templates/devtest/gitea-ui.tmpl
··· 67 67 </li> 68 68 <li class="sample-group"> 69 69 <h2>Inline / Plain:</h2> 70 - <div class="gt-my-2"> 71 - <button class="btn gt-p-3">Plain button</button> 72 - <button class="btn interact-fg gt-p-3">Plain button with interact fg</button> 73 - <button class="btn interact-bg gt-p-3">Plain button with interact bg</button> 70 + <div class="tw-my-1"> 71 + <button class="btn tw-p-2">Plain button</button> 72 + <button class="btn interact-fg tw-p-2">Plain button with interact fg</button> 73 + <button class="btn interact-bg tw-p-2">Plain button with interact bg</button> 74 74 </div> 75 75 </li> 76 76 </ul> ··· 102 102 103 103 <div> 104 104 <h1>Loading</h1> 105 - <div class="is-loading small-loading-icon tw-border tw-border-secondary gt-py-2"><span>loading ...</span></div> 106 - <div class="is-loading tw-border tw-border-secondary gt-py-4"> 105 + <div class="is-loading small-loading-icon tw-border tw-border-secondary tw-py-1"><span>loading ...</span></div> 106 + <div class="is-loading tw-border tw-border-secondary tw-py-4"> 107 107 <p>loading ...</p> 108 108 <p>loading ...</p> 109 109 <p>loading ...</p>
+1 -1
templates/explore/repo_list.tmpl
··· 33 33 <div class="flex-item-trailing muted-links"> 34 34 {{if .PrimaryLanguage}} 35 35 <a class="flex-text-inline" href="?q={{$.Keyword}}&sort={{$.SortType}}&language={{.PrimaryLanguage.Language}}{{if $.TabName}}&tab={{$.TabName}}{{end}}"> 36 - <i class="color-icon gt-mr-3" style="background-color: {{.PrimaryLanguage.Color}}"></i> 36 + <i class="color-icon tw-mr-2" style="background-color: {{.PrimaryLanguage.Color}}"></i> 37 37 {{.PrimaryLanguage.Language}} 38 38 </a> 39 39 {{end}}
+2 -2
templates/explore/search.tmpl
··· 1 - <div class="ui small secondary filter menu tw-items-center gt-mx-0"> 1 + <div class="ui small secondary filter menu tw-items-center tw-mx-0"> 2 2 <form class="ui form ignore-dirty tw-flex-1"> 3 3 {{if .PageIsExploreUsers}} 4 4 {{template "shared/search/combo" dict "Value" .Keyword "Placeholder" (ctx.Locale.Tr "search.user_kind")}} ··· 7 7 {{end}} 8 8 </form> 9 9 <!-- Sort --> 10 - <div class="ui small dropdown type jump item gt-mr-0"> 10 + <div class="ui small dropdown type jump item tw-mr-0"> 11 11 <span class="text"> 12 12 {{ctx.Locale.Tr "repo.issues.filter_sort"}} 13 13 </span>
+1 -1
templates/home.tmpl
··· 1 1 {{template "base/head" .}} 2 2 <div role="main" aria-label="{{if .IsSigned}}{{ctx.Locale.Tr "dashboard"}}{{else}}{{ctx.Locale.Tr "home"}}{{end}}" class="page-content home"> 3 - <div class="gt-mb-5 gt-px-5"> 3 + <div class="tw-mb-8 tw-px-8"> 4 4 <div class="center"> 5 5 <img class="logo" width="220" height="220" src="{{AssetUrlPrefix}}/img/logo.svg" alt="{{ctx.Locale.Tr "logo"}}"> 6 6 <div class="hero">
+8 -8
templates/install.tmpl
··· 28 28 </div> 29 29 </div> 30 30 31 - <div class="gt-mt-4 gt-hidden" data-db-setting-for="common-host"> 31 + <div class="tw-mt-4 gt-hidden" data-db-setting-for="common-host"> 32 32 <div class="inline required field {{if .Err_DbSetting}}error{{end}}"> 33 33 <label for="db_host">{{ctx.Locale.Tr "install.host"}}</label> 34 34 <input id="db_host" name="db_host" value="{{.db_host}}"> ··· 47 47 </div> 48 48 </div> 49 49 50 - <div class="gt-mt-4 gt-hidden" data-db-setting-for="postgres"> 50 + <div class="tw-mt-4 gt-hidden" data-db-setting-for="postgres"> 51 51 <div class="inline required field"> 52 52 <label>{{ctx.Locale.Tr "install.ssl_mode"}}</label> 53 53 <div class="ui selection database type dropdown"> ··· 68 68 </div> 69 69 </div> 70 70 71 - <div class="gt-mt-4 gt-hidden" data-db-setting-for="sqlite3"> 71 + <div class="tw-mt-4 gt-hidden" data-db-setting-for="sqlite3"> 72 72 <div class="inline required field {{if or .Err_DbPath .Err_DbSetting}}error{{end}}"> 73 73 <label for="db_path">{{ctx.Locale.Tr "install.path"}}</label> 74 74 <input id="db_path" name="db_path" value="{{.db_path}}"> ··· 160 160 161 161 <!-- Email --> 162 162 <details class="optional field"> 163 - <summary class="right-content gt-py-3{{if .Err_SMTP}} text red{{end}}"> 163 + <summary class="right-content tw-py-2{{if .Err_SMTP}} text red{{end}}"> 164 164 {{ctx.Locale.Tr "install.email_title"}} 165 165 </summary> 166 166 <div class="inline field"> ··· 200 200 201 201 <!-- Server and other services --> 202 202 <details class="optional field"> 203 - <summary class="right-content gt-py-3{{if .Err_Services}} text red{{end}}"> 203 + <summary class="right-content tw-py-2{{if .Err_Services}} text red{{end}}"> 204 204 {{ctx.Locale.Tr "install.server_service_title"}} 205 205 </summary> 206 206 <div class="inline field"> ··· 298 298 299 299 <!-- Admin --> 300 300 <details class="optional field"> 301 - <summary class="right-content gt-py-3{{if .Err_Admin}} text red{{end}}"> 301 + <summary class="right-content tw-py-2{{if .Err_Admin}} text red{{end}}"> 302 302 {{ctx.Locale.Tr "install.admin_title"}} 303 303 </summary> 304 304 <p class="center">{{ctx.Locale.Tr "install.admin_setting_desc"}}</p> ··· 327 327 <div class="right-content"> 328 328 {{ctx.Locale.Tr "install.env_config_keys_prompt"}} 329 329 </div> 330 - <div class="right-content gt-mt-3"> 330 + <div class="right-content tw-mt-2"> 331 331 {{range .EnvConfigKeys}}<span class="ui label">{{.}}</span>{{end}} 332 332 </div> 333 333 </div> ··· 338 338 <div class="right-content"> 339 339 {{ctx.Locale.Tr "install.config_location_hint"}} {{.CustomConfFile}} 340 340 </div> 341 - <div class="right-content gt-mt-3"> 341 + <div class="right-content tw-mt-2"> 342 342 <button class="ui primary button">{{ctx.Locale.Tr "install.install_btn_confirm"}}</button> 343 343 </div> 344 344 </div>
+1 -1
templates/org/follow_unfollow.tmpl
··· 1 - <button class="ui basic button gt-mr-0" hx-post="{{.Org.HomeLink}}?action={{if $.IsFollowing}}unfollow{{else}}follow{{end}}"> 1 + <button class="ui basic button tw-mr-0" hx-post="{{.Org.HomeLink}}?action={{if $.IsFollowing}}unfollow{{else}}follow{{end}}"> 2 2 {{if $.IsFollowing}} 3 3 {{ctx.Locale.Tr "user.unfollow"}} 4 4 {{else}}
+2 -2
templates/org/header.tmpl
··· 9 9 </span> 10 10 <span class="tw-flex tw-items-center tw-gap-1 tw-ml-auto tw-text-16 tw-whitespace-nowrap"> 11 11 {{if .EnableFeed}} 12 - <a class="ui basic label button gt-mr-0" href="{{.Org.HomeLink}}.rss" data-tooltip-content="{{ctx.Locale.Tr "rss_feed"}}"> 12 + <a class="ui basic label button tw-mr-0" href="{{.Org.HomeLink}}.rss" data-tooltip-content="{{ctx.Locale.Tr "rss_feed"}}"> 13 13 {{svg "octicon-rss" 24}} 14 14 </a> 15 15 {{end}} ··· 19 19 </span> 20 20 </div> 21 21 {{if .RenderedDescription}}<div class="render-content markup">{{.RenderedDescription}}</div>{{end}} 22 - <div class="text light meta gt-mt-2"> 22 + <div class="text light meta tw-mt-1"> 23 23 {{if .Org.Location}}<div class="flex-text-block">{{svg "octicon-location"}} <span>{{.Org.Location}}</span></div>{{end}} 24 24 {{if .Org.Website}}<div class="flex-text-block">{{svg "octicon-link"}} <a class="muted" target="_blank" rel="noopener noreferrer me" href="{{.Org.Website}}">{{.Org.Website}}</a></div>{{end}} 25 25 {{if .IsSigned}}
+1 -1
templates/org/home.tmpl
··· 1 1 {{template "base/head" .}} 2 2 <div role="main" aria-label="{{.Title}}" class="page-content organization profile"> 3 3 {{if .Flash}} 4 - <div class="ui container gt-mb-5"> 4 + <div class="ui container tw-mb-8"> 5 5 {{template "base/alert" .}} 6 6 </div> 7 7 {{end}}
+1 -1
templates/org/projects/list.tmpl
··· 14 14 {{template "shared/user/profile_big_avatar" .}} 15 15 </div> 16 16 <div class="ui twelve wide column"> 17 - <div class="gt-mb-4"> 17 + <div class="tw-mb-4"> 18 18 {{template "user/overview/header" .}} 19 19 </div> 20 20 {{template "projects/list" .}}
+1 -1
templates/org/team/members.tmpl
··· 12 12 <form class="ui form ignore-dirty tw-flex tw-flex-wrap tw-gap-2" action="{{$.OrgLink}}/teams/{{$.Team.LowerName | PathEscape}}/action/add" method="post"> 13 13 {{.CsrfTokenHtml}} 14 14 <input type="hidden" name="uid" value="{{.SignedUser.ID}}"> 15 - <div id="search-user-box" class="ui search gt-mr-3"{{if .IsEmailInviteEnabled}} data-allow-email="true" data-allow-email-description="{{ctx.Locale.Tr "org.teams.invite_team_member" $.Team.Name}}"{{end}}> 15 + <div id="search-user-box" class="ui search tw-mr-2"{{if .IsEmailInviteEnabled}} data-allow-email="true" data-allow-email-description="{{ctx.Locale.Tr "org.teams.invite_team_member" $.Team.Name}}"{{end}}> 16 16 <div class="ui input"> 17 17 <input class="prompt" name="uname" placeholder="{{ctx.Locale.Tr "search.user_kind"}}" autocomplete="off" required> 18 18 </div>
+3 -3
templates/org/team/new.tmpl
··· 78 78 <tr> 79 79 <th>{{ctx.Locale.Tr "units.unit"}}</th> 80 80 <th class="center aligned">{{ctx.Locale.Tr "org.teams.none_access"}} 81 - <span class="tw-align-middle" data-tooltip-content="{{ctx.Locale.Tr "org.teams.none_access_helper"}}">{{svg "octicon-question" 16 "gt-ml-2"}}</span></th> 81 + <span class="tw-align-middle" data-tooltip-content="{{ctx.Locale.Tr "org.teams.none_access_helper"}}">{{svg "octicon-question" 16 "tw-ml-1"}}</span></th> 82 82 <th class="center aligned">{{ctx.Locale.Tr "org.teams.read_access"}} 83 - <span class="tw-align-middle" data-tooltip-content="{{ctx.Locale.Tr "org.teams.read_access_helper"}}">{{svg "octicon-question" 16 "gt-ml-2"}}</span></th> 83 + <span class="tw-align-middle" data-tooltip-content="{{ctx.Locale.Tr "org.teams.read_access_helper"}}">{{svg "octicon-question" 16 "tw-ml-1"}}</span></th> 84 84 <th class="center aligned">{{ctx.Locale.Tr "org.teams.write_access"}} 85 - <span class="tw-align-middle" data-tooltip-content="{{ctx.Locale.Tr "org.teams.write_access_helper"}}">{{svg "octicon-question" 16 "gt-ml-2"}}</span></th> 85 + <span class="tw-align-middle" data-tooltip-content="{{ctx.Locale.Tr "org.teams.write_access_helper"}}">{{svg "octicon-question" 16 "tw-ml-1"}}</span></th> 86 86 </tr> 87 87 </thead> 88 88 <tbody>
+1 -1
templates/org/team/repositories.tmpl
··· 17 17 <input class="prompt" name="repo_name" placeholder="{{ctx.Locale.Tr "search.repo_kind"}}" autocomplete="off" required> 18 18 </div> 19 19 </div> 20 - <button class="ui primary button gt-ml-3">{{ctx.Locale.Tr "add"}}</button> 20 + <button class="ui primary button tw-ml-2">{{ctx.Locale.Tr "add"}}</button> 21 21 </form> 22 22 <div class="tw-inline-block"> 23 23 <button class="ui primary button link-action" data-modal-confirm="{{ctx.Locale.Tr "org.teams.add_all_repos_desc"}}" data-url="{{$.OrgLink}}/teams/{{$.Team.LowerName | PathEscape}}/action/repo/addall">{{ctx.Locale.Tr "add_all"}}</button>
+1 -1
templates/package/metadata/alpine.tmpl
··· 1 1 {{if eq .PackageDescriptor.Package.Type "alpine"}} 2 2 {{if .PackageDescriptor.Metadata.Maintainer}}<div class="item" title="{{ctx.Locale.Tr "packages.details.author"}}">{{svg "octicon-person" 16 "mr-3"}} {{.PackageDescriptor.Metadata.Maintainer}}</div>{{end}} 3 3 {{if .PackageDescriptor.Metadata.ProjectURL}}<div class="item">{{svg "octicon-link-external" 16 "mr-3"}} <a href="{{.PackageDescriptor.Metadata.ProjectURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.project_site"}}</a></div>{{end}} 4 - {{if .PackageDescriptor.Metadata.License}}<div class="item" title="{{ctx.Locale.Tr "packages.details.license"}}">{{svg "octicon-law" 16 "gt-mr-3"}} {{.PackageDescriptor.Metadata.License}}</div>{{end}} 4 + {{if .PackageDescriptor.Metadata.License}}<div class="item" title="{{ctx.Locale.Tr "packages.details.license"}}">{{svg "octicon-law" 16 "tw-mr-2"}} {{.PackageDescriptor.Metadata.License}}</div>{{end}} 5 5 {{end}}
+5 -5
templates/package/metadata/cargo.tmpl
··· 1 1 {{if eq .PackageDescriptor.Package.Type "cargo"}} 2 - {{range .PackageDescriptor.Metadata.Authors}}<div class="item" title="{{ctx.Locale.Tr "packages.details.author"}}">{{svg "octicon-person" 16 "gt-mr-3"}} {{.}}</div>{{end}} 3 - {{if .PackageDescriptor.Metadata.ProjectURL}}<div class="item">{{svg "octicon-link-external" 16 "gt-mr-3"}} <a href="{{.PackageDescriptor.Metadata.ProjectURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.project_site"}}</a></div>{{end}} 4 - {{if .PackageDescriptor.Metadata.RepositoryURL}}<div class="item">{{svg "octicon-link-external" 16 "gt-mr-3"}} <a href="{{.PackageDescriptor.Metadata.RepositoryURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.repository_site"}}</a></div>{{end}} 5 - {{if .PackageDescriptor.Metadata.DocumentationURL}}<div class="item">{{svg "octicon-link-external" 16 "gt-mr-3"}} <a href="{{.PackageDescriptor.Metadata.DocumentationURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.documentation_site"}}</a></div>{{end}} 6 - {{if .PackageDescriptor.Metadata.License}}<div class="item" title="{{ctx.Locale.Tr "packages.details.license"}}">{{svg "octicon-law" 16 "gt-mr-3"}} {{.PackageDescriptor.Metadata.License}}</div>{{end}} 2 + {{range .PackageDescriptor.Metadata.Authors}}<div class="item" title="{{ctx.Locale.Tr "packages.details.author"}}">{{svg "octicon-person" 16 "tw-mr-2"}} {{.}}</div>{{end}} 3 + {{if .PackageDescriptor.Metadata.ProjectURL}}<div class="item">{{svg "octicon-link-external" 16 "tw-mr-2"}} <a href="{{.PackageDescriptor.Metadata.ProjectURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.project_site"}}</a></div>{{end}} 4 + {{if .PackageDescriptor.Metadata.RepositoryURL}}<div class="item">{{svg "octicon-link-external" 16 "tw-mr-2"}} <a href="{{.PackageDescriptor.Metadata.RepositoryURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.repository_site"}}</a></div>{{end}} 5 + {{if .PackageDescriptor.Metadata.DocumentationURL}}<div class="item">{{svg "octicon-link-external" 16 "tw-mr-2"}} <a href="{{.PackageDescriptor.Metadata.DocumentationURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.documentation_site"}}</a></div>{{end}} 6 + {{if .PackageDescriptor.Metadata.License}}<div class="item" title="{{ctx.Locale.Tr "packages.details.license"}}">{{svg "octicon-law" 16 "tw-mr-2"}} {{.PackageDescriptor.Metadata.License}}</div>{{end}} 7 7 {{end}}
+3 -3
templates/package/metadata/chef.tmpl
··· 1 1 {{if eq .PackageDescriptor.Package.Type "chef"}} 2 - {{if .PackageDescriptor.Metadata.Author}}<div class="item" title="{{ctx.Locale.Tr "packages.details.author"}}">{{svg "octicon-person" 16 "gt-mr-3"}} {{.PackageDescriptor.Metadata.Author}}</div>{{end}} 3 - {{if .PackageDescriptor.Metadata.RepositoryURL}}<div class="item">{{svg "octicon-link-external" 16 "gt-mr-3"}} <a href="{{.PackageDescriptor.Metadata.RepositoryURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.repository_site"}}</a></div>{{end}} 4 - {{if .PackageDescriptor.Metadata.License}}<div class="item" title="{{ctx.Locale.Tr "packages.details.license"}}">{{svg "octicon-law" 16 "gt-mr-3"}} {{.PackageDescriptor.Metadata.License}}</div>{{end}} 2 + {{if .PackageDescriptor.Metadata.Author}}<div class="item" title="{{ctx.Locale.Tr "packages.details.author"}}">{{svg "octicon-person" 16 "tw-mr-2"}} {{.PackageDescriptor.Metadata.Author}}</div>{{end}} 3 + {{if .PackageDescriptor.Metadata.RepositoryURL}}<div class="item">{{svg "octicon-link-external" 16 "tw-mr-2"}} <a href="{{.PackageDescriptor.Metadata.RepositoryURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.repository_site"}}</a></div>{{end}} 4 + {{if .PackageDescriptor.Metadata.License}}<div class="item" title="{{ctx.Locale.Tr "packages.details.license"}}">{{svg "octicon-law" 16 "tw-mr-2"}} {{.PackageDescriptor.Metadata.License}}</div>{{end}} 5 5 {{end}}
+3 -3
templates/package/metadata/composer.tmpl
··· 1 1 {{if eq .PackageDescriptor.Package.Type "composer"}} 2 - {{range .PackageDescriptor.Metadata.Authors}}<div class="item" title="{{ctx.Locale.Tr "packages.details.author"}}">{{svg "octicon-person" 16 "gt-mr-3"}} {{.Name}}</div>{{end}} 3 - {{if .PackageDescriptor.Metadata.Homepage}}<div class="item">{{svg "octicon-link-external" 16 "gt-mr-3"}} <a href="{{.PackageDescriptor.Metadata.Homepage}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.project_site"}}</a></div>{{end}} 4 - {{range .PackageDescriptor.Metadata.License}}<div class="item" title="{{ctx.Locale.Tr "packages.details.license"}}">{{svg "octicon-law" 16 "gt-mr-3"}} {{.}}</div>{{end}} 2 + {{range .PackageDescriptor.Metadata.Authors}}<div class="item" title="{{ctx.Locale.Tr "packages.details.author"}}">{{svg "octicon-person" 16 "tw-mr-2"}} {{.Name}}</div>{{end}} 3 + {{if .PackageDescriptor.Metadata.Homepage}}<div class="item">{{svg "octicon-link-external" 16 "tw-mr-2"}} <a href="{{.PackageDescriptor.Metadata.Homepage}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.project_site"}}</a></div>{{end}} 4 + {{range .PackageDescriptor.Metadata.License}}<div class="item" title="{{ctx.Locale.Tr "packages.details.license"}}">{{svg "octicon-law" 16 "tw-mr-2"}} {{.}}</div>{{end}} 5 5 {{end}}
+4 -4
templates/package/metadata/conan.tmpl
··· 1 1 {{if eq .PackageDescriptor.Package.Type "conan"}} 2 - {{if .PackageDescriptor.Metadata.Author}}<div class="item" title="{{ctx.Locale.Tr "packages.details.author"}}">{{svg "octicon-person" 16 "gt-mr-3"}} {{.PackageDescriptor.Metadata.Author}}</div>{{end}} 3 - {{if .PackageDescriptor.Metadata.ProjectURL}}<div class="item">{{svg "octicon-link-external" 16 "gt-mr-3"}} <a href="{{.PackageDescriptor.Metadata.ProjectURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.project_site"}}</a></div>{{end}} 4 - {{if .PackageDescriptor.Metadata.License}}<div class="item" title="{{ctx.Locale.Tr "packages.details.license"}}">{{svg "octicon-law" 16 "gt-mr-3"}} {{.PackageDescriptor.Metadata.License}}</div>{{end}} 5 - {{if .PackageDescriptor.Metadata.RepositoryURL}}<div class="item">{{svg "octicon-link-external" 16 "gt-mr-3"}} <a href="{{.PackageDescriptor.Metadata.RepositoryURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.repository_site"}}</a></div>{{end}} 2 + {{if .PackageDescriptor.Metadata.Author}}<div class="item" title="{{ctx.Locale.Tr "packages.details.author"}}">{{svg "octicon-person" 16 "tw-mr-2"}} {{.PackageDescriptor.Metadata.Author}}</div>{{end}} 3 + {{if .PackageDescriptor.Metadata.ProjectURL}}<div class="item">{{svg "octicon-link-external" 16 "tw-mr-2"}} <a href="{{.PackageDescriptor.Metadata.ProjectURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.project_site"}}</a></div>{{end}} 4 + {{if .PackageDescriptor.Metadata.License}}<div class="item" title="{{ctx.Locale.Tr "packages.details.license"}}">{{svg "octicon-law" 16 "tw-mr-2"}} {{.PackageDescriptor.Metadata.License}}</div>{{end}} 5 + {{if .PackageDescriptor.Metadata.RepositoryURL}}<div class="item">{{svg "octicon-link-external" 16 "tw-mr-2"}} <a href="{{.PackageDescriptor.Metadata.RepositoryURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.repository_site"}}</a></div>{{end}} 6 6 {{end}}
+4 -4
templates/package/metadata/conda.tmpl
··· 1 1 {{if eq .PackageDescriptor.Package.Type "conda"}} 2 - {{if .PackageDescriptor.Metadata.License}}<div class="item">{{svg "octicon-law" 16 "gt-mr-3"}} {{.PackageDescriptor.Metadata.License}}</div>{{end}} 3 - {{if .PackageDescriptor.Metadata.ProjectURL}}<div class="item">{{svg "octicon-link-external" 16 "gt-mr-3"}} <a href="{{.PackageDescriptor.Metadata.ProjectURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.project_site"}}</a></div>{{end}} 4 - {{if .PackageDescriptor.Metadata.RepositoryURL}}<div class="item">{{svg "octicon-link-external" 16 "gt-mr-3"}} <a href="{{.PackageDescriptor.Metadata.RepositoryURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.repository_site"}}</a></div>{{end}} 5 - {{if .PackageDescriptor.Metadata.DocumentationURL}}<div class="item">{{svg "octicon-link-external" 16 "gt-mr-3"}} <a href="{{.PackageDescriptor.Metadata.DocumentationURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.documentation_site"}}</a></div>{{end}} 2 + {{if .PackageDescriptor.Metadata.License}}<div class="item">{{svg "octicon-law" 16 "tw-mr-2"}} {{.PackageDescriptor.Metadata.License}}</div>{{end}} 3 + {{if .PackageDescriptor.Metadata.ProjectURL}}<div class="item">{{svg "octicon-link-external" 16 "tw-mr-2"}} <a href="{{.PackageDescriptor.Metadata.ProjectURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.project_site"}}</a></div>{{end}} 4 + {{if .PackageDescriptor.Metadata.RepositoryURL}}<div class="item">{{svg "octicon-link-external" 16 "tw-mr-2"}} <a href="{{.PackageDescriptor.Metadata.RepositoryURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.repository_site"}}</a></div>{{end}} 5 + {{if .PackageDescriptor.Metadata.DocumentationURL}}<div class="item">{{svg "octicon-link-external" 16 "tw-mr-2"}} <a href="{{.PackageDescriptor.Metadata.DocumentationURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.documentation_site"}}</a></div>{{end}} 6 6 {{end}}
+7 -7
templates/package/metadata/container.tmpl
··· 1 1 {{if eq .PackageDescriptor.Package.Type "container"}} 2 - <div class="item" title="{{ctx.Locale.Tr "packages.container.details.type"}}">{{svg "octicon-package" 16 "gt-mr-3"}} {{.PackageDescriptor.Metadata.Type.Name}}</div> 3 - {{if .PackageDescriptor.Metadata.Platform}}<div class="item" title="{{ctx.Locale.Tr "packages.container.details.platform"}}">{{svg "octicon-cpu" 16 "gt-mr-3"}} {{.PackageDescriptor.Metadata.Platform}}</div>{{end}} 4 - {{range .PackageDescriptor.Metadata.Authors}}<div class="item" title="{{ctx.Locale.Tr "packages.details.author"}}">{{svg "octicon-person" 16 "gt-mr-3"}} {{.}}</div>{{end}} 5 - {{if .PackageDescriptor.Metadata.Licenses}}<div class="item">{{svg "octicon-law" 16 "gt-mr-3"}} {{.PackageDescriptor.Metadata.Licenses}}</div>{{end}} 6 - {{if .PackageDescriptor.Metadata.ProjectURL}}<div class="item">{{svg "octicon-link-external" 16 "gt-mr-3"}} <a href="{{.PackageDescriptor.Metadata.ProjectURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.project_site"}}</a></div>{{end}} 7 - {{if .PackageDescriptor.Metadata.RepositoryURL}}<div class="item">{{svg "octicon-link-external" 16 "gt-mr-3"}} <a href="{{.PackageDescriptor.Metadata.RepositoryURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.repository_site"}}</a></div>{{end}} 8 - {{if .PackageDescriptor.Metadata.DocumentationURL}}<div class="item">{{svg "octicon-link-external" 16 "gt-mr-3"}} <a href="{{.PackageDescriptor.Metadata.DocumentationURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.documentation_site"}}</a></div>{{end}} 2 + <div class="item" title="{{ctx.Locale.Tr "packages.container.details.type"}}">{{svg "octicon-package" 16 "tw-mr-2"}} {{.PackageDescriptor.Metadata.Type.Name}}</div> 3 + {{if .PackageDescriptor.Metadata.Platform}}<div class="item" title="{{ctx.Locale.Tr "packages.container.details.platform"}}">{{svg "octicon-cpu" 16 "tw-mr-2"}} {{.PackageDescriptor.Metadata.Platform}}</div>{{end}} 4 + {{range .PackageDescriptor.Metadata.Authors}}<div class="item" title="{{ctx.Locale.Tr "packages.details.author"}}">{{svg "octicon-person" 16 "tw-mr-2"}} {{.}}</div>{{end}} 5 + {{if .PackageDescriptor.Metadata.Licenses}}<div class="item">{{svg "octicon-law" 16 "tw-mr-2"}} {{.PackageDescriptor.Metadata.Licenses}}</div>{{end}} 6 + {{if .PackageDescriptor.Metadata.ProjectURL}}<div class="item">{{svg "octicon-link-external" 16 "tw-mr-2"}} <a href="{{.PackageDescriptor.Metadata.ProjectURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.project_site"}}</a></div>{{end}} 7 + {{if .PackageDescriptor.Metadata.RepositoryURL}}<div class="item">{{svg "octicon-link-external" 16 "tw-mr-2"}} <a href="{{.PackageDescriptor.Metadata.RepositoryURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.repository_site"}}</a></div>{{end}} 8 + {{if .PackageDescriptor.Metadata.DocumentationURL}}<div class="item">{{svg "octicon-link-external" 16 "tw-mr-2"}} <a href="{{.PackageDescriptor.Metadata.DocumentationURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.documentation_site"}}</a></div>{{end}} 9 9 {{end}}
+2 -2
templates/package/metadata/helm.tmpl
··· 1 1 {{if eq .PackageDescriptor.Package.Type "helm"}} 2 - {{range .PackageDescriptor.Metadata.Maintainers}}<div class="item" title="{{ctx.Locale.Tr "packages.details.author"}}">{{svg "octicon-person" 16 "gt-mr-3"}} {{.Name}}</div>{{end}} 3 - {{if .PackageDescriptor.Metadata.Home}}<div class="item">{{svg "octicon-link-external" 16 "gt-mr-3"}} <a href="{{.PackageDescriptor.Metadata.Home}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.project_site"}}</a></div>{{end}} 2 + {{range .PackageDescriptor.Metadata.Maintainers}}<div class="item" title="{{ctx.Locale.Tr "packages.details.author"}}">{{svg "octicon-person" 16 "tw-mr-2"}} {{.Name}}</div>{{end}} 3 + {{if .PackageDescriptor.Metadata.Home}}<div class="item">{{svg "octicon-link-external" 16 "tw-mr-2"}} <a href="{{.PackageDescriptor.Metadata.Home}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.project_site"}}</a></div>{{end}} 4 4 {{end}}
+3 -3
templates/package/metadata/maven.tmpl
··· 1 1 {{if eq .PackageDescriptor.Package.Type "maven"}} 2 - {{if .PackageDescriptor.Metadata.Name}}<div class="item">{{svg "octicon-note" 16 "gt-mr-3"}} {{.PackageDescriptor.Metadata.Name}}</div>{{end}} 3 - {{if .PackageDescriptor.Metadata.ProjectURL}}<div class="item">{{svg "octicon-link-external" 16 "gt-mr-3"}} <a href="{{.PackageDescriptor.Metadata.ProjectURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.project_site"}}</a></div>{{end}} 4 - {{range .PackageDescriptor.Metadata.Licenses}}<div class="item" title="{{ctx.Locale.Tr "packages.details.license"}}">{{svg "octicon-law" 16 "gt-mr-3"}} {{.}}</div>{{end}} 2 + {{if .PackageDescriptor.Metadata.Name}}<div class="item">{{svg "octicon-note" 16 "tw-mr-2"}} {{.PackageDescriptor.Metadata.Name}}</div>{{end}} 3 + {{if .PackageDescriptor.Metadata.ProjectURL}}<div class="item">{{svg "octicon-link-external" 16 "tw-mr-2"}} <a href="{{.PackageDescriptor.Metadata.ProjectURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.project_site"}}</a></div>{{end}} 4 + {{range .PackageDescriptor.Metadata.Licenses}}<div class="item" title="{{ctx.Locale.Tr "packages.details.license"}}">{{svg "octicon-law" 16 "tw-mr-2"}} {{.}}</div>{{end}} 5 5 {{end}}
+4 -4
templates/package/metadata/npm.tmpl
··· 1 1 {{if eq .PackageDescriptor.Package.Type "npm"}} 2 - {{if .PackageDescriptor.Metadata.Author}}<div class="item" title="{{ctx.Locale.Tr "packages.details.author"}}">{{svg "octicon-person" 16 "gt-mr-3"}} {{.PackageDescriptor.Metadata.Author}}</div>{{end}} 3 - {{if .PackageDescriptor.Metadata.ProjectURL}}<div class="item">{{svg "octicon-link-external" 16 "gt-mr-3"}} <a href="{{.PackageDescriptor.Metadata.ProjectURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.project_site"}}</a></div>{{end}} 4 - {{if .PackageDescriptor.Metadata.License}}<div class="item" title="{{ctx.Locale.Tr "packages.details.license"}}">{{svg "octicon-law" 16 "gt-mr-3"}} {{.PackageDescriptor.Metadata.License}}</div>{{end}} 2 + {{if .PackageDescriptor.Metadata.Author}}<div class="item" title="{{ctx.Locale.Tr "packages.details.author"}}">{{svg "octicon-person" 16 "tw-mr-2"}} {{.PackageDescriptor.Metadata.Author}}</div>{{end}} 3 + {{if .PackageDescriptor.Metadata.ProjectURL}}<div class="item">{{svg "octicon-link-external" 16 "tw-mr-2"}} <a href="{{.PackageDescriptor.Metadata.ProjectURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.project_site"}}</a></div>{{end}} 4 + {{if .PackageDescriptor.Metadata.License}}<div class="item" title="{{ctx.Locale.Tr "packages.details.license"}}">{{svg "octicon-law" 16 "tw-mr-2"}} {{.PackageDescriptor.Metadata.License}}</div>{{end}} 5 5 {{range .PackageDescriptor.VersionProperties}} 6 - {{if eq .Name "npm.tag"}}<div class="item" title="{{ctx.Locale.Tr "packages.npm.details.tag"}}">{{svg "octicon-versions" 16 "gt-mr-3"}} {{.Value}}</div>{{end}} 6 + {{if eq .Name "npm.tag"}}<div class="item" title="{{ctx.Locale.Tr "packages.npm.details.tag"}}">{{svg "octicon-versions" 16 "tw-mr-2"}} {{.Value}}</div>{{end}} 7 7 {{end}} 8 8 {{end}}
+3 -3
templates/package/metadata/nuget.tmpl
··· 1 1 {{if eq .PackageDescriptor.Package.Type "nuget"}} 2 - {{if .PackageDescriptor.Metadata.Authors}}<div class="item" title="{{ctx.Locale.Tr "packages.details.author"}}">{{svg "octicon-person" 16 "gt-mr-3"}} {{.PackageDescriptor.Metadata.Authors}}</div>{{end}} 3 - {{if .PackageDescriptor.Metadata.ProjectURL}}<div class="item">{{svg "octicon-link-external" 16 "gt-mr-3"}} <a href="{{.PackageDescriptor.Metadata.ProjectURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.project_site"}}</a></div>{{end}} 4 - {{if .PackageDescriptor.Metadata.RepositoryURL}}<div class="item">{{svg "octicon-link-external" 16 "gt-mr-3"}} <a href="{{.PackageDescriptor.Metadata.RepositoryURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.repository_site"}}</a></div>{{end}} 2 + {{if .PackageDescriptor.Metadata.Authors}}<div class="item" title="{{ctx.Locale.Tr "packages.details.author"}}">{{svg "octicon-person" 16 "tw-mr-2"}} {{.PackageDescriptor.Metadata.Authors}}</div>{{end}} 3 + {{if .PackageDescriptor.Metadata.ProjectURL}}<div class="item">{{svg "octicon-link-external" 16 "tw-mr-2"}} <a href="{{.PackageDescriptor.Metadata.ProjectURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.project_site"}}</a></div>{{end}} 4 + {{if .PackageDescriptor.Metadata.RepositoryURL}}<div class="item">{{svg "octicon-link-external" 16 "tw-mr-2"}} <a href="{{.PackageDescriptor.Metadata.RepositoryURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.repository_site"}}</a></div>{{end}} 5 5 {{end}}
+3 -3
templates/package/metadata/pub.tmpl
··· 1 1 {{if eq .PackageDescriptor.Package.Type "pub"}} 2 - {{if .PackageDescriptor.Metadata.ProjectURL}}<div class="item">{{svg "octicon-link-external" 16 "gt-mr-3"}} <a href="{{.PackageDescriptor.Metadata.ProjectURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.project_site"}}</a></div>{{end}} 3 - {{if .PackageDescriptor.Metadata.RepositoryURL}}<div class="item">{{svg "octicon-link-external" 16 "gt-mr-3"}} <a href="{{.PackageDescriptor.Metadata.RepositoryURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.repository_site"}}</a></div>{{end}} 4 - {{if .PackageDescriptor.Metadata.DocumentationURL}}<div class="item">{{svg "octicon-link-external" 16 "gt-mr-3"}} <a href="{{.PackageDescriptor.Metadata.DocumentationURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.documentation_site"}}</a></div>{{end}} 2 + {{if .PackageDescriptor.Metadata.ProjectURL}}<div class="item">{{svg "octicon-link-external" 16 "tw-mr-2"}} <a href="{{.PackageDescriptor.Metadata.ProjectURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.project_site"}}</a></div>{{end}} 3 + {{if .PackageDescriptor.Metadata.RepositoryURL}}<div class="item">{{svg "octicon-link-external" 16 "tw-mr-2"}} <a href="{{.PackageDescriptor.Metadata.RepositoryURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.repository_site"}}</a></div>{{end}} 4 + {{if .PackageDescriptor.Metadata.DocumentationURL}}<div class="item">{{svg "octicon-link-external" 16 "tw-mr-2"}} <a href="{{.PackageDescriptor.Metadata.DocumentationURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.documentation_site"}}</a></div>{{end}} 5 5 {{end}}
+3 -3
templates/package/metadata/pypi.tmpl
··· 1 1 {{if eq .PackageDescriptor.Package.Type "pypi"}} 2 - {{if .PackageDescriptor.Metadata.Author}}<div class="item" title="{{ctx.Locale.Tr "packages.details.author"}}">{{svg "octicon-person" 16 "gt-mr-3"}} {{.PackageDescriptor.Metadata.Author}}</div>{{end}} 3 - {{if .PackageDescriptor.Metadata.ProjectURL}}<div class="item">{{svg "octicon-link-external" 16 "gt-mr-3"}} <a href="{{.PackageDescriptor.Metadata.ProjectURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.project_site"}}</a></div>{{end}} 4 - {{if .PackageDescriptor.Metadata.License}}<div class="item" title="{{ctx.Locale.Tr "packages.details.license"}}">{{svg "octicon-law" 16 "gt-mr-3"}} {{.PackageDescriptor.Metadata.License}}</div>{{end}} 2 + {{if .PackageDescriptor.Metadata.Author}}<div class="item" title="{{ctx.Locale.Tr "packages.details.author"}}">{{svg "octicon-person" 16 "tw-mr-2"}} {{.PackageDescriptor.Metadata.Author}}</div>{{end}} 3 + {{if .PackageDescriptor.Metadata.ProjectURL}}<div class="item">{{svg "octicon-link-external" 16 "tw-mr-2"}} <a href="{{.PackageDescriptor.Metadata.ProjectURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.project_site"}}</a></div>{{end}} 4 + {{if .PackageDescriptor.Metadata.License}}<div class="item" title="{{ctx.Locale.Tr "packages.details.license"}}">{{svg "octicon-law" 16 "tw-mr-2"}} {{.PackageDescriptor.Metadata.License}}</div>{{end}} 5 5 {{end}}
+2 -2
templates/package/metadata/rpm.tmpl
··· 1 1 {{if eq .PackageDescriptor.Package.Type "rpm"}} 2 - {{if .PackageDescriptor.Metadata.ProjectURL}}<div class="item">{{svg "octicon-link-external" 16 "gt-mr-3"}} <a href="{{.PackageDescriptor.Metadata.ProjectURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.project_site"}}</a></div>{{end}} 3 - {{if .PackageDescriptor.Metadata.License}}<div class="item" title="{{ctx.Locale.Tr "packages.details.license"}}">{{svg "octicon-law" 16 "gt-mr-3"}} {{.PackageDescriptor.Metadata.License}}</div>{{end}} 2 + {{if .PackageDescriptor.Metadata.ProjectURL}}<div class="item">{{svg "octicon-link-external" 16 "tw-mr-2"}} <a href="{{.PackageDescriptor.Metadata.ProjectURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.project_site"}}</a></div>{{end}} 3 + {{if .PackageDescriptor.Metadata.License}}<div class="item" title="{{ctx.Locale.Tr "packages.details.license"}}">{{svg "octicon-law" 16 "tw-mr-2"}} {{.PackageDescriptor.Metadata.License}}</div>{{end}} 4 4 {{end}}
+3 -3
templates/package/metadata/rubygems.tmpl
··· 1 1 {{if eq .PackageDescriptor.Package.Type "rubygems"}} 2 - {{range .PackageDescriptor.Metadata.Authors}}<div class="item" title="{{ctx.Locale.Tr "packages.details.author"}}">{{svg "octicon-person" 16 "gt-mr-3"}} {{.}}</div>{{end}} 3 - {{if .PackageDescriptor.Metadata.ProjectURL}}<div class="item">{{svg "octicon-link-external" 16 "gt-mr-3"}} <a href="{{.PackageDescriptor.Metadata.ProjectURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.project_site"}}</a></div> {{end}} 4 - {{range .PackageDescriptor.Metadata.Licenses}}<div class="item" title="{{ctx.Locale.Tr "packages.details.license"}}">{{svg "octicon-law" 16 "gt-mr-3"}} {{.}}</div>{{end}} 2 + {{range .PackageDescriptor.Metadata.Authors}}<div class="item" title="{{ctx.Locale.Tr "packages.details.author"}}">{{svg "octicon-person" 16 "tw-mr-2"}} {{.}}</div>{{end}} 3 + {{if .PackageDescriptor.Metadata.ProjectURL}}<div class="item">{{svg "octicon-link-external" 16 "tw-mr-2"}} <a href="{{.PackageDescriptor.Metadata.ProjectURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.project_site"}}</a></div> {{end}} 4 + {{range .PackageDescriptor.Metadata.Licenses}}<div class="item" title="{{ctx.Locale.Tr "packages.details.license"}}">{{svg "octicon-law" 16 "tw-mr-2"}} {{.}}</div>{{end}} 5 5 {{end}}
+1 -1
templates/package/metadata/swift.tmpl
··· 1 1 {{if eq .PackageDescriptor.Package.Type "swift"}} 2 2 {{if .PackageDescriptor.Metadata.Author.String}}<div class="item" title="{{ctx.Locale.Tr "packages.details.author"}}">{{svg "octicon-person" 16 "mr-3"}} {{.PackageDescriptor.Metadata.Author}}</div>{{end}} 3 - {{if .PackageDescriptor.Metadata.RepositoryURL}}<div class="item">{{svg "octicon-link-external" 16 "gt-mr-3"}} <a href="{{.PackageDescriptor.Metadata.RepositoryURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.repository_site"}}</a></div>{{end}} 3 + {{if .PackageDescriptor.Metadata.RepositoryURL}}<div class="item">{{svg "octicon-link-external" 16 "tw-mr-2"}} <a href="{{.PackageDescriptor.Metadata.RepositoryURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.repository_site"}}</a></div>{{end}} 4 4 {{end}}
+3 -3
templates/package/metadata/vagrant.tmpl
··· 1 1 {{if eq .PackageDescriptor.Package.Type "vagrant"}} 2 - {{if .PackageDescriptor.Metadata.Author}}<div class="item" title="{{ctx.Locale.Tr "packages.details.author"}}">{{svg "octicon-person" 16 "gt-mr-3"}} {{.PackageDescriptor.Metadata.Author}}</div>{{end}} 3 - {{if .PackageDescriptor.Metadata.ProjectURL}}<div class="item">{{svg "octicon-link-external" 16 "gt-mr-3"}} <a href="{{.PackageDescriptor.Metadata.ProjectURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.project_site"}}</a></div>{{end}} 4 - {{if .PackageDescriptor.Metadata.RepositoryURL}}<div class="item">{{svg "octicon-link-external" 16 "gt-mr-3"}} <a href="{{.PackageDescriptor.Metadata.RepositoryURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.repository_site"}}</a></div>{{end}} 2 + {{if .PackageDescriptor.Metadata.Author}}<div class="item" title="{{ctx.Locale.Tr "packages.details.author"}}">{{svg "octicon-person" 16 "tw-mr-2"}} {{.PackageDescriptor.Metadata.Author}}</div>{{end}} 3 + {{if .PackageDescriptor.Metadata.ProjectURL}}<div class="item">{{svg "octicon-link-external" 16 "tw-mr-2"}} <a href="{{.PackageDescriptor.Metadata.ProjectURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.project_site"}}</a></div>{{end}} 4 + {{if .PackageDescriptor.Metadata.RepositoryURL}}<div class="item">{{svg "octicon-link-external" 16 "tw-mr-2"}} <a href="{{.PackageDescriptor.Metadata.RepositoryURL}}" target="_blank" rel="noopener noreferrer me">{{ctx.Locale.Tr "packages.details.repository_site"}}</a></div>{{end}} 5 5 {{end}}
+1 -1
templates/package/shared/list.tmpl
··· 50 50 <p>{{ctx.Locale.Tr "packages.empty.documentation" "https://forgejo.org/docs/latest/user/packages/"}}</p> 51 51 </div> 52 52 {{else}} 53 - <p class="gt-py-4">{{ctx.Locale.Tr "packages.filter.no_result"}}</p> 53 + <p class="tw-py-4">{{ctx.Locale.Tr "packages.filter.no_result"}}</p> 54 54 {{end}} 55 55 {{end}} 56 56 {{template "base/paginate" .}}
+1 -1
templates/package/shared/versionlist.tmpl
··· 31 31 </div> 32 32 </div> 33 33 {{else}} 34 - <p class="gt-py-4">{{ctx.Locale.Tr "packages.filter.no_result"}}</p> 34 + <p class="tw-py-4">{{ctx.Locale.Tr "packages.filter.no_result"}}</p> 35 35 {{end}} 36 36 {{template "base/paginate" .}} 37 37 </div>
+7 -7
templates/package/view.tmpl
··· 43 43 <div class="issue-content-right ui segment"> 44 44 <strong>{{ctx.Locale.Tr "packages.details"}}</strong> 45 45 <div class="ui relaxed list"> 46 - <div class="item">{{svg .PackageDescriptor.Package.Type.SVGName 16 "gt-mr-3"}} {{.PackageDescriptor.Package.Type.Name}}</div> 46 + <div class="item">{{svg .PackageDescriptor.Package.Type.SVGName 16 "tw-mr-2"}} {{.PackageDescriptor.Package.Type.Name}}</div> 47 47 {{if .HasRepositoryAccess}} 48 - <div class="item">{{svg "octicon-repo" 16 "gt-mr-3"}} <a href="{{.PackageDescriptor.Repository.Link}}">{{.PackageDescriptor.Repository.FullName}}</a></div> 48 + <div class="item">{{svg "octicon-repo" 16 "tw-mr-2"}} <a href="{{.PackageDescriptor.Repository.Link}}">{{.PackageDescriptor.Repository.FullName}}</a></div> 49 49 {{end}} 50 - <div class="item">{{svg "octicon-calendar" 16 "gt-mr-3"}} {{TimeSinceUnix .PackageDescriptor.Version.CreatedUnix ctx.Locale}}</div> 51 - <div class="item">{{svg "octicon-download" 16 "gt-mr-3"}} {{.PackageDescriptor.Version.DownloadCount}}</div> 50 + <div class="item">{{svg "octicon-calendar" 16 "tw-mr-2"}} {{TimeSinceUnix .PackageDescriptor.Version.CreatedUnix ctx.Locale}}</div> 51 + <div class="item">{{svg "octicon-download" 16 "tw-mr-2"}} {{.PackageDescriptor.Version.DownloadCount}}</div> 52 52 {{template "package/metadata/alpine" .}} 53 53 {{template "package/metadata/cargo" .}} 54 54 {{template "package/metadata/chef" .}} ··· 70 70 {{template "package/metadata/swift" .}} 71 71 {{template "package/metadata/vagrant" .}} 72 72 {{if not (and (eq .PackageDescriptor.Package.Type "container") .PackageDescriptor.Metadata.Manifests)}} 73 - <div class="item">{{svg "octicon-database" 16 "gt-mr-3"}} {{FileSize .PackageDescriptor.CalculateBlobSize}}</div> 73 + <div class="item">{{svg "octicon-database" 16 "tw-mr-2"}} {{FileSize .PackageDescriptor.CalculateBlobSize}}</div> 74 74 {{end}} 75 75 </div> 76 76 {{if not (eq .PackageDescriptor.Package.Type "container")}} ··· 100 100 <div class="divider"></div> 101 101 <div class="ui relaxed list"> 102 102 {{if .HasRepositoryAccess}} 103 - <div class="item">{{svg "octicon-issue-opened" 16 "gt-mr-3"}} <a href="{{.PackageDescriptor.Repository.Link}}/issues">{{ctx.Locale.Tr "repo.issues"}}</a></div> 103 + <div class="item">{{svg "octicon-issue-opened" 16 "tw-mr-2"}} <a href="{{.PackageDescriptor.Repository.Link}}/issues">{{ctx.Locale.Tr "repo.issues"}}</a></div> 104 104 {{end}} 105 105 {{if .CanWritePackages}} 106 - <div class="item">{{svg "octicon-tools" 16 "gt-mr-3"}} <a href="{{.Link}}/settings">{{ctx.Locale.Tr "repo.settings"}}</a></div> 106 + <div class="item">{{svg "octicon-tools" 16 "tw-mr-2"}} <a href="{{.Link}}/settings">{{ctx.Locale.Tr "repo.settings"}}</a></div> 107 107 {{end}} 108 108 </div> 109 109 {{end}}
+4 -4
templates/projects/list.tmpl
··· 1 1 {{if and $.CanWriteProjects (not $.Repository.IsArchived)}} 2 - <div class="tw-flex tw-justify-between gt-mb-4"> 2 + <div class="tw-flex tw-justify-between tw-mb-4"> 3 3 <div class="small-menu-items ui compact tiny menu list-header-toggle"> 4 4 <a class="item{{if not .IsShowClosed}} active{{end}}" href="?state=open&q={{$.Keyword}}"> 5 - {{svg "octicon-project-symlink" 16 "gt-mr-3"}} 5 + {{svg "octicon-project-symlink" 16 "tw-mr-2"}} 6 6 {{ctx.Locale.PrettyNumber .OpenCount}}&nbsp;{{ctx.Locale.Tr "repo.issues.open_title"}} 7 7 </a> 8 8 <a class="item{{if .IsShowClosed}} active{{end}}" href="?state=closed&q={{$.Keyword}}"> 9 - {{svg "octicon-check" 16 "gt-mr-3"}} 9 + {{svg "octicon-check" 16 "tw-mr-2"}} 10 10 {{ctx.Locale.PrettyNumber .ClosedCount}}&nbsp;{{ctx.Locale.Tr "repo.issues.closed_title"}} 11 11 </a> 12 12 </div> ··· 41 41 <div class="milestone-list"> 42 42 {{range .Projects}} 43 43 <li class="milestone-card"> 44 - <h3 class="flex-text-block gt-m-0"> 44 + <h3 class="flex-text-block tw-m-0"> 45 45 {{svg .IconName 16}} 46 46 <a class="muted" href="{{.Link ctx}}">{{.Title}}</a> 47 47 </h3>
+4 -4
templates/projects/view.tmpl
··· 1 1 {{$canWriteProject := and .CanWriteProjects (or (not .Repository) (not .Repository.IsArchived))}} 2 2 3 3 <div class="ui container"> 4 - <div class="tw-flex tw-justify-between tw-items-center gt-mb-4"> 5 - <h2 class="gt-mb-0">{{.Project.Title}}</h2> 4 + <div class="tw-flex tw-justify-between tw-items-center tw-mb-4"> 5 + <h2 class="tw-mb-0">{{.Project.Title}}</h2> 6 6 {{if $canWriteProject}} 7 7 <div class="ui compact mini menu"> 8 8 <a class="item" href="{{.Link}}/edit?redirect=project"> ··· 68 68 {{range .Columns}} 69 69 <div class="ui segment project-column" style="background: {{.Color}} !important;" data-id="{{.ID}}" data-sorting="{{.Sorting}}" data-url="{{$.Link}}/{{.ID}}"> 70 70 <div class="project-column-header"> 71 - <div class="ui large label project-column-title gt-py-2"> 71 + <div class="ui large label project-column-title tw-py-1"> 72 72 <div class="ui small circular grey label project-column-issue-count"> 73 73 {{.NumIssues ctx}} 74 74 </div> ··· 76 76 </div> 77 77 {{if and $canWriteProject (ne .ID 0)}} 78 78 <div class="ui dropdown jump item"> 79 - <div class="gt-px-3"> 79 + <div class="tw-px-2"> 80 80 {{svg "octicon-kebab-horizontal"}} 81 81 </div> 82 82 <div class="menu user-menu">
+1 -1
templates/repo/actions/list.tmpl
··· 66 66 </div> 67 67 68 68 {{if .AllowDisableOrEnableWorkflow}} 69 - <button class="ui jump dropdown btn interact-bg gt-p-3"> 69 + <button class="ui jump dropdown btn interact-bg tw-p-2"> 70 70 {{svg "octicon-kebab-horizontal"}} 71 71 <div class="menu"> 72 72 <a class="item link-action" data-url="{{$.Link}}/{{if .CurWorkflowDisabled}}enable{{else}}disable{{end}}?workflow={{$.CurWorkflow}}&actor={{.CurActor}}&status={{$.CurStatus}}">
+2 -2
templates/repo/actions/runs_list.tmpl
··· 28 28 </div> 29 29 <div class="flex-item-trailing"> 30 30 {{if .RefLink}} 31 - <a class="ui label gt-px-2 gt-mx-0" href="{{.RefLink}}">{{.PrettyRef}}</a> 31 + <a class="ui label tw-px-1 tw-mx-0" href="{{.RefLink}}">{{.PrettyRef}}</a> 32 32 {{else}} 33 - <span class="ui label gt-px-2 gt-mx-0">{{.PrettyRef}}</span> 33 + <span class="ui label tw-px-1 tw-mx-0">{{.PrettyRef}}</span> 34 34 {{end}} 35 35 </div> 36 36 <div class="run-list-item-right">
+3 -3
templates/repo/blame.tmpl
··· 12 12 {{end}} 13 13 <div class="{{TabSizeClass .Editorconfig .FileName}} non-diff-file-content"> 14 14 <h4 class="file-header ui top attached header tw-flex tw-items-center tw-justify-between tw-flex-wrap"> 15 - <div class="file-header-left tw-flex tw-items-center gt-py-3 gt-pr-4"> 15 + <div class="file-header-left tw-flex tw-items-center tw-py-2 tw-pr-4"> 16 16 {{template "repo/file_info" .}} 17 17 </div> 18 18 <div class="file-header-right file-actions tw-flex tw-items-center tw-flex-wrap"> ··· 34 34 <table> 35 35 <tbody> 36 36 <tr> 37 - <td class="gt-text-center gt-p-1"><strong>{{ctx.Locale.Tr "repo.file_too_large"}}</strong></td> 37 + <td class="gt-text-center tw-p-0.5"><strong>{{ctx.Locale.Tr "repo.file_too_large"}}</strong></td> 38 38 </tr> 39 39 </tbody> 40 40 </table> ··· 78 78 </td> 79 79 {{end}} 80 80 <td rel="L{{$row.RowNumber}}" class="lines-code blame-code chroma"> 81 - <code class="code-inner gt-pl-3">{{$row.Code}}</code> 81 + <code class="code-inner tw-pl-2">{{$row.Code}}</code> 82 82 </td> 83 83 </tr> 84 84 {{end}}
+20 -20
templates/repo/branch/list.tmpl
··· 22 22 <div class="flex-text-block"> 23 23 {{if .DefaultBranchBranch.IsProtected}}{{svg "octicon-shield-lock"}}{{end}} 24 24 <a class="gt-ellipsis" href="{{.RepoLink}}/src/branch/{{PathEscapeSegments .DefaultBranchBranch.DBBranch.Name}}">{{.DefaultBranchBranch.DBBranch.Name}}</a> 25 - <button class="btn interact-fg gt-px-2" data-clipboard-text="{{.DefaultBranchBranch.DBBranch.Name}}">{{svg "octicon-copy" 14}}</button> 25 + <button class="btn interact-fg tw-px-1" data-clipboard-text="{{.DefaultBranchBranch.DBBranch.Name}}">{{svg "octicon-copy" 14}}</button> 26 26 {{template "repo/commit_statuses" dict "Status" (index $.CommitStatus .DefaultBranchBranch.DBBranch.CommitID) "Statuses" (index $.CommitStatuses .DefaultBranchBranch.DBBranch.CommitID)}} 27 27 </div> 28 - <p class="info tw-flex tw-items-center gt-my-2">{{svg "octicon-git-commit" 16 "gt-mr-2"}}<a href="{{.RepoLink}}/commit/{{PathEscape .DefaultBranchBranch.DBBranch.CommitID}}">{{ShortSha .DefaultBranchBranch.DBBranch.CommitID}}</a> · <span class="commit-message">{{RenderCommitMessage $.Context .DefaultBranchBranch.DBBranch.CommitMessage (.Repository.ComposeMetas ctx)}}</span> · {{ctx.Locale.Tr "org.repo_updated"}} {{TimeSince .DefaultBranchBranch.DBBranch.CommitTime.AsTime ctx.Locale}}{{if .DefaultBranchBranch.DBBranch.Pusher}} &nbsp;{{template "shared/user/avatarlink" dict "user" .DefaultBranchBranch.DBBranch.Pusher}}{{template "shared/user/namelink" .DefaultBranchBranch.DBBranch.Pusher}}{{end}}</p> 28 + <p class="info tw-flex tw-items-center tw-my-1">{{svg "octicon-git-commit" 16 "tw-mr-1"}}<a href="{{.RepoLink}}/commit/{{PathEscape .DefaultBranchBranch.DBBranch.CommitID}}">{{ShortSha .DefaultBranchBranch.DBBranch.CommitID}}</a> · <span class="commit-message">{{RenderCommitMessage $.Context .DefaultBranchBranch.DBBranch.CommitMessage (.Repository.ComposeMetas ctx)}}</span> · {{ctx.Locale.Tr "org.repo_updated"}} {{TimeSince .DefaultBranchBranch.DBBranch.CommitTime.AsTime ctx.Locale}}{{if .DefaultBranchBranch.DBBranch.Pusher}} &nbsp;{{template "shared/user/avatarlink" dict "user" .DefaultBranchBranch.DBBranch.Pusher}}{{template "shared/user/namelink" .DefaultBranchBranch.DBBranch.Pusher}}{{end}}</p> 29 29 </td> 30 30 <td class="right aligned middle aligned overflow-visible"> 31 31 {{if and $.IsWriter (not $.Repository.IsArchived) (not .IsDeleted)}} 32 - <button class="btn interact-bg show-create-branch-modal gt-p-3" 32 + <button class="btn interact-bg show-create-branch-modal tw-p-2" 33 33 data-modal="#create-branch-modal" 34 34 data-branch-from="{{$.DefaultBranchBranch.DBBranch.Name}}" 35 35 data-branch-from-urlcomponent="{{PathEscapeSegments $.DefaultBranchBranch.DBBranch.Name}}" ··· 39 39 </button> 40 40 {{end}} 41 41 {{if .EnableFeed}} 42 - <a role="button" class="btn interact-bg gt-p-3" href="{{$.FeedURL}}/rss/branch/{{PathEscapeSegments .DefaultBranchBranch.DBBranch.Name}}">{{svg "octicon-rss"}}</a> 42 + <a role="button" class="btn interact-bg tw-p-2" href="{{$.FeedURL}}/rss/branch/{{PathEscapeSegments .DefaultBranchBranch.DBBranch.Name}}">{{svg "octicon-rss"}}</a> 43 43 {{end}} 44 44 {{if not $.DisableDownloadSourceArchives}} 45 - <div class="ui dropdown btn interact-bg gt-p-3" data-tooltip-content="{{ctx.Locale.Tr "repo.branch.download" ($.DefaultBranchBranch.DBBranch.Name)}}"> 45 + <div class="ui dropdown btn interact-bg tw-p-2" data-tooltip-content="{{ctx.Locale.Tr "repo.branch.download" ($.DefaultBranchBranch.DBBranch.Name)}}"> 46 46 {{svg "octicon-download"}} 47 47 <div class="menu"> 48 48 <a class="item archive-link" href="{{$.RepoLink}}/archive/{{PathEscapeSegments $.DefaultBranchBranch.DBBranch.Name}}.zip" rel="nofollow">{{svg "octicon-file-zip"}}&nbsp;ZIP</a> ··· 51 51 </div> 52 52 {{end}} 53 53 {{if and $.IsWriter (not $.Repository.IsArchived) (not .IsDeleted) (not $.IsMirror)}} 54 - <button class="btn interact-bg gt-p-3 show-modal show-rename-branch-modal" 54 + <button class="btn interact-bg tw-p-2 show-modal show-rename-branch-modal" 55 55 data-is-default-branch="true" 56 56 data-modal="#rename-branch-modal" 57 57 data-old-branch-name="{{$.DefaultBranchBranch.DBBranch.Name}}" ··· 88 88 {{if .DBBranch.IsDeleted}} 89 89 <div class="flex-text-block"> 90 90 <a class="gt-ellipsis" href="{{$.RepoLink}}/src/branch/{{PathEscapeSegments .DBBranch.Name}}">{{.DBBranch.Name}}</a> 91 - <button class="btn interact-fg gt-px-2" data-clipboard-text="{{.DBBranch.Name}}">{{svg "octicon-copy" 14}}</button> 91 + <button class="btn interact-fg tw-px-1" data-clipboard-text="{{.DBBranch.Name}}">{{svg "octicon-copy" 14}}</button> 92 92 </div> 93 93 <p class="info">{{ctx.Locale.Tr "repo.branch.deleted_by" .DBBranch.DeletedBy.Name}} {{TimeSinceUnix .DBBranch.DeletedUnix ctx.Locale}}</p> 94 94 {{else}} 95 95 <div class="flex-text-block"> 96 96 {{if .IsProtected}}{{svg "octicon-shield-lock"}}{{end}} 97 97 <a class="gt-ellipsis" href="{{$.RepoLink}}/src/branch/{{PathEscapeSegments .DBBranch.Name}}">{{.DBBranch.Name}}</a> 98 - <button class="btn interact-fg gt-px-2" data-clipboard-text="{{.DBBranch.Name}}">{{svg "octicon-copy" 14}}</button> 98 + <button class="btn interact-fg tw-px-1" data-clipboard-text="{{.DBBranch.Name}}">{{svg "octicon-copy" 14}}</button> 99 99 {{template "repo/commit_statuses" dict "Status" (index $.CommitStatus .DBBranch.CommitID) "Statuses" (index $.CommitStatuses .DBBranch.CommitID)}} 100 100 </div> 101 - <p class="info tw-flex tw-items-center gt-my-2">{{svg "octicon-git-commit" 16 "gt-mr-2"}}<a href="{{$.RepoLink}}/commit/{{PathEscape .DBBranch.CommitID}}">{{ShortSha .DBBranch.CommitID}}</a> · <span class="commit-message">{{RenderCommitMessage $.Context .DBBranch.CommitMessage ($.Repository.ComposeMetas ctx)}}</span> · {{ctx.Locale.Tr "org.repo_updated"}} {{TimeSince .DBBranch.CommitTime.AsTime ctx.Locale}}{{if .DBBranch.Pusher}} &nbsp;{{template "shared/user/avatarlink" dict "user" .DBBranch.Pusher}} &nbsp;{{template "shared/user/namelink" .DBBranch.Pusher}}{{end}}</p> 101 + <p class="info tw-flex tw-items-center tw-my-1">{{svg "octicon-git-commit" 16 "tw-mr-1"}}<a href="{{$.RepoLink}}/commit/{{PathEscape .DBBranch.CommitID}}">{{ShortSha .DBBranch.CommitID}}</a> · <span class="commit-message">{{RenderCommitMessage $.Context .DBBranch.CommitMessage ($.Repository.ComposeMetas ctx)}}</span> · {{ctx.Locale.Tr "org.repo_updated"}} {{TimeSince .DBBranch.CommitTime.AsTime ctx.Locale}}{{if .DBBranch.Pusher}} &nbsp;{{template "shared/user/avatarlink" dict "user" .DBBranch.Pusher}} &nbsp;{{template "shared/user/namelink" .DBBranch.Pusher}}{{end}}</p> 102 102 {{end}} 103 103 </td> 104 104 <td class="two wide ui"> ··· 124 124 </span> 125 125 {{else if and (not .DBBranch.IsDeleted) $.AllowsPulls (gt .CommitsAhead 0)}} 126 126 <a href="{{$.RepoLink}}/compare/{{PathEscapeSegments $.DefaultBranchBranch.DBBranch.Name}}...{{if ne $.Repository.Owner.Name $.Owner.Name}}{{PathEscape $.Owner.Name}}:{{end}}{{PathEscapeSegments .DBBranch.Name}}"> 127 - <button id="new-pull-request" class="ui compact basic button gt-mr-0">{{if $.CanPull}}{{ctx.Locale.Tr "repo.pulls.compare_changes"}}{{else}}{{ctx.Locale.Tr "action.compare_branch"}}{{end}}</button> 127 + <button id="new-pull-request" class="ui compact basic button tw-mr-0">{{if $.CanPull}}{{ctx.Locale.Tr "repo.pulls.compare_changes"}}{{else}}{{ctx.Locale.Tr "action.compare_branch"}}{{end}}</button> 128 128 </a> 129 129 {{end}} 130 130 {{else if and .LatestPullRequest.HasMerged .MergeMovedOn}} 131 131 {{if and (not .DBBranch.IsDeleted) $.AllowsPulls (gt .CommitsAhead 0)}} 132 132 <a href="{{$.RepoLink}}/compare/{{PathEscapeSegments $.DefaultBranchBranch.DBBranch.Name}}...{{if ne $.Repository.Owner.Name $.Owner.Name}}{{PathEscape $.Owner.Name}}:{{end}}{{PathEscapeSegments .DBBranch.Name}}"> 133 - <button id="new-pull-request" class="ui compact basic button gt-mr-0">{{if $.CanPull}}{{ctx.Locale.Tr "repo.pulls.compare_changes"}}{{else}}{{ctx.Locale.Tr "action.compare_branch"}}{{end}}</button> 133 + <button id="new-pull-request" class="ui compact basic button tw-mr-0">{{if $.CanPull}}{{ctx.Locale.Tr "repo.pulls.compare_changes"}}{{else}}{{ctx.Locale.Tr "action.compare_branch"}}{{end}}</button> 134 134 </a> 135 135 {{end}} 136 136 {{else}} 137 137 <a href="{{.LatestPullRequest.Issue.Link}}" class="tw-align-middle ref-issue">{{if not .LatestPullRequest.IsSameRepo}}{{.LatestPullRequest.BaseRepo.FullName}}{{end}}#{{.LatestPullRequest.Issue.Index}}</a> 138 138 {{if .LatestPullRequest.HasMerged}} 139 - <a href="{{.LatestPullRequest.Issue.Link}}" class="ui purple large label">{{svg "octicon-git-merge" 16 "gt-mr-2"}}{{ctx.Locale.Tr "repo.pulls.merged"}}</a> 139 + <a href="{{.LatestPullRequest.Issue.Link}}" class="ui purple large label">{{svg "octicon-git-merge" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.pulls.merged"}}</a> 140 140 {{else if .LatestPullRequest.Issue.IsClosed}} 141 - <a href="{{.LatestPullRequest.Issue.Link}}" class="ui red large label">{{svg "octicon-git-pull-request" 16 "gt-mr-2"}}{{ctx.Locale.Tr "repo.issues.closed_title"}}</a> 141 + <a href="{{.LatestPullRequest.Issue.Link}}" class="ui red large label">{{svg "octicon-git-pull-request" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.issues.closed_title"}}</a> 142 142 {{else}} 143 - <a href="{{.LatestPullRequest.Issue.Link}}" class="ui green large label">{{svg "octicon-git-pull-request" 16 "gt-mr-2"}}{{ctx.Locale.Tr "repo.issues.open_title"}}</a> 143 + <a href="{{.LatestPullRequest.Issue.Link}}" class="ui green large label">{{svg "octicon-git-pull-request" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.issues.open_title"}}</a> 144 144 {{end}} 145 145 {{end}} 146 146 </td> 147 147 <td class="three wide right aligned overflow-visible"> 148 148 {{if and $.IsWriter (not $.Repository.IsArchived) (not .DBBranch.IsDeleted)}} 149 - <button class="btn interact-bg gt-p-3 show-modal show-create-branch-modal" 149 + <button class="btn interact-bg tw-p-2 show-modal show-create-branch-modal" 150 150 data-branch-from="{{.DBBranch.Name}}" 151 151 data-branch-from-urlcomponent="{{PathEscapeSegments .DBBranch.Name}}" 152 152 data-tooltip-content="{{ctx.Locale.Tr "repo.branch.new_branch_from" .DBBranch.Name}}" ··· 156 156 </button> 157 157 {{end}} 158 158 {{if $.EnableFeed}} 159 - <a role="button" class="btn interact-bg gt-p-3" href="{{$.FeedURL}}/rss/branch/{{PathEscapeSegments .DBBranch.Name}}">{{svg "octicon-rss"}}</a> 159 + <a role="button" class="btn interact-bg tw-p-2" href="{{$.FeedURL}}/rss/branch/{{PathEscapeSegments .DBBranch.Name}}">{{svg "octicon-rss"}}</a> 160 160 {{end}} 161 161 {{if and (not .DBBranch.IsDeleted) (not $.DisableDownloadSourceArchives)}} 162 - <div class="ui dropdown btn interact-bg gt-p-3" data-tooltip-content="{{ctx.Locale.Tr "repo.branch.download" (.DBBranch.Name)}}"> 162 + <div class="ui dropdown btn interact-bg tw-p-2" data-tooltip-content="{{ctx.Locale.Tr "repo.branch.download" (.DBBranch.Name)}}"> 163 163 {{svg "octicon-download"}} 164 164 <div class="menu"> 165 165 <a class="item archive-link" href="{{$.RepoLink}}/archive/{{PathEscapeSegments .DBBranch.Name}}.zip" rel="nofollow">{{svg "octicon-file-zip"}}&nbsp;ZIP</a> ··· 168 168 </div> 169 169 {{end}} 170 170 {{if and $.IsWriter (not $.Repository.IsArchived) (not .DBBranch.IsDeleted) (not $.IsMirror)}} 171 - <button class="btn interact-bg gt-p-3 show-modal show-rename-branch-modal" 171 + <button class="btn interact-bg tw-p-2 show-modal show-rename-branch-modal" 172 172 data-is-default-branch="false" 173 173 data-old-branch-name="{{.DBBranch.Name}}" 174 174 data-modal="#rename-branch-modal" ··· 179 179 {{end}} 180 180 {{if and $.IsWriter (not $.IsMirror) (not $.Repository.IsArchived) (not .IsProtected)}} 181 181 {{if .DBBranch.IsDeleted}} 182 - <button class="btn interact-bg gt-p-3 link-action restore-branch-button" data-url="{{$.Link}}/restore?branch_id={{.DBBranch.ID}}&name={{.DBBranch.Name}}&page={{$.Page.Paginater.Current}}" data-tooltip-content="{{ctx.Locale.Tr "repo.branch.restore" (.DBBranch.Name)}}"> 182 + <button class="btn interact-bg tw-p-2 link-action restore-branch-button" data-url="{{$.Link}}/restore?branch_id={{.DBBranch.ID}}&name={{.DBBranch.Name}}&page={{$.Page.Paginater.Current}}" data-tooltip-content="{{ctx.Locale.Tr "repo.branch.restore" (.DBBranch.Name)}}"> 183 183 <span class="text blue"> 184 184 {{svg "octicon-reply"}} 185 185 </span> 186 186 </button> 187 187 {{else}} 188 - <button class="btn interact-bg gt-p-3 delete-button delete-branch-button" data-url="{{$.Link}}/delete?name={{.DBBranch.Name}}&page={{$.Page.Paginater.Current}}" data-tooltip-content="{{ctx.Locale.Tr "repo.branch.delete" (.DBBranch.Name)}}" data-name="{{.DBBranch.Name}}"> 188 + <button class="btn interact-bg tw-p-2 delete-button delete-branch-button" data-url="{{$.Link}}/delete?name={{.DBBranch.Name}}&page={{$.Page.Paginater.Current}}" data-tooltip-content="{{ctx.Locale.Tr "repo.branch.delete" (.DBBranch.Name)}}" data-name="{{.DBBranch.Name}}"> 189 189 {{svg "octicon-trash"}} 190 190 </button> 191 191 {{end}}
+3 -3
templates/repo/branch_dropdown.tmpl
··· 70 70 <div class="js-branch-tag-selector {{if .ContainerClasses}}{{.ContainerClasses}}{{end}}"> 71 71 {{/* show dummy elements before Vue componment is mounted, this code must match the code in BranchTagSelector.vue */}} 72 72 <div class="ui dropdown custom"> 73 - <button class="branch-dropdown-button gt-ellipsis ui basic small compact button tw-flex gt-m-0"> 74 - <span class="text tw-flex tw-items-center gt-mr-2"> 73 + <button class="branch-dropdown-button gt-ellipsis ui basic small compact button tw-flex tw-m-0"> 74 + <span class="text tw-flex tw-items-center tw-mr-1"> 75 75 {{if .release}} 76 76 {{ctx.Locale.Tr "repo.release.compare"}} 77 77 {{else}} ··· 80 80 {{else}} 81 81 {{svg "octicon-git-branch"}} 82 82 {{end}} 83 - <strong ref="dropdownRefName" class="gt-ml-3">{{if and .root.IsViewTag (not .noTag)}}{{.root.TagName}}{{else if .root.IsViewBranch}}{{.root.BranchName}}{{else}}{{ShortSha .root.CommitID}}{{end}}</strong> 83 + <strong ref="dropdownRefName" class="tw-ml-2">{{if and .root.IsViewTag (not .noTag)}}{{.root.TagName}}{{else if .root.IsViewBranch}}{{.root.BranchName}}{{else}}{{ShortSha .root.CommitID}}{{end}}</strong> 84 84 {{end}} 85 85 </span> 86 86 {{svg "octicon-triangle-down" 14 "dropdown icon"}}
+1 -1
templates/repo/code/recently_pushed_new_branches.tmpl
··· 10 10 {{$branchLink := (print ($repo.Link) "/src/branch/" (PathEscapeSegments .Name))}} 11 11 {{ctx.Locale.Tr "repo.pulls.recently_pushed_new_branches" $name $timeSince $branchLink}} 12 12 </div> 13 - <a role="button" class="ui compact positive button gt-m-0" href="{{$.Repository.ComposeBranchCompareURL $.Repository.BaseRepo $name}}"> 13 + <a role="button" class="ui compact positive button tw-m-0" href="{{$.Repository.ComposeBranchCompareURL $.Repository.BaseRepo $name}}"> 14 14 {{ctx.Locale.Tr "repo.pulls.compare_changes"}} 15 15 </a> 16 16 </div>
+5 -5
templates/repo/commit_load_branches_and_tags.tmpl
··· 1 1 {{if not .PageIsWiki}} 2 2 <div class="branch-and-tag-area" data-text-default-branch-tooltip="{{ctx.Locale.Tr "repo.commit.contained_in_default_branch"}}"> 3 - <button class="ui button ellipsis-button load-branches-and-tags gt-mt-3" aria-expanded="false" 3 + <button class="ui button ellipsis-button load-branches-and-tags tw-mt-2" aria-expanded="false" 4 4 data-fetch-url="{{.RepoLink}}/commit/{{.CommitID}}/load-branches-and-tags" 5 5 data-tooltip-content="{{ctx.Locale.Tr "repo.commit.load_referencing_branches_and_tags"}}" 6 6 >...</button> 7 7 <div class="branch-and-tag-detail gt-hidden"> 8 8 <div class="divider"></div> 9 9 <div>{{ctx.Locale.Tr "repo.commit.contained_in"}}</div> 10 - <div class="tw-flex gt-mt-3"> 11 - <div class="gt-p-2">{{svg "octicon-git-branch"}}</div> 10 + <div class="tw-flex tw-mt-2"> 11 + <div class="tw-p-1">{{svg "octicon-git-branch"}}</div> 12 12 <div class="branch-area flex-text-block tw-flex-wrap tw-flex-1"></div> 13 13 </div> 14 - <div class="tw-flex gt-mt-3"> 15 - <div class="gt-p-2">{{svg "octicon-tag"}}</div> 14 + <div class="tw-flex tw-mt-2"> 15 + <div class="tw-p-1">{{svg "octicon-tag"}}</div> 16 16 <div class="tag-area flex-text-block tw-flex-wrap tw-flex-1"></div> 17 17 </div> 18 18 </div>
+33 -33
templates/repo/commit_page.tmpl
··· 18 18 {{end}} 19 19 {{end}} 20 20 <div class="ui top attached header clearing segment tw-relative commit-header {{$class}}"> 21 - <div class="tw-flex gt-mb-4 tw-flex-wrap"> 22 - <h3 class="gt-mb-0 tw-flex-1"><span class="commit-summary" title="{{.Commit.Summary}}">{{RenderCommitMessage $.Context .Commit.Message ($.Repository.ComposeMetas ctx)}}</span>{{template "repo/commit_statuses" dict "Status" .CommitStatus "Statuses" .CommitStatuses}}</h3> 21 + <div class="tw-flex tw-mb-4 tw-flex-wrap"> 22 + <h3 class="tw-mb-0 tw-flex-1"><span class="commit-summary" title="{{.Commit.Summary}}">{{RenderCommitMessage $.Context .Commit.Message ($.Repository.ComposeMetas ctx)}}</span>{{template "repo/commit_statuses" dict "Status" .CommitStatus "Statuses" .CommitStatuses}}</h3> 23 23 {{if not $.PageIsWiki}} 24 24 <div> 25 25 <a class="ui primary tiny button" href="{{.SourcePath}}"> ··· 139 139 {{end}} 140 140 {{template "repo/commit_load_branches_and_tags" .}} 141 141 </div> 142 - <div class="ui attached segment tw-flex tw-items-center tw-justify-between gt-py-2 commit-header-row tw-flex-wrap {{$class}}"> 142 + <div class="ui attached segment tw-flex tw-items-center tw-justify-between tw-py-1 commit-header-row tw-flex-wrap {{$class}}"> 143 143 <div class="tw-flex tw-items-center author"> 144 144 {{if .Author}} 145 - {{ctx.AvatarUtils.Avatar .Author 28 "gt-mr-3"}} 145 + {{ctx.AvatarUtils.Avatar .Author 28 "tw-mr-2"}} 146 146 {{if .Author.FullName}} 147 147 <a href="{{.Author.HomeLink}}"><strong>{{.Author.FullName}}</strong></a> 148 148 {{else}} 149 149 <a href="{{.Author.HomeLink}}"><strong>{{.Commit.Author.Name}}</strong></a> 150 150 {{end}} 151 151 {{else}} 152 - {{ctx.AvatarUtils.AvatarByEmail .Commit.Author.Email .Commit.Author.Email 28 "gt-mr-3"}} 152 + {{ctx.AvatarUtils.AvatarByEmail .Commit.Author.Email .Commit.Author.Email 28 "tw-mr-2"}} 153 153 <strong>{{.Commit.Author.Name}}</strong> 154 154 {{end}} 155 - <span class="text grey gt-ml-3" id="authored-time">{{TimeSince .Commit.Author.When ctx.Locale}}</span> 155 + <span class="text grey tw-ml-2" id="authored-time">{{TimeSince .Commit.Author.When ctx.Locale}}</span> 156 156 {{if or (ne .Commit.Committer.Name .Commit.Author.Name) (ne .Commit.Committer.Email .Commit.Author.Email)}} 157 - <span class="text grey gt-mx-3">{{ctx.Locale.Tr "repo.diff.committed_by"}}</span> 157 + <span class="text grey tw-mx-2">{{ctx.Locale.Tr "repo.diff.committed_by"}}</span> 158 158 {{if ne .Verification.CommittingUser.ID 0}} 159 - {{ctx.AvatarUtils.Avatar .Verification.CommittingUser 28 "gt-mx-3"}} 159 + {{ctx.AvatarUtils.Avatar .Verification.CommittingUser 28 "tw-mx-2"}} 160 160 <a href="{{.Verification.CommittingUser.HomeLink}}"><strong>{{.Commit.Committer.Name}}</strong></a> 161 161 {{else}} 162 - {{ctx.AvatarUtils.AvatarByEmail .Commit.Committer.Email .Commit.Committer.Name 28 "gt-mr-3"}} 162 + {{ctx.AvatarUtils.AvatarByEmail .Commit.Committer.Email .Commit.Committer.Name 28 "tw-mr-2"}} 163 163 <strong>{{.Commit.Committer.Name}}</strong> 164 164 {{end}} 165 165 {{end}} ··· 184 184 </div> 185 185 </div> 186 186 {{if .Commit.Signature}} 187 - <div class="ui bottom attached message tw-text-left tw-flex tw-items-center tw-justify-between commit-header-row tw-flex-wrap gt-mb-0 {{$class}}"> 187 + <div class="ui bottom attached message tw-text-left tw-flex tw-items-center tw-justify-between commit-header-row tw-flex-wrap tw-mb-0 {{$class}}"> 188 188 <div class="tw-flex tw-items-center"> 189 189 {{if .Verification.Verified}} 190 190 {{if ne .Verification.SigningUser.ID 0}} 191 - {{svg "gitea-lock" 16 "gt-mr-3"}} 191 + {{svg "gitea-lock" 16 "tw-mr-2"}} 192 192 {{if eq .Verification.TrustStatus "trusted"}} 193 - <span class="ui text gt-mr-3">{{ctx.Locale.Tr "repo.commits.signed_by"}}:</span> 193 + <span class="ui text tw-mr-2">{{ctx.Locale.Tr "repo.commits.signed_by"}}:</span> 194 194 {{else if eq .Verification.TrustStatus "untrusted"}} 195 - <span class="ui text gt-mr-3">{{ctx.Locale.Tr "repo.commits.signed_by_untrusted_user"}}:</span> 195 + <span class="ui text tw-mr-2">{{ctx.Locale.Tr "repo.commits.signed_by_untrusted_user"}}:</span> 196 196 {{else}} 197 - <span class="ui text gt-mr-3">{{ctx.Locale.Tr "repo.commits.signed_by_untrusted_user_unmatched"}}:</span> 197 + <span class="ui text tw-mr-2">{{ctx.Locale.Tr "repo.commits.signed_by_untrusted_user_unmatched"}}:</span> 198 198 {{end}} 199 - {{ctx.AvatarUtils.Avatar .Verification.SigningUser 28 "gt-mr-3"}} 199 + {{ctx.AvatarUtils.Avatar .Verification.SigningUser 28 "tw-mr-2"}} 200 200 <a href="{{.Verification.SigningUser.HomeLink}}"><strong>{{.Verification.SigningUser.GetDisplayName}}</strong></a> 201 201 {{else}} 202 - <span title="{{ctx.Locale.Tr "gpg.default_key"}}">{{svg "gitea-lock-cog" 16 "gt-mr-3"}}</span> 203 - <span class="ui text gt-mr-3">{{ctx.Locale.Tr "repo.commits.signed_by"}}:</span> 204 - {{ctx.AvatarUtils.AvatarByEmail .Verification.SigningEmail "" 28 "gt-mr-3"}} 202 + <span title="{{ctx.Locale.Tr "gpg.default_key"}}">{{svg "gitea-lock-cog" 16 "tw-mr-2"}}</span> 203 + <span class="ui text tw-mr-2">{{ctx.Locale.Tr "repo.commits.signed_by"}}:</span> 204 + {{ctx.AvatarUtils.AvatarByEmail .Verification.SigningEmail "" 28 "tw-mr-2"}} 205 205 <strong>{{.Verification.SigningUser.GetDisplayName}}</strong> 206 206 {{end}} 207 207 {{else}} 208 - {{svg "gitea-unlock" 16 "gt-mr-3"}} 208 + {{svg "gitea-unlock" 16 "tw-mr-2"}} 209 209 <span class="ui text">{{ctx.Locale.Tr .Verification.Reason}}</span> 210 210 {{end}} 211 211 </div> 212 212 <div class="tw-flex tw-items-center"> 213 213 {{if .Verification.Verified}} 214 214 {{if ne .Verification.SigningUser.ID 0}} 215 - {{svg "octicon-verified" 16 "gt-mr-3"}} 215 + {{svg "octicon-verified" 16 "tw-mr-2"}} 216 216 {{if .Verification.SigningSSHKey}} 217 - <span class="ui text gt-mr-3">{{ctx.Locale.Tr "repo.commits.ssh_key_fingerprint"}}:</span> 217 + <span class="ui text tw-mr-2">{{ctx.Locale.Tr "repo.commits.ssh_key_fingerprint"}}:</span> 218 218 {{.Verification.SigningSSHKey.Fingerprint}} 219 219 {{else}} 220 - <span class="ui text gt-mr-3">{{ctx.Locale.Tr "repo.commits.gpg_key_id"}}:</span> 220 + <span class="ui text tw-mr-2">{{ctx.Locale.Tr "repo.commits.gpg_key_id"}}:</span> 221 221 {{.Verification.SigningKey.PaddedKeyID}} 222 222 {{end}} 223 223 {{else}} 224 - {{svg "octicon-unverified" 16 "gt-mr-3"}} 224 + {{svg "octicon-unverified" 16 "tw-mr-2"}} 225 225 {{if .Verification.SigningSSHKey}} 226 - <span class="ui text gt-mr-3" data-tooltip-content="{{ctx.Locale.Tr "gpg.default_key"}}">{{ctx.Locale.Tr "repo.commits.ssh_key_fingerprint"}}:</span> 226 + <span class="ui text tw-mr-2" data-tooltip-content="{{ctx.Locale.Tr "gpg.default_key"}}">{{ctx.Locale.Tr "repo.commits.ssh_key_fingerprint"}}:</span> 227 227 {{.Verification.SigningSSHKey.Fingerprint}} 228 228 {{else}} 229 - <span class="ui text gt-mr-3" data-tooltip-content="{{ctx.Locale.Tr "gpg.default_key"}}">{{ctx.Locale.Tr "repo.commits.gpg_key_id"}}:</span> 229 + <span class="ui text tw-mr-2" data-tooltip-content="{{ctx.Locale.Tr "gpg.default_key"}}">{{ctx.Locale.Tr "repo.commits.gpg_key_id"}}:</span> 230 230 {{.Verification.SigningKey.PaddedKeyID}} 231 231 {{end}} 232 232 {{end}} 233 233 {{else if .Verification.Warning}} 234 - {{svg "octicon-unverified" 16 "gt-mr-3"}} 234 + {{svg "octicon-unverified" 16 "tw-mr-2"}} 235 235 {{if .Verification.SigningSSHKey}} 236 - <span class="ui text gt-mr-3">{{ctx.Locale.Tr "repo.commits.ssh_key_fingerprint"}}:</span> 236 + <span class="ui text tw-mr-2">{{ctx.Locale.Tr "repo.commits.ssh_key_fingerprint"}}:</span> 237 237 {{.Verification.SigningSSHKey.Fingerprint}} 238 238 {{else}} 239 - <span class="ui text gt-mr-3">{{ctx.Locale.Tr "repo.commits.gpg_key_id"}}:</span> 239 + <span class="ui text tw-mr-2">{{ctx.Locale.Tr "repo.commits.gpg_key_id"}}:</span> 240 240 {{.Verification.SigningKey.PaddedKeyID}} 241 241 {{end}} 242 242 {{else}} 243 243 {{if .Verification.SigningKey}} 244 244 {{if ne .Verification.SigningKey.KeyID ""}} 245 - {{svg "octicon-verified" 16 "gt-mr-3"}} 246 - <span class="ui text gt-mr-3">{{ctx.Locale.Tr "repo.commits.gpg_key_id"}}:</span> 245 + {{svg "octicon-verified" 16 "tw-mr-2"}} 246 + <span class="ui text tw-mr-2">{{ctx.Locale.Tr "repo.commits.gpg_key_id"}}:</span> 247 247 {{.Verification.SigningKey.PaddedKeyID}} 248 248 {{end}} 249 249 {{end}} 250 250 {{if .Verification.SigningSSHKey}} 251 251 {{if ne .Verification.SigningSSHKey.Fingerprint ""}} 252 - {{svg "octicon-verified" 16 "gt-mr-3"}} 253 - <span class="ui text gt-mr-3">{{ctx.Locale.Tr "repo.commits.ssh_key_fingerprint"}}:</span> 252 + {{svg "octicon-verified" 16 "tw-mr-2"}} 253 + <span class="ui text tw-mr-2">{{ctx.Locale.Tr "repo.commits.ssh_key_fingerprint"}}:</span> 254 254 {{.Verification.SigningSSHKey.Fingerprint}} 255 255 {{end}} 256 256 {{end}} ··· 260 260 {{end}} 261 261 {{if .NoteRendered}} 262 262 <div class="ui top attached header segment git-notes"> 263 - {{svg "octicon-note" 16 "gt-mr-3"}} 263 + {{svg "octicon-note" 16 "tw-mr-2"}} 264 264 {{ctx.Locale.Tr "repo.diff.git-notes"}}: 265 265 {{if .NoteAuthor}} 266 266 <a href="{{.NoteAuthor.HomeLink}}">
+1 -1
templates/repo/commits.tmpl
··· 5 5 {{template "repo/sub_menu" .}} 6 6 <div class="repo-button-row"> 7 7 <div class="tw-flex tw-items-center"> 8 - {{template "repo/branch_dropdown" dict "root" . "ContainerClasses" "gt-mr-2"}} 8 + {{template "repo/branch_dropdown" dict "root" . "ContainerClasses" "tw-mr-1"}} 9 9 <a href="{{.RepoLink}}/graph" class="ui basic small compact button"> 10 10 {{svg "octicon-git-branch"}} 11 11 {{ctx.Locale.Tr "repo.commit_graph"}}
+5 -5
templates/repo/commits_list.tmpl
··· 19 19 {{if .User.FullName}} 20 20 {{$userName = .User.FullName}} 21 21 {{end}} 22 - {{ctx.AvatarUtils.Avatar .User 28 "gt-mr-2"}}<a href="{{.User.HomeLink}}">{{$userName}}</a> 22 + {{ctx.AvatarUtils.Avatar .User 28 "tw-mr-1"}}<a href="{{.User.HomeLink}}">{{$userName}}</a> 23 23 {{else}} 24 - {{ctx.AvatarUtils.AvatarByEmail .Author.Email .Author.Name 28 "gt-mr-2"}} 24 + {{ctx.AvatarUtils.AvatarByEmail .Author.Email .Author.Name 28 "tw-mr-1"}} 25 25 {{$userName}} 26 26 {{end}} 27 27 </td> ··· 76 76 {{else}} 77 77 <td class="text right aligned">{{TimeSince .Author.When ctx.Locale}}</td> 78 78 {{end}} 79 - <td class="text right aligned gt-py-0"> 80 - <button class="btn interact-bg gt-p-3" data-tooltip-content="{{ctx.Locale.Tr "copy_hash"}}" data-clipboard-text="{{.ID}}">{{svg "octicon-copy"}}</button> 79 + <td class="text right aligned tw-py-0"> 80 + <button class="btn interact-bg tw-p-2" data-tooltip-content="{{ctx.Locale.Tr "copy_hash"}}" data-clipboard-text="{{.ID}}">{{svg "octicon-copy"}}</button> 81 81 <a 82 - class="btn interact-bg gt-p-3" 82 + class="btn interact-bg tw-p-2" 83 83 data-tooltip-content="{{ctx.Locale.Tr "repo.commits.view_path"}}" 84 84 href="{{if $.FileName}}{{printf "%s/src/commit/%s/%s" $commitRepoLink (PathEscape .ID.String) (PathEscapeSegments $.FileName)}}{{else}}{{printf "%s/src/commit/%s" $commitRepoLink (PathEscape .ID.String)}}{{end}}"> 85 85 {{svg "octicon-file-code"}}
+1 -1
templates/repo/commits_list_small.tmpl
··· 30 30 {{$class = (print $class " isWarning")}} 31 31 {{end}} 32 32 {{end}} 33 - <a href="{{$commitLink}}" rel="nofollow" class="gt-ml-3 {{$class}}"> 33 + <a href="{{$commitLink}}" rel="nofollow" class="tw-ml-2 {{$class}}"> 34 34 <span class="shortsha">{{ShortSha .ID.String}}</span> 35 35 {{if .Signature}} 36 36 {{template "repo/shabox_badge" dict "root" $.root "verification" .Verification}}
+2 -2
templates/repo/commits_table.tmpl
··· 10 10 </div> 11 11 {{if .IsDiffCompare}} 12 12 <div class="commits-table-right tw-whitespace-nowrap"> 13 - <a href="{{$.CommitRepoLink}}/commit/{{.BeforeCommitID | PathEscape}}" class="ui green sha label gt-mx-0">{{if not .BaseIsCommit}}{{if .BaseIsBranch}}{{svg "octicon-git-branch"}}{{else if .BaseIsTag}}{{svg "octicon-tag"}}{{end}}{{.BaseBranch}}{{else}}{{ShortSha .BaseBranch}}{{end}}</a> 13 + <a href="{{$.CommitRepoLink}}/commit/{{.BeforeCommitID | PathEscape}}" class="ui green sha label tw-mx-0">{{if not .BaseIsCommit}}{{if .BaseIsBranch}}{{svg "octicon-git-branch"}}{{else if .BaseIsTag}}{{svg "octicon-tag"}}{{end}}{{.BaseBranch}}{{else}}{{ShortSha .BaseBranch}}{{end}}</a> 14 14 ... 15 - <a href="{{$.CommitRepoLink}}/commit/{{.AfterCommitID | PathEscape}}" class="ui green sha label gt-mx-0">{{if not .HeadIsCommit}}{{if .HeadIsBranch}}{{svg "octicon-git-branch"}}{{else if .HeadIsTag}}{{svg "octicon-tag"}}{{end}}{{.HeadBranch}}{{else}}{{ShortSha .HeadBranch}}{{end}}</a> 15 + <a href="{{$.CommitRepoLink}}/commit/{{.AfterCommitID | PathEscape}}" class="ui green sha label tw-mx-0">{{if not .HeadIsCommit}}{{if .HeadIsBranch}}{{svg "octicon-git-branch"}}{{else if .HeadIsTag}}{{svg "octicon-tag"}}{{end}}{{.HeadBranch}}{{else}}{{ShortSha .HeadBranch}}{{end}}</a> 16 16 </div> 17 17 {{end}} 18 18 </h4>
+10 -10
templates/repo/diff/box.tmpl
··· 1 1 {{$showFileTree := (and (not .DiffNotAvailable) (gt .Diff.NumFiles 1))}} 2 2 <div> 3 3 <div class="diff-detail-box diff-box"> 4 - <div class="tw-flex tw-items-center tw-flex-wrap tw-gap-2 gt-ml-1"> 4 + <div class="tw-flex tw-items-center tw-flex-wrap tw-gap-2 tw-ml-0.5"> 5 5 {{if $showFileTree}} 6 6 <button class="diff-toggle-file-tree-button not-mobile btn interact-fg" data-show-text="{{ctx.Locale.Tr "repo.diff.show_file_tree"}}" data-hide-text="{{ctx.Locale.Tr "repo.diff.hide_file_tree"}}"> 7 7 {{/* the icon meaning is reversed here, "octicon-sidebar-collapse" means show the file tree */}} ··· 19 19 {{end}} 20 20 {{if not .DiffNotAvailable}} 21 21 <div class="diff-detail-stats tw-flex tw-items-center tw-flex-wrap"> 22 - {{svg "octicon-diff" 16 "gt-mr-2"}}{{ctx.Locale.Tr "repo.diff.stats_desc" .Diff.NumFiles .Diff.TotalAddition .Diff.TotalDeletion}} 22 + {{svg "octicon-diff" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.diff.stats_desc" .Diff.NumFiles .Diff.TotalAddition .Diff.TotalDeletion}} 23 23 </div> 24 24 {{end}} 25 25 </div> 26 26 <div class="diff-detail-actions"> 27 27 {{if and .PageIsPullFiles $.SignedUserID (not .IsArchived) (not .DiffNotAvailable)}} 28 - <div class="not-mobile tw-flex tw-items-center tw-flex-col tw-whitespace-nowrap gt-mr-2"> 28 + <div class="not-mobile tw-flex tw-items-center tw-flex-col tw-whitespace-nowrap tw-mr-1"> 29 29 <label for="viewed-files-summary" id="viewed-files-summary-label" data-text-changed-template="{{ctx.Locale.Tr "repo.pulls.viewed_files_label"}}"> 30 30 {{ctx.Locale.Tr "repo.pulls.viewed_files_label" .Diff.NumViewedFiles .Diff.NumFiles}} 31 31 </label> ··· 109 109 {{$showFileViewToggle := or $isImage (and (not $file.IsIncomplete) $isCsv)}} 110 110 {{$isExpandable := or (gt $file.Addition 0) (gt $file.Deletion 0) $file.IsBin}} 111 111 {{$isReviewFile := and $.IsSigned $.PageIsPullFiles (not $.IsArchived) $.IsShowingAllCommits}} 112 - <div class="diff-file-box diff-box file-content {{TabSizeClass $.Editorconfig $file.Name}} gt-mt-0" id="diff-{{$file.NameHash}}" data-old-filename="{{$file.OldName}}" data-new-filename="{{$file.Name}}" {{if or ($file.ShouldBeHidden) (not $isExpandable)}}data-folded="true"{{end}}> 112 + <div class="diff-file-box diff-box file-content {{TabSizeClass $.Editorconfig $file.Name}} tw-mt-0" id="diff-{{$file.NameHash}}" data-old-filename="{{$file.OldName}}" data-new-filename="{{$file.Name}}" {{if or ($file.ShouldBeHidden) (not $isExpandable)}}data-folded="true"{{end}}> 113 113 <h4 class="diff-file-header sticky-2nd-row ui top attached header tw-font-normal tw-flex tw-items-center tw-justify-between tw-flex-wrap"> 114 114 <div class="diff-file-name tw-flex tw-items-center gt-gap-2 tw-flex-wrap"> 115 - <button class="fold-file btn interact-bg gt-p-2{{if not $isExpandable}} tw-invisible{{end}}"> 115 + <button class="fold-file btn interact-bg tw-p-1{{if not $isExpandable}} tw-invisible{{end}}"> 116 116 {{if $file.ShouldBeHidden}} 117 117 {{svg "octicon-chevron-right" 18}} 118 118 {{else}} ··· 121 121 </button> 122 122 <div class="tw-font-semibold tw-flex tw-items-center gt-mono"> 123 123 {{if $file.IsBin}} 124 - <span class="gt-ml-1 gt-mr-3"> 124 + <span class="tw-ml-0.5 tw-mr-2"> 125 125 {{ctx.Locale.Tr "repo.diff.bin"}} 126 126 </span> 127 127 {{else}} ··· 129 129 {{end}} 130 130 </div> 131 131 <span class="file gt-mono"><a class="muted file-link" title="{{if $file.IsRenamed}}{{$file.OldName}} → {{end}}{{$file.Name}}" href="#diff-{{$file.NameHash}}">{{if $file.IsRenamed}}{{$file.OldName}} → {{end}}{{$file.Name}}</a>{{if .IsLFSFile}} ({{ctx.Locale.Tr "repo.stored_lfs"}}){{end}}</span> 132 - <button class="btn interact-fg gt-p-3" data-clipboard-text="{{$file.Name}}">{{svg "octicon-copy" 14}}</button> 132 + <button class="btn interact-fg tw-p-2" data-clipboard-text="{{$file.Name}}">{{svg "octicon-copy" 14}}</button> 133 133 {{if $file.IsGenerated}} 134 134 <span class="ui label">{{ctx.Locale.Tr "repo.diff.generated"}}</span> 135 135 {{end}} ··· 139 139 {{if and $file.Mode $file.OldMode}} 140 140 {{$old := ctx.Locale.Tr ($file.ModeTranslationKey $file.OldMode)}} 141 141 {{$new := ctx.Locale.Tr ($file.ModeTranslationKey $file.Mode)}} 142 - <span class="gt-ml-4 gt-mono">{{ctx.Locale.Tr "git.filemode.changed_filemode" $old $new}}</span> 142 + <span class="tw-ml-4 gt-mono">{{ctx.Locale.Tr "git.filemode.changed_filemode" $old $new}}</span> 143 143 {{else if $file.Mode}} 144 - <span class="gt-ml-4 gt-mono">{{ctx.Locale.Tr ($file.ModeTranslationKey $file.Mode)}}</span> 144 + <span class="tw-ml-4 gt-mono">{{ctx.Locale.Tr ($file.ModeTranslationKey $file.Mode)}}</span> 145 145 {{end}} 146 146 </div> 147 147 <div class="diff-file-header-actions tw-flex tw-items-center tw-gap-1 tw-flex-wrap"> ··· 220 220 {{end}} 221 221 222 222 {{if .Diff.IsIncomplete}} 223 - <div class="diff-file-box diff-box file-content gt-mt-3" id="diff-incomplete"> 223 + <div class="diff-file-box diff-box file-content tw-mt-2" id="diff-incomplete"> 224 224 <h4 class="ui top attached header tw-font-normal tw-flex tw-items-center tw-justify-between"> 225 225 {{ctx.Locale.Tr "repo.diff.too_many_files"}} 226 226 <a class="ui basic tiny button" id="diff-show-more-files" data-href="?skip-to={{.Diff.End}}&file-only=true">{{ctx.Locale.Tr "repo.diff.show_more"}}</a>
+1 -1
templates/repo/diff/comment_form.tmpl
··· 25 25 </div> 26 26 {{end}} 27 27 28 - <div class="field footer gt-mx-3"> 28 + <div class="field footer tw-mx-2"> 29 29 <span class="markup-info">{{svg "octicon-markup"}} {{ctx.Locale.Tr "repo.diff.comment.markdown_info"}}</span> 30 30 <div class="tw-text-right"> 31 31 {{if $.reply}}
+1 -1
templates/repo/diff/comments.tmpl
··· 11 11 <div class="ui top attached header comment-header tw-flex tw-items-center tw-justify-between"> 12 12 <div class="comment-header-left tw-flex tw-items-center"> 13 13 {{if .OriginalAuthor}} 14 - <span class="text black tw-font-semibold gt-mr-2"> 14 + <span class="text black tw-font-semibold tw-mr-1"> 15 15 {{svg (MigrationIcon $.root.Repository.GetOriginalURLHostname)}} 16 16 {{.OriginalAuthor}} 17 17 </span>
+5 -5
templates/repo/diff/compare.tmpl
··· 28 28 {{- end -}} 29 29 {{- end -}} 30 30 <div class="ui segment choose branch"> 31 - <a class="gt-mr-3" href="{{$.HeadRepo.Link}}/compare/{{PathEscapeSegments $.HeadBranch}}{{$.CompareSeparator}}{{if not $.PullRequestCtx.SameRepo}}{{PathEscape $.BaseName}}/{{PathEscape $.Repository.Name}}:{{end}}{{PathEscapeSegments $.BaseBranch}}" title="{{ctx.Locale.Tr "repo.pulls.switch_head_and_base"}}">{{svg "octicon-git-compare"}}</a> 31 + <a class="tw-mr-2" href="{{$.HeadRepo.Link}}/compare/{{PathEscapeSegments $.HeadBranch}}{{$.CompareSeparator}}{{if not $.PullRequestCtx.SameRepo}}{{PathEscape $.BaseName}}/{{PathEscape $.Repository.Name}}:{{end}}{{PathEscapeSegments $.BaseBranch}}" title="{{ctx.Locale.Tr "repo.pulls.switch_head_and_base"}}">{{svg "octicon-git-compare"}}</a> 32 32 <div class="ui floating filter dropdown" data-no-results="{{ctx.Locale.Tr "repo.pulls.no_results"}}"> 33 33 <div class="ui basic small button"> 34 34 <span class="text">{{if $.PageIsComparePull}}{{ctx.Locale.Tr "repo.pulls.compare_base"}}{{else}}{{ctx.Locale.Tr "repo.compare.compare_base"}}{{end}}: {{$BaseCompareName}}:{{$.BaseBranch}}</span> ··· 44 44 <div class="two column row"> 45 45 <a class="reference column" href="#" data-target=".base-branch-list"> 46 46 <span class="text black"> 47 - {{svg "octicon-git-branch" 16 "gt-mr-2"}}{{ctx.Locale.Tr "repo.branches"}} 47 + {{svg "octicon-git-branch" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.branches"}} 48 48 </span> 49 49 </a> 50 50 <a class="reference column" href="#" data-target=".base-tag-list"> 51 51 <span class="text black"> 52 - {{svg "octicon-tag" 16 "gt-mr-2"}}{{ctx.Locale.Tr "repo.tags"}} 52 + {{svg "octicon-tag" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.tags"}} 53 53 </span> 54 54 </a> 55 55 </div> ··· 113 113 <div class="two column row"> 114 114 <a class="reference column" href="#" data-target=".head-branch-list"> 115 115 <span class="text black"> 116 - {{svg "octicon-git-branch" 16 "gt-mr-2"}}{{ctx.Locale.Tr "repo.branches"}} 116 + {{svg "octicon-git-branch" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.branches"}} 117 117 </span> 118 118 </a> 119 119 <a class="reference column" href="#" data-target=".head-tag-list"> 120 120 <span class="text black"> 121 - {{svg "octicon-tag" 16 "gt-mr-2"}}{{ctx.Locale.Tr "repo.tags"}} 121 + {{svg "octicon-tag" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.tags"}} 122 122 </span> 123 123 </a> 124 124 </div>
+8 -8
templates/repo/diff/conversation.tmpl
··· 7 7 {{if $resolved}} 8 8 <div class="ui attached header resolved-placeholder tw-flex tw-items-center tw-justify-between"> 9 9 <div class="ui grey text tw-flex tw-items-center tw-flex-wrap tw-gap-1"> 10 - {{svg "octicon-check" 16 "icon gt-mr-2"}} 10 + {{svg "octicon-check" 16 "icon tw-mr-1"}} 11 11 <b>{{$resolveDoer.Name}}</b> {{ctx.Locale.Tr "repo.issues.review.resolved_by"}} 12 12 {{if $invalid}} 13 13 <!-- 14 14 We only handle the case $resolved=true and $invalid=true in this template because if the comment is not resolved it has the outdated label in the comments area (not the header above). 15 15 The case $resolved=false and $invalid=true is handled in repo/diff/comments.tmpl 16 16 --> 17 - <a href="{{AppSubUrl}}{{$referenceUrl}}" class="ui label basic small gt-ml-3" data-tooltip-content="{{ctx.Locale.Tr "repo.issues.review.outdated_description"}}"> 17 + <a href="{{AppSubUrl}}{{$referenceUrl}}" class="ui label basic small tw-ml-2" data-tooltip-content="{{ctx.Locale.Tr "repo.issues.review.outdated_description"}}"> 18 18 {{ctx.Locale.Tr "repo.issues.review.outdated"}} 19 19 </a> 20 20 {{end}} 21 21 </div> 22 22 <div class="tw-flex tw-items-center tw-gap-2"> 23 23 <button id="show-outdated-{{(index .comments 0).ID}}" data-comment="{{(index .comments 0).ID}}" class="ui tiny labeled button show-outdated tw-flex tw-items-center"> 24 - {{svg "octicon-unfold" 16 "gt-mr-3"}} 24 + {{svg "octicon-unfold" 16 "tw-mr-2"}} 25 25 {{ctx.Locale.Tr "repo.issues.review.show_resolved"}} 26 26 </button> 27 27 <button id="hide-outdated-{{(index .comments 0).ID}}" data-comment="{{(index .comments 0).ID}}" class="ui tiny labeled button hide-outdated tw-flex tw-items-center gt-hidden"> 28 - {{svg "octicon-fold" 16 "gt-mr-3"}} 28 + {{svg "octicon-fold" 16 "tw-mr-2"}} 29 29 {{ctx.Locale.Tr "repo.issues.review.hide_resolved"}} 30 30 </button> 31 31 </div> ··· 37 37 {{template "repo/diff/comments" dict "root" $ "comments" .comments}} 38 38 </ui> 39 39 </div> 40 - <div class="tw-flex tw-justify-end tw-items-center tw-flex-wrap gt-mt-3"> 41 - <div class="ui buttons gt-mr-2"> 40 + <div class="tw-flex tw-justify-end tw-items-center tw-flex-wrap tw-mt-2"> 41 + <div class="ui buttons tw-mr-1"> 42 42 <button class="ui icon tiny basic button previous-conversation"> 43 43 {{svg "octicon-arrow-up" 12 "icon"}} {{ctx.Locale.Tr "repo.issues.previous"}} 44 44 </button> ··· 56 56 </button> 57 57 {{end}} 58 58 {{if and $.SignedUserID (not $.Repository.IsArchived)}} 59 - <button class="comment-form-reply ui primary tiny labeled icon button gt-ml-2 gt-mr-0"> 60 - {{svg "octicon-reply" 16 "reply icon gt-mr-2"}}{{ctx.Locale.Tr "repo.diff.comment.reply"}} 59 + <button class="comment-form-reply ui primary tiny labeled icon button tw-ml-1 tw-mr-0"> 60 + {{svg "octicon-reply" 16 "reply icon tw-mr-1"}}{{ctx.Locale.Tr "repo.diff.comment.reply"}} 61 61 </button> 62 62 {{end}} 63 63 </div>
+1 -1
templates/repo/diff/new_review.tmpl
··· 1 1 <div id="review-box"> 2 - <button class="ui tiny primary button gt-pr-2 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}}> 2 + <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}}> 3 3 {{ctx.Locale.Tr "repo.diff.review"}} 4 4 <span class="ui small label review-comments-counter" data-pending-comment-number="{{.PendingCodeCommentNumber}}">{{.PendingCodeCommentNumber}}</span> 5 5 {{svg "octicon-triangle-down" 14 "dropdown icon"}}
+1 -1
templates/repo/diff/stats.tmpl
··· 1 1 {{Eval .file.Addition "+" .file.Deletion}} 2 - <span class="diff-stats-bar gt-mx-3" data-tooltip-content="{{ctx.Locale.Tr "repo.diff.stats_desc_file" (Eval .file.Addition "+" .file.Deletion) .file.Addition .file.Deletion}}"> 2 + <span class="diff-stats-bar tw-mx-2" data-tooltip-content="{{ctx.Locale.Tr "repo.diff.stats_desc_file" (Eval .file.Addition "+" .file.Deletion) .file.Addition .file.Deletion}}"> 3 3 {{/* if the denominator is zero, then the float result is "width: NaNpx", as before, it just works */}} 4 4 <div class="diff-stats-add-bar" style="width: {{Eval 100 "*" .file.Addition "/" "(" .file.Addition "+" .file.Deletion "+" 0.0 ")"}}%"></div> 5 5 </span>
+4 -4
templates/repo/diff/whitespace_dropdown.tmpl
··· 3 3 <div class="menu"> 4 4 <a class="item" href="?style={{if .IsSplitStyle}}split{{else}}unified{{end}}&whitespace=show-all&show-outdated={{$.ShowOutdatedComments}}"> 5 5 <label class="tw-pointer-events-none"> 6 - <input class="gt-mr-3 tw-pointer-events-none" type="radio"{{if eq .WhitespaceBehavior "show-all"}} checked{{end}}> 6 + <input class="tw-mr-2 tw-pointer-events-none" type="radio"{{if eq .WhitespaceBehavior "show-all"}} checked{{end}}> 7 7 {{ctx.Locale.Tr "repo.diff.whitespace_show_everything"}} 8 8 </label> 9 9 </a> 10 10 <a class="item" href="?style={{if .IsSplitStyle}}split{{else}}unified{{end}}&whitespace=ignore-all&show-outdated={{$.ShowOutdatedComments}}"> 11 11 <label class="tw-pointer-events-none"> 12 - <input class="gt-mr-3 tw-pointer-events-none" type="radio"{{if eq .WhitespaceBehavior "ignore-all"}} checked{{end}}> 12 + <input class="tw-mr-2 tw-pointer-events-none" type="radio"{{if eq .WhitespaceBehavior "ignore-all"}} checked{{end}}> 13 13 {{ctx.Locale.Tr "repo.diff.whitespace_ignore_all_whitespace"}} 14 14 </label> 15 15 </a> 16 16 <a class="item" href="?style={{if .IsSplitStyle}}split{{else}}unified{{end}}&whitespace=ignore-change&show-outdated={{$.ShowOutdatedComments}}"> 17 17 <label class="tw-pointer-events-none"> 18 - <input class="gt-mr-3 tw-pointer-events-none" type="radio"{{if eq .WhitespaceBehavior "ignore-change"}} checked{{end}}> 18 + <input class="tw-mr-2 tw-pointer-events-none" type="radio"{{if eq .WhitespaceBehavior "ignore-change"}} checked{{end}}> 19 19 {{ctx.Locale.Tr "repo.diff.whitespace_ignore_amount_changes"}} 20 20 </label> 21 21 </a> 22 22 <a class="item" href="?style={{if .IsSplitStyle}}split{{else}}unified{{end}}&whitespace=ignore-eol&show-outdated={{$.ShowOutdatedComments}}"> 23 23 <label class="tw-pointer-events-none"> 24 - <input class="gt-mr-3 tw-pointer-events-none" type="radio"{{if eq .WhitespaceBehavior "ignore-eol"}} checked{{end}}> 24 + <input class="tw-mr-2 tw-pointer-events-none" type="radio"{{if eq .WhitespaceBehavior "ignore-eol"}} checked{{end}}> 25 25 {{ctx.Locale.Tr "repo.diff.whitespace_ignore_at_eol"}} 26 26 </label> 27 27 </a>
+1 -1
templates/repo/editor/commit_form.tmpl
··· 60 60 <div class="quick-pull-branch-name {{if not (eq .commit_choice "commit-to-new-branch")}}gt-hidden{{end}}"> 61 61 <div class="new-branch-name-input field {{if .Err_NewBranchName}}error{{end}}"> 62 62 {{svg "octicon-git-branch"}} 63 - <input type="text" name="new_branch_name" maxlength="100" value="{{.new_branch_name}}" class="input-contrast gt-mr-2 js-quick-pull-new-branch-name" placeholder="{{ctx.Locale.Tr "repo.editor.new_branch_name_desc"}}" {{if eq .commit_choice "commit-to-new-branch"}}required{{end}} title="{{ctx.Locale.Tr "repo.editor.new_branch_name"}}"> 63 + <input type="text" name="new_branch_name" maxlength="100" value="{{.new_branch_name}}" class="input-contrast tw-mr-1 js-quick-pull-new-branch-name" placeholder="{{ctx.Locale.Tr "repo.editor.new_branch_name_desc"}}" {{if eq .commit_choice "commit-to-new-branch"}}required{{end}} title="{{ctx.Locale.Tr "repo.editor.new_branch_name"}}"> 64 64 <span class="text-muted js-quick-pull-normalization-info"></span> 65 65 </div> 66 66 </div>
+1 -1
templates/repo/editor/patch.tmpl
··· 20 20 </div> 21 21 <div class="field"> 22 22 <div class="ui top attached tabular menu" data-write="write"> 23 - <a class="active item" data-tab="write">{{svg "octicon-code" 16 "gt-mr-2"}}{{ctx.Locale.Tr "repo.editor.new_patch"}}</a> 23 + <a class="active item" data-tab="write">{{svg "octicon-code" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.editor.new_patch"}}</a> 24 24 </div> 25 25 <div class="ui bottom attached active tab segment" data-tab="write"> 26 26 <textarea id="edit_area" name="content" class="gt-hidden" data-id="repo-{{.Repository.Name}}-patch"
+1 -1
templates/repo/empty.tmpl
··· 44 44 </div> 45 45 46 46 {{if not .Repository.IsArchived}} 47 - <div class="divider gt-my-0"></div> 47 + <div class="divider tw-my-0"></div> 48 48 49 49 <div class="item"> 50 50 <h3>{{ctx.Locale.Tr "repo.create_new_repo_command"}}</h3>
+1 -1
templates/repo/file_info.tmpl
··· 16 16 {{end}} 17 17 {{if .LFSLock}} 18 18 <div class="file-info-entry ui" data-tooltip-content="{{.LFSLockHint}}"> 19 - {{svg "octicon-lock" 16 "gt-mr-2"}} 19 + {{svg "octicon-lock" 16 "tw-mr-1"}} 20 20 <a href="{{.LFSLockOwnerHomeLink}}">{{.LFSLockOwner}}</a> 21 21 </div> 22 22 {{end}}
+2 -2
templates/repo/find/files.tmpl
··· 4 4 <div class="ui container"> 5 5 <div class="tw-flex tw-items-center"> 6 6 <a href="{{$.RepoLink}}">{{.RepoName}}</a> 7 - <span class="gt-mx-3">/</span> 7 + <span class="tw-mx-2">/</span> 8 8 <div class="ui input tw-flex-1"> 9 9 <input id="repo-file-find-input" type="text" autofocus data-url-data-link="{{.DataLink}}" data-url-tree-link="{{.TreeLink}}"> 10 10 </div> ··· 13 13 <tbody> 14 14 </tbody> 15 15 </table> 16 - <div id="repo-find-file-no-result" class="ui row center gt-mt-5 gt-hidden"> 16 + <div id="repo-find-file-no-result" class="ui row center tw-mt-8 gt-hidden"> 17 17 <h3>{{ctx.Locale.Tr "repo.find_file.no_matching"}}</h3> 18 18 </div> 19 19 </div>
+1 -1
templates/repo/flags.tmpl
··· 11 11 <form class="ui form" action="{{.Link}}" method="post"> 12 12 {{.CsrfTokenHtml}} 13 13 <strong>{{ctx.Locale.Tr "repo.admin.enabled_flags"}}</strong> 14 - <div class="ui segment gt-pl-4"> 14 + <div class="ui segment tw-pl-4"> 15 15 {{range $flag, $checked := .Flags}} 16 16 <div class="field"> 17 17 <div class="ui checkbox{{if $checked}} checked{{end}}">
+2 -2
templates/repo/forks.tmpl
··· 6 6 {{ctx.Locale.Tr "repo.forks"}} 7 7 </h2> 8 8 {{range .Forks}} 9 - <div class="tw-flex tw-items-center gt-py-3"> 10 - <span class="gt-mr-2">{{ctx.AvatarUtils.Avatar .Owner}}</span> 9 + <div class="tw-flex tw-items-center tw-py-2"> 10 + <span class="tw-mr-1">{{ctx.AvatarUtils.Avatar .Owner}}</span> 11 11 <a href="{{.Owner.HomeLink}}">{{.Owner.Name}}</a> / <a href="{{.Link}}">{{.Name}}</a> 12 12 </div> 13 13 {{end}}
+7 -7
templates/repo/graph.tmpl
··· 12 12 <div class="menu"> 13 13 <div class="item" data-value="...flow-hide-pr-refs"> 14 14 <span class="truncate"> 15 - {{svg "octicon-eye-closed" 16 "gt-mr-2"}}<span title="{{ctx.Locale.Tr "repo.commit_graph.hide_pr_refs"}}">{{ctx.Locale.Tr "repo.commit_graph.hide_pr_refs"}}</span> 15 + {{svg "octicon-eye-closed" 16 "tw-mr-1"}}<span title="{{ctx.Locale.Tr "repo.commit_graph.hide_pr_refs"}}">{{ctx.Locale.Tr "repo.commit_graph.hide_pr_refs"}}</span> 16 16 </span> 17 17 </div> 18 18 {{range .AllRefs}} ··· 20 20 {{if eq $refGroup "pull"}} 21 21 <div class="item" data-value="{{.Name}}"> 22 22 <span class="truncate"> 23 - {{svg "octicon-git-pull-request" 16 "gt-mr-2"}}<span title="{{.ShortName}}">#{{.ShortName}}</span> 23 + {{svg "octicon-git-pull-request" 16 "tw-mr-1"}}<span title="{{.ShortName}}">#{{.ShortName}}</span> 24 24 </span> 25 25 </div> 26 26 {{else if eq $refGroup "tags"}} 27 27 <div class="item" data-value="{{.Name}}"> 28 28 <span class="truncate"> 29 - {{svg "octicon-tag" 16 "gt-mr-2"}}<span title="{{.ShortName}}">{{.ShortName}}</span> 29 + {{svg "octicon-tag" 16 "tw-mr-1"}}<span title="{{.ShortName}}">{{.ShortName}}</span> 30 30 </span> 31 31 </div> 32 32 {{else if eq $refGroup "remotes"}} 33 33 <div class="item" data-value="{{.Name}}"> 34 34 <span class="truncate"> 35 - {{svg "octicon-cross-reference" 16 "gt-mr-2"}}<span title="{{.ShortName}}">{{.ShortName}}</span> 35 + {{svg "octicon-cross-reference" 16 "tw-mr-1"}}<span title="{{.ShortName}}">{{.ShortName}}</span> 36 36 </span> 37 37 </div> 38 38 {{else if eq $refGroup "heads"}} 39 39 <div class="item" data-value="{{.Name}}"> 40 40 <span class="truncate"> 41 - {{svg "octicon-git-branch" 16 "gt-mr-2"}}<span title="{{.ShortName}}">{{.ShortName}}</span> 41 + {{svg "octicon-git-branch" 16 "tw-mr-1"}}<span title="{{.ShortName}}">{{.ShortName}}</span> 42 42 </span> 43 43 </div> 44 44 {{end}} 45 45 {{end}} 46 46 </div> 47 47 </div> 48 - <button id="flow-color-monochrome" class="ui labelled icon button{{if eq .Mode "monochrome"}} active{{end}}" title="{{ctx.Locale.Tr "repo.commit_graph.monochrome"}}">{{svg "material-invert-colors" 16 "gt-mr-2"}}{{ctx.Locale.Tr "repo.commit_graph.monochrome"}}</button> 49 - <button id="flow-color-colored" class="ui labelled icon button{{if ne .Mode "monochrome"}} active{{end}}" title="{{ctx.Locale.Tr "repo.commit_graph.color"}}">{{svg "material-palette" 16 "gt-mr-2"}}{{ctx.Locale.Tr "repo.commit_graph.color"}}</button> 48 + <button id="flow-color-monochrome" class="ui labelled icon button{{if eq .Mode "monochrome"}} active{{end}}" title="{{ctx.Locale.Tr "repo.commit_graph.monochrome"}}">{{svg "material-invert-colors" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.commit_graph.monochrome"}}</button> 49 + <button id="flow-color-colored" class="ui labelled icon button{{if ne .Mode "monochrome"}} active{{end}}" title="{{ctx.Locale.Tr "repo.commit_graph.color"}}">{{svg "material-palette" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.commit_graph.color"}}</button> 50 50 </div> 51 51 </h2> 52 52 <div class="ui dividing"></div>
+5 -5
templates/repo/graph/commits.tmpl
··· 28 28 {{- end -}} 29 29 </a> 30 30 </span> 31 - <span class="message tw-inline-block gt-ellipsis gt-mr-3"> 31 + <span class="message tw-inline-block gt-ellipsis tw-mr-2"> 32 32 <span>{{RenderCommitMessage $.Context $commit.Subject ($.Repository.ComposeMetas ctx)}}</span> 33 33 </span> 34 - <span class="commit-refs tw-flex tw-items-center gt-mr-2"> 34 + <span class="commit-refs tw-flex tw-items-center tw-mr-1"> 35 35 {{range $commit.Refs}} 36 36 {{$refGroup := .RefGroup}} 37 37 {{if eq $refGroup "pull"}} ··· 58 58 {{end}} 59 59 {{end}} 60 60 </span> 61 - <span class="author tw-flex tw-items-center gt-mr-3"> 61 + <span class="author tw-flex tw-items-center tw-mr-2"> 62 62 {{$userName := $commit.Commit.Author.Name}} 63 63 {{if $commit.User}} 64 64 {{if $commit.User.FullName}} 65 65 {{$userName = $commit.User.FullName}} 66 66 {{end}} 67 - <span class="gt-mr-2">{{ctx.AvatarUtils.Avatar $commit.User}}</span> 67 + <span class="tw-mr-1">{{ctx.AvatarUtils.Avatar $commit.User}}</span> 68 68 <a href="{{$commit.User.HomeLink}}">{{$userName}}</a> 69 69 {{else}} 70 - <span class="gt-mr-2">{{ctx.AvatarUtils.AvatarByEmail $commit.Commit.Author.Email $userName}}</span> 70 + <span class="tw-mr-1">{{ctx.AvatarUtils.AvatarByEmail $commit.Commit.Author.Email $userName}}</span> 71 71 {{$userName}} 72 72 {{end}} 73 73 </span>
+2 -2
templates/repo/header_fork.tmpl
··· 33 33 <div class="content tw-text-left"> 34 34 <div class="ui list"> 35 35 {{range $.UserAndOrgForks}} 36 - <div class="ui item gt-py-3"> 37 - <a href="{{.Link}}">{{svg "octicon-repo-forked" 16 "gt-mr-3"}}{{.FullName}}</a> 36 + <div class="ui item tw-py-2"> 37 + <a href="{{.Link}}">{{svg "octicon-repo-forked" 16 "tw-mr-2"}}{{.FullName}}</a> 38 38 </div> 39 39 {{end}} 40 40 </div>
+11 -11
templates/repo/home.tmpl
··· 19 19 </form> 20 20 </div> 21 21 <div class="tw-flex tw-items-center tw-flex-wrap tw-gap-1" id="repo-topics"> 22 - {{range .Topics}}<a class="ui repo-topic large label topic gt-m-0" href="{{AppSubUrl}}/explore/repos?q={{.Name}}&topic=1">{{.Name}}</a>{{end}} 22 + {{range .Topics}}<a class="ui repo-topic large label topic tw-m-0" href="{{AppSubUrl}}/explore/repos?q={{.Name}}&topic=1">{{.Name}}</a>{{end}} 23 23 {{if and .Permission.IsAdmin (not .Repository.IsArchived)}}<button id="manage_topic" class="btn interact-fg tw-text-12">{{ctx.Locale.Tr "repo.topic.manage_topics"}}</button>{{end}} 24 24 </div> 25 25 {{end}} 26 26 {{if and .Permission.IsAdmin (not .Repository.IsArchived)}} 27 - <div class="ui form gt-hidden tw-flex tw-flex-col gt-mt-4" id="topic_edit"> 28 - <div class="field tw-flex-1 gt-mb-2"> 27 + <div class="ui form gt-hidden tw-flex tw-flex-col tw-mt-4" id="topic_edit"> 28 + <div class="field tw-flex-1 tw-mb-1"> 29 29 <div class="ui fluid multiple search selection dropdown tw-flex-wrap" data-text-count-prompt="{{ctx.Locale.Tr "repo.topic.count_prompt"}}" data-text-format-prompt="{{ctx.Locale.Tr "repo.topic.format_prompt"}}"> 30 30 <input type="hidden" name="topics" value="{{range $i, $v := .Topics}}{{.Name}}{{if Eval $i "+" 1 "<" (len $.Topics)}},{{end}}{{end}}"> 31 31 {{range .Topics}} ··· 61 61 {{template "repo/sub_menu" .}} 62 62 <div class="repo-button-row"> 63 63 <div class="tw-flex tw-items-center tw-flex-wrap tw-gap-y-2"> 64 - {{template "repo/branch_dropdown" dict "root" . "ContainerClasses" "gt-mr-2"}} 64 + {{template "repo/branch_dropdown" dict "root" . "ContainerClasses" "tw-mr-1"}} 65 65 {{if and .CanCompareOrPull .IsViewBranch (not .Repository.IsArchived)}} 66 66 {{$cmpBranch := ""}} 67 67 {{if ne .Repository.ID .BaseRepo.ID}} ··· 82 82 {{end}} 83 83 84 84 {{if and .CanWriteCode .IsViewBranch (not .Repository.IsMirror) (not .Repository.IsArchived) (not .IsViewFile)}} 85 - <button class="ui dropdown basic compact jump button gt-mr-2"{{if not .Repository.CanEnableEditor}} disabled{{end}}> 85 + <button class="ui dropdown basic compact jump button tw-mr-1"{{if not .Repository.CanEnableEditor}} disabled{{end}}> 86 86 {{ctx.Locale.Tr "repo.editor.add_file"}} 87 87 {{svg "octicon-triangle-down" 14 "dropdown icon"}} 88 88 <div class="menu"> ··· 107 107 </a> 108 108 {{end}} 109 109 {{if ne $n 0}} 110 - <span class="breadcrumb repo-path gt-ml-2"> 110 + <span class="breadcrumb repo-path tw-ml-1"> 111 111 <a class="section" href="{{.RepoLink}}/src/{{.BranchNameSubURL}}" title="{{.Repository.Name}}">{{StringUtils.EllipsisString .Repository.Name 30}}</a> 112 112 {{- range $i, $v := .TreeNames -}} 113 113 <span class="breadcrumb-divider">/</span> ··· 129 129 {{svg "octicon-kebab-horizontal"}} 130 130 <div class="menu"> 131 131 {{if not $.DisableDownloadSourceArchives}} 132 - <a class="item archive-link" href="{{$.RepoLink}}/archive/{{PathEscapeSegments $.RefName}}.zip" rel="nofollow">{{svg "octicon-file-zip" 16 "gt-mr-3"}}{{ctx.Locale.Tr "repo.download_zip"}}</a> 133 - <a class="item archive-link" href="{{$.RepoLink}}/archive/{{PathEscapeSegments $.RefName}}.tar.gz" rel="nofollow">{{svg "octicon-file-zip" 16 "gt-mr-3"}}{{ctx.Locale.Tr "repo.download_tar"}}</a> 134 - <a class="item archive-link" href="{{$.RepoLink}}/archive/{{PathEscapeSegments $.RefName}}.bundle" rel="nofollow">{{svg "octicon-package" 16 "gt-mr-3"}}{{ctx.Locale.Tr "repo.download_bundle"}}</a> 132 + <a class="item archive-link" href="{{$.RepoLink}}/archive/{{PathEscapeSegments $.RefName}}.zip" rel="nofollow">{{svg "octicon-file-zip" 16 "tw-mr-2"}}{{ctx.Locale.Tr "repo.download_zip"}}</a> 133 + <a class="item archive-link" href="{{$.RepoLink}}/archive/{{PathEscapeSegments $.RefName}}.tar.gz" rel="nofollow">{{svg "octicon-file-zip" 16 "tw-mr-2"}}{{ctx.Locale.Tr "repo.download_tar"}}</a> 134 + <a class="item archive-link" href="{{$.RepoLink}}/archive/{{PathEscapeSegments $.RefName}}.bundle" rel="nofollow">{{svg "octicon-package" 16 "tw-mr-2"}}{{ctx.Locale.Tr "repo.download_bundle"}}</a> 135 135 {{end}} 136 136 {{if .CitiationExist}} 137 - <a class="item" id="cite-repo-button">{{svg "octicon-cross-reference" 16 "gt-mr-3"}}{{ctx.Locale.Tr "repo.cite_this_repo"}}</a> 137 + <a class="item" id="cite-repo-button">{{svg "octicon-cross-reference" 16 "tw-mr-2"}}{{ctx.Locale.Tr "repo.cite_this_repo"}}</a> 138 138 {{end}} 139 139 {{range .OpenWithEditorApps}} 140 140 <a class="item js-clone-url-editor" data-href-template="{{.OpenURL}}">{{.IconHTML}}{{ctx.Locale.Tr "repo.open_with_editor" .DisplayName}}</a> ··· 147 147 {{end}} 148 148 {{if and (ne $n 0) (not .IsViewFile) (not .IsBlame)}} 149 149 <a class="ui button" href="{{.RepoLink}}/commits/{{.BranchNameSubURL}}/{{.TreePath | PathEscapeSegments}}"> 150 - {{svg "octicon-history" 16 "gt-mr-3"}}{{ctx.Locale.Tr "repo.file_history"}} 150 + {{svg "octicon-history" 16 "tw-mr-2"}}{{ctx.Locale.Tr "repo.file_history"}} 151 151 </a> 152 152 {{end}} 153 153 </div>
+2 -2
templates/repo/issue/branch_selector_field.tmpl
··· 20 20 <div class="two column row"> 21 21 <a class="reference column muted" href="#" data-target="#branch-list"> 22 22 <span class="text black"> 23 - {{svg "octicon-git-branch" 16 "gt-mr-2"}}{{ctx.Locale.Tr "repo.branches"}} 23 + {{svg "octicon-git-branch" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.branches"}} 24 24 </span> 25 25 </a> 26 26 <a class="reference column muted" href="#" data-target="#tag-list"> 27 27 <span class="text"> 28 - {{svg "octicon-tag" 16 "gt-mr-2"}}{{ctx.Locale.Tr "repo.tags"}} 28 + {{svg "octicon-tag" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.tags"}} 29 29 </span> 30 30 </a> 31 31 </div>
+10 -10
templates/repo/issue/card.tmpl
··· 6 6 {{end}} 7 7 </div> 8 8 {{end}} 9 - <div class="content gt-p-0 tw-w-full"> 9 + <div class="content tw-p-0 tw-w-full"> 10 10 <div class="tw-flex tw-items-start"> 11 11 <div class="issue-card-icon"> 12 12 {{template "shared/issueicon" .}} ··· 18 18 </a> 19 19 {{end}} 20 20 </div> 21 - <div class="meta gt-my-2"> 21 + <div class="meta tw-my-1"> 22 22 <span class="text light grey muted-links"> 23 23 {{if not $.Page.Repository}}{{.Repo.FullName}}{{end}}#{{.Index}} 24 24 {{$timeStr := TimeSinceUnix .GetLastEventTimestamp ctx.Locale}} ··· 32 32 </span> 33 33 </div> 34 34 {{if .MilestoneID}} 35 - <div class="meta gt-my-2"> 35 + <div class="meta tw-my-1"> 36 36 <a class="milestone" href="{{.Repo.Link}}/milestone/{{.MilestoneID}}"> 37 - {{svg "octicon-milestone" 16 "gt-mr-2 tw-align-middle"}} 37 + {{svg "octicon-milestone" 16 "tw-mr-1 tw-align-middle"}} 38 38 <span class="tw-align-middle">{{.Milestone.Name}}</span> 39 39 </a> 40 40 </div> 41 41 {{end}} 42 42 {{if $.Page.LinkedPRs}} 43 43 {{range index $.Page.LinkedPRs .ID}} 44 - <div class="meta gt-my-2"> 44 + <div class="meta tw-my-1"> 45 45 <a href="{{$.Issue.Repo.Link}}/pulls/{{.Index}}"> 46 - <span class="gt-m-0 text {{if .PullRequest.HasMerged}}purple{{else if .IsClosed}}red{{else}}green{{end}}">{{svg "octicon-git-merge" 16 "gt-mr-2 tw-align-middle"}}</span> 46 + <span class="tw-m-0 text {{if .PullRequest.HasMerged}}purple{{else if .IsClosed}}red{{else}}green{{end}}">{{svg "octicon-git-merge" 16 "tw-mr-1 tw-align-middle"}}</span> 47 47 <span class="tw-align-middle">{{.Title}} <span class="text light grey">#{{.Index}}</span></span> 48 48 </a> 49 49 </div> ··· 51 51 {{end}} 52 52 {{$tasks := .GetTasks}} 53 53 {{if gt $tasks 0}} 54 - <div class="meta gt-my-2"> 55 - {{svg "octicon-checklist" 16 "gt-mr-2 tw-align-middle"}} 54 + <div class="meta tw-my-1"> 55 + {{svg "octicon-checklist" 16 "tw-mr-1 tw-align-middle"}} 56 56 <span class="tw-align-middle">{{.GetTasksDone}} / {{$tasks}}</span> 57 57 </div> 58 58 {{end}} 59 59 </div> 60 60 61 61 {{if or .Labels .Assignees}} 62 - <div class="extra content labels-list gt-p-0 gt-pt-2"> 62 + <div class="extra content labels-list tw-p-0 tw-pt-1"> 63 63 {{range .Labels}} 64 64 <a target="_blank" href="{{$.Issue.Repo.Link}}/issues?labels={{.ID}}">{{RenderLabel ctx .}}</a> 65 65 {{end}} 66 66 <div class="right floated"> 67 67 {{range .Assignees}} 68 - <a target="_blank" href="{{.HomeLink}}" data-tooltip-content="{{ctx.Locale.Tr "repo.projects.column.assigned_to"}} {{.Name}}">{{ctx.AvatarUtils.Avatar . 28 "mini gt-mr-3"}}</a> 68 + <a target="_blank" href="{{.HomeLink}}" data-tooltip-content="{{ctx.Locale.Tr "repo.projects.column.assigned_to"}} {{.Name}}">{{ctx.AvatarUtils.Avatar . 28 "mini tw-mr-2"}}</a> 69 69 {{end}} 70 70 </div> 71 71 </div>
+1 -1
templates/repo/issue/fields/checkboxes.tmpl
··· 2 2 {{template "repo/issue/fields/header" .}} 3 3 {{range $i, $opt := .item.Attributes.options}} 4 4 <div class="field inline"> 5 - <div class="ui checkbox gt-mr-0 {{if and ($opt.visible) (not (SliceUtils.Contains $opt.visible "form"))}}gt-hidden{{end}}"> 5 + <div class="ui checkbox tw-mr-0 {{if and ($opt.visible) (not (SliceUtils.Contains $opt.visible "form"))}}gt-hidden{{end}}"> 6 6 <input type="checkbox" name="form-field-{{$.item.ID}}-{{$i}}" {{if $opt.required}}required{{end}}> 7 7 <label>{{RenderMarkdownToHtml $.context $opt.label}}</label> 8 8 </div>
+1 -1
templates/repo/issue/fields/textarea.tmpl
··· 16 16 )}} 17 17 18 18 {{if .root.IsAttachmentEnabled}} 19 - <div class="gt-mt-4 form-field-dropzone gt-hidden"> 19 + <div class="tw-mt-4 form-field-dropzone gt-hidden"> 20 20 {{template "repo/upload" .root}} 21 21 </div> 22 22 {{end}}
+2 -2
templates/repo/issue/filter_actions.tmpl
··· 85 85 </div> 86 86 {{range .OpenProjects}} 87 87 <div class="item issue-action" data-element-id="{{.ID}}" data-url="{{$.RepoLink}}/issues/projects"> 88 - {{svg .IconName 18 "gt-mr-3"}}{{.Title}} 88 + {{svg .IconName 18 "tw-mr-2"}}{{.Title}} 89 89 </div> 90 90 {{end}} 91 91 {{end}} ··· 96 96 </div> 97 97 {{range .ClosedProjects}} 98 98 <div class="item issue-action" data-element-id="{{.ID}}" data-url="{{$.RepoLink}}/issues/projects"> 99 - {{svg .IconName 18 "gt-mr-3"}}{{.Title}} 99 + {{svg .IconName 18 "tw-mr-2"}}{{.Title}} 100 100 </div> 101 101 {{end}} 102 102 {{end}}
+3 -3
templates/repo/issue/filter_list.tmpl
··· 16 16 > 17 17 <label for="archived-filter-checkbox"> 18 18 {{ctx.Locale.Tr "repo.issues.label_archived_filter"}} 19 - <i class="gt-ml-2" data-tooltip-content={{ctx.Locale.Tr "repo.issues.label_archive_tooltip"}}> 19 + <i class="tw-ml-1" data-tooltip-content={{ctx.Locale.Tr "repo.issues.label_archive_tooltip"}}> 20 20 {{svg "octicon-info"}} 21 21 </i> 22 22 </label> ··· 108 108 </div> 109 109 {{range .OpenProjects}} 110 110 <a rel="nofollow" class="{{if $.ProjectID}}{{if eq $.ProjectID .ID}}active selected{{end}}{{end}} item tw-flex" href="?type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&labels={{$.SelectLabels}}&milestone={{$.MilestoneID}}&project={{.ID}}&assignee={{$.AssigneeID}}&poster={{$.PosterID}}{{if $.ShowArchivedLabels}}&archived=true{{end}}"> 111 - {{svg .IconName 18 "gt-mr-3 tw-shrink-0"}}<span class="gt-ellipsis">{{.Title}}</span> 111 + {{svg .IconName 18 "tw-mr-2 tw-shrink-0"}}<span class="gt-ellipsis">{{.Title}}</span> 112 112 </a> 113 113 {{end}} 114 114 {{end}} ··· 119 119 </div> 120 120 {{range .ClosedProjects}} 121 121 <a rel="nofollow" class="{{if $.ProjectID}}{{if eq $.ProjectID .ID}}active selected{{end}}{{end}} item" href="?type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&labels={{$.SelectLabels}}&milestone={{$.MilestoneID}}&project={{.ID}}&assignee={{$.AssigneeID}}&poster={{$.PosterID}}{{if $.ShowArchivedLabels}}&archived=true{{end}}"> 122 - {{svg .IconName 18 "gt-mr-3"}}{{.Title}} 122 + {{svg .IconName 18 "tw-mr-2"}}{{.Title}} 123 123 </a> 124 124 {{end}} 125 125 {{end}}
+1 -1
templates/repo/issue/filters.tmpl
··· 1 1 <div id="issue-filters" class="issue-list-toolbar"> 2 2 <div class="issue-list-toolbar-left"> 3 3 {{if and $.CanWriteIssuesOrPulls .Issues}} 4 - <input type="checkbox" autocomplete="off" class="issue-checkbox-all gt-mr-4" title="{{ctx.Locale.Tr "repo.issues.action_check_all"}}"> 4 + <input type="checkbox" autocomplete="off" class="issue-checkbox-all tw-mr-4" title="{{ctx.Locale.Tr "repo.issues.action_check_all"}}"> 5 5 {{end}} 6 6 {{template "repo/issue/openclose" .}} 7 7 <!-- Total Tracked Time -->
+1 -1
templates/repo/issue/labels.tmpl
··· 2 2 <div role="main" aria-label="{{.Title}}" class="page-content repository labels"> 3 3 {{template "repo/header" .}} 4 4 <div class="ui container"> 5 - <div class="navbar gt-mb-4"> 5 + <div class="navbar tw-mb-4"> 6 6 {{template "repo/issue/navbar" .}} 7 7 {{if and (or .CanWriteIssues .CanWritePulls) (not .Repository.IsArchived)}} 8 8 <button class="ui small primary new-label button">{{ctx.Locale.Tr "repo.issues.new_label"}}</button>
+2 -2
templates/repo/issue/labels/edit_delete_label.tmpl
··· 30 30 </div> 31 31 <br> 32 32 <small class="desc">{{ctx.Locale.Tr "repo.issues.label_exclusive_desc"}}</small> 33 - <div class="desc gt-ml-2 gt-mt-3 gt-hidden label-exclusive-warning"> 33 + <div class="desc tw-ml-1 tw-mt-2 gt-hidden label-exclusive-warning"> 34 34 {{svg "octicon-alert"}} {{ctx.Locale.Tr "repo.issues.label_exclusive_warning"}} 35 35 </div> 36 36 <br> ··· 40 40 <input class="label-is-archived-input" name="is_archived" type="checkbox"> 41 41 <label>{{ctx.Locale.Tr "repo.issues.label_archive"}}</label> 42 42 </div> 43 - <i class="gt-ml-2" data-tooltip-content={{ctx.Locale.Tr "repo.issues.label_archive_tooltip"}}> 43 + <i class="tw-ml-1" data-tooltip-content={{ctx.Locale.Tr "repo.issues.label_archive_tooltip"}}> 44 44 {{svg "octicon-info"}} 45 45 </i> 46 46 </div>
+1 -1
templates/repo/issue/labels/label_list.tmpl
··· 3 3 <div class="ui right"> 4 4 <div class="ui secondary menu"> 5 5 <!-- Sort --> 6 - <div class="item ui jump dropdown gt-py-3"> 6 + <div class="item ui jump dropdown tw-py-2"> 7 7 <span class="text"> 8 8 {{ctx.Locale.Tr "repo.issues.filter_sort"}} 9 9 </span>
+1 -1
templates/repo/issue/labels/labels_selector_field.tmpl
··· 2 2 <span class="text muted flex-text-block"> 3 3 <strong>{{ctx.Locale.Tr "repo.issues.new.labels"}}</strong> 4 4 {{if and .HasIssuesOrPullsWritePermission (not .Repository.IsArchived)}} 5 - {{svg "octicon-gear" 16 "gt-ml-2"}} 5 + {{svg "octicon-gear" 16 "tw-ml-1"}} 6 6 {{end}} 7 7 </span> 8 8 <div class="filter menu" {{if .Issue}}data-action="update" data-issue-id="{{$.Issue.ID}}" data-update-url="{{$.RepoLink}}/issues/labels"{{else}}data-id="#label_ids"{{end}}>
+2 -2
templates/repo/issue/milestone/select_menu.tmpl
··· 18 18 </div> 19 19 {{range .OpenMilestones}} 20 20 <a class="item" data-id="{{.ID}}" data-href="{{$.RepoLink}}/issues?milestone={{.ID}}"> 21 - {{svg "octicon-milestone" 16 "gt-mr-2"}} 21 + {{svg "octicon-milestone" 16 "tw-mr-1"}} 22 22 {{.Name}} 23 23 </a> 24 24 {{end}} ··· 30 30 </div> 31 31 {{range .ClosedMilestones}} 32 32 <a class="item" data-id="{{.ID}}" data-href="{{$.RepoLink}}/issues?milestone={{.ID}}"> 33 - {{svg "octicon-milestone" 16 "gt-mr-2"}} 33 + {{svg "octicon-milestone" 16 "tw-mr-1"}} 34 34 {{.Name}} 35 35 </a> 36 36 {{end}}
+3 -3
templates/repo/issue/milestone_issues.tmpl
··· 4 4 <div class="ui container"> 5 5 {{template "base/alert" .}} 6 6 <div class="tw-flex"> 7 - <h1 class="gt-mb-3">{{.Milestone.Name}}</h1> 7 + <h1 class="tw-mb-2">{{.Milestone.Name}}</h1> 8 8 {{if not .Repository.IsArchived}} 9 9 <div class="text right tw-flex-1"> 10 10 {{if or .CanWriteIssues .CanWritePulls}} ··· 22 22 {{end}} 23 23 </div> 24 24 {{if .Milestone.RenderedContent}} 25 - <div class="markup content gt-mb-4"> 25 + <div class="markup content tw-mb-4"> 26 26 {{.Milestone.RenderedContent}} 27 27 </div> 28 28 {{end}} ··· 46 46 {{end}} 47 47 {{end}} 48 48 </div> 49 - <div class="gt-mr-3">{{ctx.Locale.Tr "repo.milestones.completeness" .Milestone.Completeness}}</div> 49 + <div class="tw-mr-2">{{ctx.Locale.Tr "repo.milestones.completeness" .Milestone.Completeness}}</div> 50 50 {{if .TotalTrackedTime}} 51 51 <div data-tooltip-content='{{ctx.Locale.Tr "tracked_time_summary"}}'> 52 52 {{svg "octicon-clock"}}
+2 -2
templates/repo/issue/milestones.tmpl
··· 19 19 {{range .Milestones}} 20 20 <li class="milestone-card"> 21 21 <div class="milestone-header"> 22 - <h3 class="flex-text-block gt-m-0"> 22 + <h3 class="flex-text-block tw-m-0"> 23 23 {{svg "octicon-milestone" 16}} 24 24 <a class="muted" href="{{$.RepoLink}}/milestone/{{.ID}}">{{.Name}}</a> 25 25 </h3> 26 26 <div class="tw-flex tw-items-center"> 27 - <span class="gt-mr-3">{{.Completeness}}%</span> 27 + <span class="tw-mr-2">{{.Completeness}}%</span> 28 28 <progress value="{{.Completeness}}" max="100"></progress> 29 29 </div> 30 30 </div>
+11 -11
templates/repo/issue/new_form.tmpl
··· 7 7 <div class="ui comments"> 8 8 <div class="comment"> 9 9 {{ctx.AvatarUtils.Avatar .SignedUser 40}} 10 - <div class="ui segment content gt-my-0"> 10 + <div class="ui segment content tw-my-0"> 11 11 <div class="field"> 12 12 <input name="title" id="issue_title" placeholder="{{ctx.Locale.Tr "repo.milestones.title"}}" value="{{if .TitleQuery}}{{.TitleQuery}}{{else if .IssueTemplateTitle}}{{.IssueTemplateTitle}}{{else}}{{.title}}{{end}}" autofocus required maxlength="255" autocomplete="off"> 13 13 {{if .PageIsComparePull}} ··· 60 60 <span class="text flex-text-block"> 61 61 <strong>{{ctx.Locale.Tr "repo.issues.new.milestone"}}</strong> 62 62 {{if .HasIssuesOrPullsWritePermission}} 63 - {{svg "octicon-gear" 16 "gt-ml-2"}} 63 + {{svg "octicon-gear" 16 "tw-ml-1"}} 64 64 {{end}} 65 65 </span> 66 66 <div class="menu"> ··· 72 72 <div class="selected"> 73 73 {{if .Milestone}} 74 74 <a class="item muted sidebar-item-link" href="{{.RepoLink}}/issues?milestone={{.Milestone.ID}}"> 75 - {{svg "octicon-milestone" 18 "gt-mr-3"}} 75 + {{svg "octicon-milestone" 18 "tw-mr-2"}} 76 76 {{.Milestone.Name}} 77 77 </a> 78 78 {{end}} ··· 87 87 <span class="text flex-text-block"> 88 88 <strong>{{ctx.Locale.Tr "repo.issues.new.projects"}}</strong> 89 89 {{if .HasIssuesOrPullsWritePermission}} 90 - {{svg "octicon-gear" 16 "gt-ml-2"}} 90 + {{svg "octicon-gear" 16 "tw-ml-1"}} 91 91 {{end}} 92 92 </span> 93 93 <div class="menu"> ··· 110 110 </div> 111 111 {{range .OpenProjects}} 112 112 <a class="item muted sidebar-item-link" data-id="{{.ID}}" data-href="{{.Link ctx}}"> 113 - {{svg .IconName 18 "gt-mr-3"}}{{.Title}} 113 + {{svg .IconName 18 "tw-mr-2"}}{{.Title}} 114 114 </a> 115 115 {{end}} 116 116 {{end}} ··· 121 121 </div> 122 122 {{range .ClosedProjects}} 123 123 <a class="item muted sidebar-item-link" data-id="{{.ID}}" data-href="{{.Link ctx}}"> 124 - {{svg .IconName 18 "gt-mr-3"}}{{.Title}} 124 + {{svg .IconName 18 "tw-mr-2"}}{{.Title}} 125 125 </a> 126 126 {{end}} 127 127 {{end}} ··· 133 133 <div class="selected"> 134 134 {{if .Project}} 135 135 <a class="item muted sidebar-item-link" href="{{.Project.Link ctx}}"> 136 - {{svg .Project.IconName 18 "gt-mr-3"}}{{.Project.Title}} 136 + {{svg .Project.IconName 18 "tw-mr-2"}}{{.Project.Title}} 137 137 </a> 138 138 {{end}} 139 139 </div> ··· 145 145 <span class="text flex-text-block"> 146 146 <strong>{{ctx.Locale.Tr "repo.issues.new.assignees"}}</strong> 147 147 {{if .HasIssuesOrPullsWritePermission}} 148 - {{svg "octicon-gear" 16 "gt-ml-2"}} 148 + {{svg "octicon-gear" 16 "tw-ml-1"}} 149 149 {{end}} 150 150 </span> 151 151 <div class="filter menu" data-id="#assignee_ids"> ··· 158 158 <a class="item muted" href="#" data-id="{{.ID}}" data-id-selector="#assignee_{{.ID}}"> 159 159 <span class="octicon-check tw-invisible">{{svg "octicon-check"}}</span> 160 160 <span class="text"> 161 - {{ctx.AvatarUtils.Avatar . 28 "gt-mr-3"}}{{template "repo/search_name" .}} 161 + {{ctx.AvatarUtils.Avatar . 28 "tw-mr-2"}}{{template "repo/search_name" .}} 162 162 </span> 163 163 </a> 164 164 {{end}} ··· 170 170 </span> 171 171 <div class="selected"> 172 172 {{range .Assignees}} 173 - <a class="item gt-p-2 muted gt-hidden" id="assignee_{{.ID}}" href="{{$.RepoLink}}/issues?assignee={{.ID}}"> 174 - {{ctx.AvatarUtils.Avatar . 28 "gt-mr-3 tw-align-middle"}}{{.GetDisplayName}} 173 + <a class="item tw-p-1 muted gt-hidden" id="assignee_{{.ID}}" href="{{$.RepoLink}}/issues?assignee={{.ID}}"> 174 + {{ctx.AvatarUtils.Avatar . 28 "tw-mr-2 tw-align-middle"}}{{.GetDisplayName}} 175 175 </a> 176 176 {{end}} 177 177 </div>
+4 -4
templates/repo/issue/openclose.tmpl
··· 1 1 <div class="small-menu-items ui compact tiny menu"> 2 2 <a class="{{if eq .State "open"}}active {{end}}item" href="{{if eq .State "open"}}{{.AllStatesLink}}{{else}}{{.OpenLink}}{{end}}"> 3 3 {{if .PageIsMilestones}} 4 - {{svg "octicon-milestone" 16 "gt-mr-3"}} 4 + {{svg "octicon-milestone" 16 "tw-mr-2"}} 5 5 {{else if .PageIsPullList}} 6 - {{svg "octicon-git-pull-request" 16 "gt-mr-3"}} 6 + {{svg "octicon-git-pull-request" 16 "tw-mr-2"}} 7 7 {{else}} 8 - {{svg "octicon-issue-opened" 16 "gt-mr-3"}} 8 + {{svg "octicon-issue-opened" 16 "tw-mr-2"}} 9 9 {{end}} 10 10 {{ctx.Locale.PrettyNumber .OpenCount}}&nbsp;{{ctx.Locale.Tr "repo.issues.open_title"}} 11 11 </a> 12 12 <a class="{{if eq .State "closed"}}active {{end}}item" href="{{if eq .State "closed"}}{{.AllStatesLink}}{{else}}{{.ClosedLink}}{{end}}"> 13 - {{svg "octicon-check" 16 "gt-mr-3"}} 13 + {{svg "octicon-check" 16 "tw-mr-2"}} 14 14 {{ctx.Locale.PrettyNumber .ClosedCount}}&nbsp;{{ctx.Locale.Tr "repo.issues.closed_title"}} 15 15 </a> 16 16 </div>
+2 -2
templates/repo/issue/view_content/attachments.tmpl
··· 5 5 {{$hasThumbnails := false}} 6 6 {{- range .Attachments -}} 7 7 <div class="tw-flex"> 8 - <div class="tw-flex-1 gt-p-3"> 8 + <div class="tw-flex-1 tw-p-2"> 9 9 <a target="_blank" rel="noopener noreferrer" href="{{.DownloadURL}}" title="{{ctx.Locale.Tr "repo.issues.attachment.open_tab" .Name}}"> 10 10 {{if FilenameIsImage .Name}} 11 11 {{if not (StringUtils.Contains (StringUtils.ToString $.RenderedContent) .UUID)}} ··· 18 18 <span><strong>{{.Name}}</strong></span> 19 19 </a> 20 20 </div> 21 - <div class="gt-p-3 tw-flex tw-items-center"> 21 + <div class="tw-p-2 tw-flex tw-items-center"> 22 22 <span class="ui text grey">{{.Size | FileSize}}</span> 23 23 </div> 24 24 </div>
+1 -1
templates/repo/issue/view_content/comments.tmpl
··· 28 28 <div class="ui top attached header comment-header tw-flex tw-items-center tw-justify-between" role="heading" aria-level="3"> 29 29 <div class="comment-header-left tw-flex tw-items-center"> 30 30 {{if .OriginalAuthor}} 31 - <span class="text black tw-font-semibold gt-mr-2"> 31 + <span class="text black tw-font-semibold tw-mr-1"> 32 32 {{svg (MigrationIcon $.Repository.GetOriginalURLHostname)}} 33 33 {{.OriginalAuthor}} 34 34 </span>
+11 -11
templates/repo/issue/view_content/conversation.tmpl
··· 3 3 {{$resolveDoer := (index .comments 0).ResolveDoer}} 4 4 {{$isNotPending := (not (eq (index .comments 0).Review.Type 0))}} 5 5 <div class="ui segments conversation-holder"> 6 - <div class="ui segment collapsible-comment-box gt-py-3 tw-flex tw-items-center tw-justify-between"> 6 + <div class="ui segment collapsible-comment-box tw-py-2 tw-flex tw-items-center tw-justify-between"> 7 7 <div class="tw-flex tw-items-center"> 8 - <a href="{{(index .comments 0).CodeCommentLink ctx}}" class="file-comment gt-ml-3 gt-word-break">{{(index .comments 0).TreePath}}</a> 8 + <a href="{{(index .comments 0).CodeCommentLink ctx}}" class="file-comment tw-ml-2 gt-word-break">{{(index .comments 0).TreePath}}</a> 9 9 {{if $invalid}} 10 - <span class="ui label basic small gt-ml-3" data-tooltip-content="{{ctx.Locale.Tr "repo.issues.review.outdated_description"}}"> 10 + <span class="ui label basic small tw-ml-2" data-tooltip-content="{{ctx.Locale.Tr "repo.issues.review.outdated_description"}}"> 11 11 {{ctx.Locale.Tr "repo.issues.review.outdated"}} 12 12 </span> 13 13 {{end}} ··· 15 15 <div> 16 16 {{if or $invalid $resolved}} 17 17 <button id="show-outdated-{{(index .comments 0).ID}}" data-comment="{{(index .comments 0).ID}}" class="{{if not $resolved}}gt-hidden {{end}}ui compact labeled button show-outdated tw-flex tw-items-center"> 18 - {{svg "octicon-unfold" 16 "gt-mr-3"}} 18 + {{svg "octicon-unfold" 16 "tw-mr-2"}} 19 19 {{if $resolved}} 20 20 {{ctx.Locale.Tr "repo.issues.review.show_resolved"}} 21 21 {{else}} ··· 23 23 {{end}} 24 24 </button> 25 25 <button id="hide-outdated-{{(index .comments 0).ID}}" data-comment="{{(index .comments 0).ID}}" class="{{if $resolved}}gt-hidden {{end}}ui compact labeled button hide-outdated tw-flex tw-items-center"> 26 - {{svg "octicon-fold" 16 "gt-mr-3"}} 26 + {{svg "octicon-fold" 16 "tw-mr-2"}} 27 27 {{if $resolved}} 28 28 {{ctx.Locale.Tr "repo.issues.review.hide_resolved"}} 29 29 {{else}} ··· 49 49 </div> 50 50 {{end}} 51 51 <div id="code-comments-{{(index .comments 0).ID}}" class="comment-code-cloud ui segment{{if $resolved}} gt-hidden{{end}}"> 52 - <div class="ui comments gt-mb-0"> 52 + <div class="ui comments tw-mb-0"> 53 53 {{range .comments}} 54 54 {{$createdSubStr:= TimeSinceUnix .CreatedUnix ctx.Locale}} 55 - <div class="comment code-comment gt-pb-4" id="{{.HashTag}}"> 55 + <div class="comment code-comment tw-pb-4" id="{{.HashTag}}"> 56 56 <div class="content"> 57 57 <div class="header comment-header"> 58 58 <div class="comment-header-left tw-flex tw-items-center"> ··· 106 106 </div> 107 107 {{end}} 108 108 </div> 109 - <div class="code-comment-buttons tw-flex tw-items-center tw-flex-wrap gt-mt-3 gt-mb-2 gt-mx-3"> 109 + <div class="code-comment-buttons tw-flex tw-items-center tw-flex-wrap tw-mt-2 tw-mb-1 tw-mx-2"> 110 110 <div class="tw-flex-1"> 111 111 {{if $resolved}} 112 112 <div class="ui grey text"> 113 - {{svg "octicon-check" 16 "gt-mr-2"}} 113 + {{svg "octicon-check" 16 "tw-mr-1"}} 114 114 <b>{{$resolveDoer.Name}}</b> {{ctx.Locale.Tr "repo.issues.review.resolved_by"}} 115 115 </div> 116 116 {{end}} ··· 126 126 </button> 127 127 {{end}} 128 128 {{if and $.SignedUserID (not $.Repository.IsArchived)}} 129 - <button class="comment-form-reply ui primary tiny labeled icon button gt-ml-2 gt-mr-0"> 130 - {{svg "octicon-reply" 16 "reply icon gt-mr-2"}}{{ctx.Locale.Tr "repo.diff.comment.reply"}} 129 + <button class="comment-form-reply ui primary tiny labeled icon button tw-ml-1 tw-mr-0"> 130 + {{svg "octicon-reply" 16 "reply icon tw-mr-1"}}{{ctx.Locale.Tr "repo.diff.comment.reply"}} 131 131 </button> 132 132 {{end}} 133 133 </div>
+2 -2
templates/repo/issue/view_content/pull.tmpl
··· 35 35 {{if .IsPullBranchDeletable}} 36 36 <div class="item item-section text tw-flex-1"> 37 37 <div class="item-section-left"> 38 - <h3 class="gt-mb-3"> 38 + <h3 class="tw-mb-2"> 39 39 {{ctx.Locale.Tr "repo.pulls.merged_success"}} 40 40 </h3> 41 41 <div class="merge-section-info"> ··· 50 50 {{else if .Issue.IsClosed}} 51 51 <div class="item item-section text tw-flex-1"> 52 52 <div class="item-section-left"> 53 - <h3 class="gt-mb-3">{{ctx.Locale.Tr "repo.pulls.closed"}}</h3> 53 + <h3 class="tw-mb-2">{{ctx.Locale.Tr "repo.pulls.closed"}}</h3> 54 54 <div class="merge-section-info"> 55 55 {{if .IsPullRequestBroken}} 56 56 {{ctx.Locale.Tr "repo.pulls.cant_reopen_deleted_branch"}}
+1 -1
templates/repo/issue/view_content/pull_merge_instruction.tmpl
··· 1 1 <div class="divider"></div> 2 2 <div class="instruct-toggle"> {{ctx.Locale.Tr "repo.pulls.cmd_instruction_hint"}} </div> 3 - <div class="instruct-content gt-mt-3 gt-hidden"> 3 + <div class="instruct-content tw-mt-2 gt-hidden"> 4 4 <div><h3>{{ctx.Locale.Tr "repo.pulls.cmd_instruction_checkout_title"}}</h3>{{ctx.Locale.Tr "repo.pulls.cmd_instruction_checkout_desc"}}</div> 5 5 {{$localBranch := .PullRequest.HeadBranch}} 6 6 {{if ne .PullRequest.HeadRepo.ID .PullRequest.BaseRepo.ID}}
+38 -38
templates/repo/issue/view_content/sidebar.tmpl
··· 6 6 <a class="text tw-flex tw-items-center muted"> 7 7 <strong>{{ctx.Locale.Tr "repo.issues.review.reviewers"}}</strong> 8 8 {{if and .CanChooseReviewer (not .Repository.IsArchived)}} 9 - {{svg "octicon-gear" 16 "gt-ml-2"}} 9 + {{svg "octicon-gear" 16 "tw-ml-1"}} 10 10 {{end}} 11 11 </a> 12 12 <div class="filter menu" data-action="update" data-issue-id="{{$.Issue.ID}}" data-update-url="{{$.RepoLink}}/issues/request_review"> ··· 22 22 <a class="{{if not .CanChange}}ui{{end}} item {{if .Checked}}checked{{end}} {{if not .CanChange}}ban-change{{end}}" href="#" data-id="{{.ItemID}}" data-id-selector="#review_request_{{.ItemID}}" {{if not .CanChange}} data-tooltip-content="{{ctx.Locale.Tr "repo.issues.remove_request_review_block"}}"{{end}}> 23 23 <span class="octicon-check {{if not .Checked}}tw-invisible{{end}}">{{svg "octicon-check"}}</span> 24 24 <span class="text"> 25 - {{ctx.AvatarUtils.Avatar .User 28 "gt-mr-3"}}{{template "repo/search_name" .User}} 25 + {{ctx.AvatarUtils.Avatar .User 28 "tw-mr-2"}}{{template "repo/search_name" .User}} 26 26 </span> 27 27 </a> 28 28 {{end}} ··· 37 37 <a class="{{if not .CanChange}}ui{{end}} item {{if .Checked}}checked{{end}} {{if not .CanChange}}ban-change{{end}}" href="#" data-id="{{.ItemID}}" data-id-selector="#review_request_team_{{.Team.ID}}" {{if not .CanChange}} data-tooltip-content="{{ctx.Locale.Tr "repo.issues.remove_request_review_block"}}"{{end}}> 38 38 <span class="octicon-check {{if not .Checked}}tw-invisible{{end}}">{{svg "octicon-check" 16}}</span> 39 39 <span class="text"> 40 - {{svg "octicon-people" 16 "gt-ml-4 gt-mr-2"}}{{$.Issue.Repo.OwnerName}}/{{.Team.Name}} 40 + {{svg "octicon-people" 16 "tw-ml-4 tw-mr-1"}}{{$.Issue.Repo.OwnerName}}/{{.Team.Name}} 41 41 </span> 42 42 </a> 43 43 {{end}} ··· 50 50 <span class="no-select item {{if or .OriginalReviews .PullReviewers}}gt-hidden{{end}}">{{ctx.Locale.Tr "repo.issues.new.no_reviewers"}}</span> 51 51 <div class="selected"> 52 52 {{range .PullReviewers}} 53 - <div class="item tw-flex tw-items-center gt-py-3"> 53 + <div class="item tw-flex tw-items-center tw-py-2"> 54 54 <div class="tw-flex tw-items-center tw-flex-1"> 55 55 {{if .User}} 56 - <a class="muted sidebar-item-link" href="{{.User.HomeLink}}">{{ctx.AvatarUtils.Avatar .User 20 "gt-mr-3"}}{{.User.GetDisplayName}}</a> 56 + <a class="muted sidebar-item-link" href="{{.User.HomeLink}}">{{ctx.AvatarUtils.Avatar .User 20 "tw-mr-2"}}{{.User.GetDisplayName}}</a> 57 57 {{else if .Team}} 58 - <span class="text">{{svg "octicon-people" 20 "gt-mr-3"}}{{$.Issue.Repo.OwnerName}}/{{.Team.Name}}</span> 58 + <span class="text">{{svg "octicon-people" 20 "tw-mr-2"}}{{$.Issue.Repo.OwnerName}}/{{.Team.Name}}</span> 59 59 {{end}} 60 60 </div> 61 61 <div class="tw-flex tw-items-center tw-gap-2"> ··· 99 99 </div> 100 100 {{end}} 101 101 {{range .OriginalReviews}} 102 - <div class="item tw-flex tw-items-center gt-py-3"> 102 + <div class="item tw-flex tw-items-center tw-py-2"> 103 103 <div class="tw-flex tw-items-center tw-flex-1"> 104 104 <a class="muted" href="{{$.Repository.OriginalURL}}" data-tooltip-content="{{ctx.Locale.Tr "repo.migrated_from_fake" $.Repository.GetOriginalURLHostname}}"> 105 - {{svg (MigrationIcon $.Repository.GetOriginalURLHostname) 20 "gt-mr-3"}} 105 + {{svg (MigrationIcon $.Repository.GetOriginalURLHostname) 20 "tw-mr-2"}} 106 106 {{.OriginalAuthor}} 107 107 </a> 108 108 </div> ··· 136 136 <a class="text muted flex-text-block"> 137 137 <strong>{{ctx.Locale.Tr "repo.issues.new.milestone"}}</strong> 138 138 {{if and .HasIssuesOrPullsWritePermission (not .Repository.IsArchived)}} 139 - {{svg "octicon-gear" 16 "gt-ml-2"}} 139 + {{svg "octicon-gear" 16 "tw-ml-1"}} 140 140 {{end}} 141 141 </a> 142 142 <div class="menu" data-action="update" data-issue-id="{{$.Issue.ID}}" data-update-url="{{$.RepoLink}}/issues/milestone"> ··· 148 148 <div class="selected"> 149 149 {{if .Issue.Milestone}} 150 150 <a class="item muted sidebar-item-link" href="{{.RepoLink}}/milestone/{{.Issue.Milestone.ID}}"> 151 - {{svg "octicon-milestone" 18 "gt-mr-3"}} 151 + {{svg "octicon-milestone" 18 "tw-mr-2"}} 152 152 {{.Issue.Milestone.Name}} 153 153 </a> 154 154 {{end}} ··· 161 161 <a class="text muted flex-text-block"> 162 162 <strong>{{ctx.Locale.Tr "repo.issues.new.projects"}}</strong> 163 163 {{if and .HasIssuesOrPullsWritePermission (not .Repository.IsArchived)}} 164 - {{svg "octicon-gear" 16 "gt-ml-2"}} 164 + {{svg "octicon-gear" 16 "tw-ml-1"}} 165 165 {{end}} 166 166 </a> 167 167 <div class="menu" data-action="update" data-issue-id="{{$.Issue.ID}}" data-update-url="{{$.RepoLink}}/issues/projects"> ··· 184 184 </div> 185 185 {{range .OpenProjects}} 186 186 <a class="item muted sidebar-item-link" data-id="{{.ID}}" data-href="{{.Link ctx}}"> 187 - {{svg .IconName 18 "gt-mr-3"}}{{.Title}} 187 + {{svg .IconName 18 "tw-mr-2"}}{{.Title}} 188 188 </a> 189 189 {{end}} 190 190 {{end}} ··· 195 195 </div> 196 196 {{range .ClosedProjects}} 197 197 <a class="item muted sidebar-item-link" data-id="{{.ID}}" data-href="{{.Link ctx}}"> 198 - {{svg .IconName 18 "gt-mr-3"}}{{.Title}} 198 + {{svg .IconName 18 "tw-mr-2"}}{{.Title}} 199 199 </a> 200 200 {{end}} 201 201 {{end}} ··· 206 206 <div class="selected"> 207 207 {{if .Issue.Project}} 208 208 <a class="item muted sidebar-item-link" href="{{.Issue.Project.Link ctx}}"> 209 - {{svg .Issue.Project.IconName 18 "gt-mr-3"}}{{.Issue.Project.Title}} 209 + {{svg .Issue.Project.IconName 18 "tw-mr-2"}}{{.Issue.Project.Title}} 210 210 </a> 211 211 {{end}} 212 212 </div> ··· 219 219 <a class="text muted flex-text-block"> 220 220 <strong>{{ctx.Locale.Tr "repo.issues.new.assignees"}}</strong> 221 221 {{if and .HasIssuesOrPullsWritePermission (not .Repository.IsArchived)}} 222 - {{svg "octicon-gear" 16 "gt-ml-2"}} 222 + {{svg "octicon-gear" 16 "tw-ml-1"}} 223 223 {{end}} 224 224 </a> 225 225 <div class="filter menu" data-action="update" data-issue-id="{{$.Issue.ID}}" data-update-url="{{$.RepoLink}}/issues/assignee"> ··· 240 240 {{end}} 241 241 <span class="octicon-check {{if not $checked}}tw-invisible{{end}}">{{svg "octicon-check"}}</span> 242 242 <span class="text"> 243 - {{ctx.AvatarUtils.Avatar . 20 "gt-mr-3"}}{{template "repo/search_name" .}} 243 + {{ctx.AvatarUtils.Avatar . 20 "tw-mr-2"}}{{template "repo/search_name" .}} 244 244 </span> 245 245 </a> 246 246 {{end}} ··· 252 252 {{range .Issue.Assignees}} 253 253 <div class="item"> 254 254 <a class="muted sidebar-item-link" href="{{$.RepoLink}}/{{if $.Issue.IsPull}}pulls{{else}}issues{{end}}?assignee={{.ID}}"> 255 - {{ctx.AvatarUtils.Avatar . 28 "gt-mr-3"}} 255 + {{ctx.AvatarUtils.Avatar . 28 "tw-mr-2"}} 256 256 {{.GetDisplayName}} 257 257 </a> 258 258 </div> ··· 267 267 <div class="ui list tw-flex tw-flex-wrap"> 268 268 {{range .Participants}} 269 269 <a {{if gt .ID 0}}href="{{.HomeLink}}"{{end}} data-tooltip-content="{{.GetDisplayName}}"> 270 - {{ctx.AvatarUtils.Avatar . 28 "gt-my-1 gt-mr-2"}} 270 + {{ctx.AvatarUtils.Avatar . 28 "tw-my-0.5 tw-mr-1"}} 271 271 </a> 272 272 {{end}} 273 273 </div> ··· 278 278 279 279 <div class="ui watching"> 280 280 <span class="text"><strong>{{ctx.Locale.Tr "notification.notifications"}}</strong></span> 281 - <div class="gt-mt-3"> 281 + <div class="tw-mt-2"> 282 282 {{template "repo/issue/view_content/watching" .}} 283 283 </div> 284 284 </div> ··· 288 288 <div class="divider"></div> 289 289 <div class="ui timetrack"> 290 290 <span class="text"><strong>{{ctx.Locale.Tr "repo.issues.tracker"}}</strong></span> 291 - <div class="gt-mt-3"> 291 + <div class="tw-mt-2"> 292 292 <form method="post" action="{{.Issue.Link}}/times/stopwatch/toggle" id="toggle_stopwatch_form"> 293 293 {{$.CsrfTokenHtml}} 294 294 </form> ··· 297 297 </form> 298 298 {{if $.IsStopwatchRunning}} 299 299 <button class="ui fluid button issue-stop-time"> 300 - {{svg "octicon-stopwatch" 16 "gt-mr-3"}} 300 + {{svg "octicon-stopwatch" 16 "tw-mr-2"}} 301 301 {{ctx.Locale.Tr "repo.issues.stop_tracking"}} 302 302 </button> 303 - <button class="ui fluid button issue-cancel-time gt-mt-3"> 304 - {{svg "octicon-trash" 16 "gt-mr-3"}} 303 + <button class="ui fluid button issue-cancel-time tw-mt-2"> 304 + {{svg "octicon-trash" 16 "tw-mr-2"}} 305 305 {{ctx.Locale.Tr "repo.issues.cancel_tracking"}} 306 306 </button> 307 307 {{else}} ··· 311 311 </div> 312 312 {{end}} 313 313 <button class="ui fluid button issue-start-time" data-tooltip-content='{{ctx.Locale.Tr "repo.issues.start_tracking"}}'> 314 - {{svg "octicon-stopwatch" 16 "gt-mr-3"}} 314 + {{svg "octicon-stopwatch" 16 "tw-mr-2"}} 315 315 {{ctx.Locale.Tr "repo.issues.start_tracking_short"}} 316 316 </button> 317 317 <div class="ui mini modal issue-start-time-modal"> ··· 328 328 <button class="ui cancel button">{{ctx.Locale.Tr "repo.issues.add_time_cancel"}}</button> 329 329 </div> 330 330 </div> 331 - <button class="ui fluid button issue-add-time gt-mt-3" data-tooltip-content='{{ctx.Locale.Tr "repo.issues.add_time"}}'> 332 - {{svg "octicon-plus" 16 "gt-mr-3"}} 331 + <button class="ui fluid button issue-add-time tw-mt-2" data-tooltip-content='{{ctx.Locale.Tr "repo.issues.add_time"}}'> 332 + {{svg "octicon-plus" 16 "tw-mr-2"}} 333 333 {{ctx.Locale.Tr "repo.issues.add_time_short"}} 334 334 </button> 335 335 {{end}} ··· 342 342 <span class="text"><strong>{{ctx.Locale.Tr "repo.issues.time_spent_from_all_authors" ($.Issue.TotalTrackedTime | Sec2Time)}}</strong></span> 343 343 <div> 344 344 {{range $user, $trackedtime := .WorkingUsers}} 345 - <div class="comment gt-mt-3"> 345 + <div class="comment tw-mt-2"> 346 346 <a class="avatar"> 347 347 {{ctx.AvatarUtils.Avatar $user}} 348 348 </a> ··· 370 370 <p> 371 371 <div class="tw-flex tw-justify-between tw-items-center"> 372 372 <div class="due-date {{if .Issue.IsOverdue}}text red{{end}}" {{if .Issue.IsOverdue}}data-tooltip-content="{{ctx.Locale.Tr "repo.issues.due_date_overdue"}}"{{end}}> 373 - {{svg "octicon-calendar" 16 "gt-mr-3"}} 373 + {{svg "octicon-calendar" 16 "tw-mr-2"}} 374 374 {{DateTime "long" .Issue.DeadlineUnix.FormatDate}} 375 375 </div> 376 376 <div> 377 377 {{if and .HasIssuesOrPullsWritePermission (not .Repository.IsArchived)}} 378 - <a class="issue-due-edit muted" data-tooltip-content="{{ctx.Locale.Tr "repo.issues.due_date_form_edit"}}">{{svg "octicon-pencil" 16 "gt-mr-2"}}</a> 378 + <a class="issue-due-edit muted" data-tooltip-content="{{ctx.Locale.Tr "repo.issues.due_date_form_edit"}}">{{svg "octicon-pencil" 16 "tw-mr-1"}}</a> 379 379 <a class="issue-due-remove muted" data-tooltip-content="{{ctx.Locale.Tr "repo.issues.due_date_form_remove"}}">{{svg "octicon-trash"}}</a> 380 380 {{end}} 381 381 </div> ··· 433 433 {{.Repository.OwnerName}}/{{.Repository.Name}} 434 434 </div> 435 435 </div> 436 - <div class="item-right tw-flex tw-items-center gt-m-2"> 436 + <div class="item-right tw-flex tw-items-center tw-m-1"> 437 437 {{if and $.CanCreateIssueDependencies (not $.Repository.IsArchived)}} 438 438 <a class="delete-dependency-button ci muted" data-id="{{.Issue.ID}}" data-type="blocking" data-tooltip-content="{{ctx.Locale.Tr "repo.issues.dependency.remove_info"}}"> 439 439 {{svg "octicon-trash" 16}} ··· 465 465 {{.Repository.OwnerName}}/{{.Repository.Name}} 466 466 </div> 467 467 </div> 468 - <div class="item-right tw-flex tw-items-center gt-m-2"> 468 + <div class="item-right tw-flex tw-items-center tw-m-1"> 469 469 {{if and $.CanCreateIssueDependencies (not $.Repository.IsArchived)}} 470 470 <a class="delete-dependency-button ci muted" data-id="{{.Issue.ID}}" data-type="blockedBy" data-tooltip-content="{{ctx.Locale.Tr "repo.issues.dependency.remove_info"}}"> 471 471 {{svg "octicon-trash" 16}} ··· 488 488 {{.Repository.OwnerName}}/{{.Repository.Name}} 489 489 </div> 490 490 </div> 491 - <div class="item-right tw-flex tw-items-center gt-m-2"> 491 + <div class="item-right tw-flex tw-items-center tw-m-1"> 492 492 {{if and $.CanCreateIssueDependencies (not $.Repository.IsArchived)}} 493 493 <a class="delete-dependency-button ci muted" data-id="{{.Issue.ID}}" data-type="blocking" data-tooltip-content="{{ctx.Locale.Tr "repo.issues.dependency.remove_info"}}"> 494 494 {{svg "octicon-trash" 16}} ··· 557 557 {{$issueReferenceLink := printf "%s#%d" .Issue.Repo.FullName .Issue.Index}} 558 558 <div class="row tw-items-center" data-tooltip-content="{{$issueReferenceLink}}"> 559 559 <span class="text column truncate">{{ctx.Locale.Tr "repo.issues.reference_link" $issueReferenceLink}}</span> 560 - <button class="ui two wide button column gt-p-3" data-clipboard-text="{{$issueReferenceLink}}">{{svg "octicon-copy" 14}}</button> 560 + <button class="ui two wide button column tw-p-2" data-clipboard-text="{{$issueReferenceLink}}">{{svg "octicon-copy" 14}}</button> 561 561 </div> 562 562 </div> 563 563 ··· 565 565 <div class="divider"></div> 566 566 567 567 {{if or .PinEnabled .Issue.IsPinned}} 568 - <form class="gt-mt-2 form-fetch-action single-button-form" method="post" {{if $.NewPinAllowed}}action="{{.Issue.Link}}/pin"{{else}}data-tooltip-content="{{ctx.Locale.Tr "repo.issues.max_pinned"}}"{{end}}> 568 + <form class="tw-mt-1 form-fetch-action single-button-form" method="post" {{if $.NewPinAllowed}}action="{{.Issue.Link}}/pin"{{else}}data-tooltip-content="{{ctx.Locale.Tr "repo.issues.max_pinned"}}"{{end}}> 569 569 {{$.CsrfTokenHtml}} 570 570 <button class="fluid ui button {{if not $.NewPinAllowed}}disabled{{end}}"> 571 571 {{if not .Issue.IsPinned}} 572 - {{svg "octicon-pin" 16 "gt-mr-3"}} 572 + {{svg "octicon-pin" 16 "tw-mr-2"}} 573 573 {{ctx.Locale.Tr "pin"}} 574 574 {{else}} 575 - {{svg "octicon-pin-slash" 16 "gt-mr-3"}} 575 + {{svg "octicon-pin-slash" 16 "tw-mr-2"}} 576 576 {{ctx.Locale.Tr "unpin"}} 577 577 {{end}} 578 578 </button> 579 579 </form> 580 580 {{end}} 581 581 582 - <button class="gt-mt-2 fluid ui show-modal button {{if .Issue.IsLocked}} negative {{end}}" data-modal="#lock"> 582 + <button class="tw-mt-1 fluid ui show-modal button {{if .Issue.IsLocked}} negative {{end}}" data-modal="#lock"> 583 583 {{if .Issue.IsLocked}} 584 584 {{svg "octicon-key"}} 585 585 {{ctx.Locale.Tr "repo.issues.unlock"}} ··· 652 652 </form> 653 653 </div> 654 654 </div> 655 - <button class="gt-mt-2 fluid ui show-modal button" data-modal="#sidebar-delete-issue"> 655 + <button class="tw-mt-1 fluid ui show-modal button" data-modal="#sidebar-delete-issue"> 656 656 {{svg "octicon-trash"}} 657 657 {{ctx.Locale.Tr "repo.issues.delete"}} 658 658 </button>
+2 -2
templates/repo/issue/view_content/watching.tmpl
··· 2 2 <input type="hidden" name="watch" value="{{if $.IssueWatch.IsWatching}}0{{else}}1{{end}}"> 3 3 <button class="fluid ui button"> 4 4 {{if $.IssueWatch.IsWatching}} 5 - {{svg "octicon-mute" 16 "gt-mr-3"}} 5 + {{svg "octicon-mute" 16 "tw-mr-2"}} 6 6 {{ctx.Locale.Tr "repo.issues.unsubscribe"}} 7 7 {{else}} 8 - {{svg "octicon-unmute" 16 "gt-mr-3"}} 8 + {{svg "octicon-unmute" 16 "tw-mr-2"}} 9 9 {{ctx.Locale.Tr "repo.issues.subscribe"}} 10 10 {{end}} 11 11 </button>
+7 -7
templates/repo/issue/view_title.tmpl
··· 1 1 {{if .Flash}} 2 - <div class="sixteen wide column gt-mb-3"> 2 + <div class="sixteen wide column tw-mb-2"> 3 3 {{template "base/alert" .}} 4 4 </div> 5 5 {{end}} ··· 14 14 </h1> 15 15 <div class="issue-title-buttons"> 16 16 {{if and (or .HasIssuesOrPullsWritePermission .IsIssuePoster) (not .Repository.IsArchived)}} 17 - <button id="edit-title" class="ui small basic button edit-button not-in-edit{{if .Issue.IsPull}} gt-mr-0{{end}}">{{ctx.Locale.Tr "repo.issues.edit"}}</button> 17 + <button id="edit-title" class="ui small basic button edit-button not-in-edit{{if .Issue.IsPull}} tw-mr-0{{end}}">{{ctx.Locale.Tr "repo.issues.edit"}}</button> 18 18 {{end}} 19 19 {{if not .Issue.IsPull}} 20 - <a role="button" class="ui small primary button new-issue-button gt-mr-0" href="{{.RepoLink}}/issues/new{{if .NewIssueChooseTemplate}}/choose{{end}}">{{ctx.Locale.Tr "repo.issues.new"}}</a> 20 + <a role="button" class="ui small primary button new-issue-button tw-mr-0" href="{{.RepoLink}}/issues/new{{if .NewIssueChooseTemplate}}/choose{{end}}">{{ctx.Locale.Tr "repo.issues.new"}}</a> 21 21 {{end}} 22 22 </div> 23 23 {{if and (or .HasIssuesOrPullsWritePermission .IsIssuePoster) (not .Repository.IsArchived)}} 24 24 <div class="edit-buttons"> 25 25 <button id="cancel-edit-title" class="ui small basic button in-edit gt-hidden">{{ctx.Locale.Tr "repo.issues.cancel"}}</button> 26 - <button id="save-edit-title" class="ui small primary button in-edit gt-hidden gt-mr-0" data-update-url="{{$.RepoLink}}/issues/{{.Issue.Index}}/title" {{if .Issue.IsPull}}data-target-update-url="{{$.RepoLink}}/pull/{{.Issue.Index}}/target_branch"{{end}}>{{ctx.Locale.Tr "repo.issues.save"}}</button> 26 + <button id="save-edit-title" class="ui small primary button in-edit gt-hidden tw-mr-0" data-update-url="{{$.RepoLink}}/issues/{{.Issue.Index}}/title" {{if .Issue.IsPull}}data-target-update-url="{{$.RepoLink}}/pull/{{.Issue.Index}}/target_branch"{{end}}>{{ctx.Locale.Tr "repo.issues.save"}}</button> 27 27 </div> 28 28 {{end}} 29 29 </div> 30 30 <div class="issue-title-meta"> 31 31 {{if .HasMerged}} 32 - <div class="ui purple label issue-state-label">{{svg "octicon-git-merge" 16 "gt-mr-2"}} {{if eq .Issue.PullRequest.Status 3}}{{ctx.Locale.Tr "repo.pulls.manually_merged"}}{{else}}{{ctx.Locale.Tr "repo.pulls.merged"}}{{end}}</div> 32 + <div class="ui purple label issue-state-label">{{svg "octicon-git-merge" 16 "tw-mr-1"}} {{if eq .Issue.PullRequest.Status 3}}{{ctx.Locale.Tr "repo.pulls.manually_merged"}}{{else}}{{ctx.Locale.Tr "repo.pulls.merged"}}{{end}}</div> 33 33 {{else if .Issue.IsClosed}} 34 34 <div class="ui red label issue-state-label">{{if .Issue.IsPull}}{{svg "octicon-git-pull-request"}}{{else}}{{svg "octicon-issue-closed"}}{{end}} {{ctx.Locale.Tr "repo.issues.closed_title"}}</div> 35 35 {{else if .Issue.IsPull}} ··· 41 41 {{else}} 42 42 <div class="ui green label issue-state-label">{{svg "octicon-issue-opened"}} {{ctx.Locale.Tr "repo.issues.open_title"}}</div> 43 43 {{end}} 44 - <div class="gt-ml-3"> 44 + <div class="tw-ml-2"> 45 45 {{if .Issue.IsPull}} 46 46 {{$headHref := .HeadTarget}} 47 47 {{if .HeadBranchLink}} ··· 83 83 {{end}} 84 84 <span id="pull-desc-edit" class="gt-hidden flex-text-block"> 85 85 <div class="ui floating filter dropdown"> 86 - <div class="ui basic small button gt-mr-0"> 86 + <div class="ui basic small button tw-mr-0"> 87 87 <span class="text">{{ctx.Locale.Tr "repo.pulls.compare_compare"}}: {{$.HeadTarget}}</span> 88 88 </div> 89 89 </div>
+2 -2
templates/repo/latest_commit.tmpl
··· 2 2 <div class="ui active tiny slow centered inline">…</div> 3 3 {{else}} 4 4 {{if .LatestCommitUser}} 5 - {{ctx.AvatarUtils.Avatar .LatestCommitUser 24 "gt-mr-2"}} 5 + {{ctx.AvatarUtils.Avatar .LatestCommitUser 24 "tw-mr-1"}} 6 6 {{if .LatestCommitUser.FullName}} 7 7 <a class="muted author-wrapper" title="{{.LatestCommitUser.FullName}}" href="{{.LatestCommitUser.HomeLink}}"><strong>{{.LatestCommitUser.FullName}}</strong></a> 8 8 {{else}} ··· 10 10 {{end}} 11 11 {{else}} 12 12 {{if .LatestCommit.Author}} 13 - {{ctx.AvatarUtils.AvatarByEmail .LatestCommit.Author.Email .LatestCommit.Author.Name 24 "gt-mr-2"}} 13 + {{ctx.AvatarUtils.AvatarByEmail .LatestCommit.Author.Email .LatestCommit.Author.Name 24 "tw-mr-1"}} 14 14 <span class="author-wrapper" title="{{.LatestCommit.Author.Name}}"><strong>{{.LatestCommit.Author.Name}}</strong></span> 15 15 {{end}} 16 16 {{end}}
+3 -3
templates/repo/migrate/migrate.tmpl
··· 7 7 {{range .Services}} 8 8 <a class="ui card migrate-entry tw-flex tw-items-center" href="{{AppSubUrl}}/repo/migrate?service_type={{.}}&org={{$.Org}}&mirror={{$.Mirror}}"> 9 9 {{if eq .Name "github"}} 10 - {{svg "octicon-mark-github" 184 "gt-p-4"}} 10 + {{svg "octicon-mark-github" 184 "tw-p-4"}} 11 11 {{else if eq .Name "gitlab"}} 12 - {{svg "gitea-gitlab" 184 "gt-p-4"}} 12 + {{svg "gitea-gitlab" 184 "tw-p-4"}} 13 13 {{else if eq .Name "gitbucket"}} 14 - {{svg "gitea-gitbucket" 184 "gt-p-4"}} 14 + {{svg "gitea-gitbucket" 184 "tw-p-4"}} 15 15 {{else}} 16 16 {{svg (printf "gitea-%s" .Name) 184}} 17 17 {{end}}
+1 -1
templates/repo/projects/view.tmpl
··· 2 2 <div role="main" aria-label="{{.Title}}" class="page-content repository projects view-project"> 3 3 {{template "repo/header" .}} 4 4 <div class="ui container padded"> 5 - <div class="tw-flex tw-justify-between tw-items-center gt-mb-4"> 5 + <div class="tw-flex tw-justify-between tw-items-center tw-mb-4"> 6 6 {{template "repo/issue/navbar" .}} 7 7 <a class="ui small primary button" href="{{.RepoLink}}/issues/new/choose?project={{.Project.ID}}">{{ctx.Locale.Tr "repo.issues.new"}}</a> 8 8 </div>
+1 -1
templates/repo/pulls/tab_menu.tmpl
··· 15 15 {{ctx.Locale.Tr "repo.pulls.tab_files"}} 16 16 <span class="ui small label">{{if .NumFiles}}{{.NumFiles}}{{else}}-{{end}}</span> 17 17 </a> 18 - <span class="item tw-ml-auto gt-pr-0 tw-font-bold tw-flex tw-items-center tw-gap-2"> 18 + <span class="item tw-ml-auto tw-pr-0 tw-font-bold tw-flex tw-items-center tw-gap-2"> 19 19 <span><span class="text green">{{if .Diff.TotalAddition}}+{{.Diff.TotalAddition}}{{end}}</span> <span class="text red">{{if .Diff.TotalDeletion}}-{{.Diff.TotalDeletion}}{{end}}</span></span> 20 20 <span class="diff-stats-bar"> 21 21 <div class="diff-stats-add-bar" style="width: {{Eval 100 "*" .Diff.TotalAddition "/" "(" .Diff.TotalAddition "+" .Diff.TotalDeletion "+" 0.0 ")"}}%"></div>
+6 -6
templates/repo/pulse.tmpl
··· 109 109 110 110 {{if gt .Activity.PublishedReleaseCount 0}} 111 111 <h4 class="divider divider-text tw-normal-case" id="published-releases"> 112 - {{svg "octicon-tag" 16 "gt-mr-3"}} 112 + {{svg "octicon-tag" 16 "tw-mr-2"}} 113 113 {{ctx.Locale.Tr "repo.activity.title.releases_published_by" 114 114 (ctx.Locale.TrN .Activity.PublishedReleaseCount "repo.activity.title.releases_1" "repo.activity.title.releases_n" .Activity.PublishedReleaseCount) 115 115 (ctx.Locale.TrN .Activity.PublishedReleaseAuthorCount "repo.activity.title.user_1" "repo.activity.title.user_n" .Activity.PublishedReleaseAuthorCount) ··· 131 131 132 132 {{if gt .Activity.MergedPRCount 0}} 133 133 <h4 class="divider divider-text tw-normal-case" id="merged-pull-requests"> 134 - {{svg "octicon-git-pull-request" 16 "gt-mr-3"}} 134 + {{svg "octicon-git-pull-request" 16 "tw-mr-2"}} 135 135 {{ctx.Locale.Tr "repo.activity.title.prs_merged_by" 136 136 (ctx.Locale.TrN .Activity.MergedPRCount "repo.activity.title.prs_1" "repo.activity.title.prs_n" .Activity.MergedPRCount) 137 137 (ctx.Locale.TrN .Activity.MergedPRAuthorCount "repo.activity.title.user_1" "repo.activity.title.user_n" .Activity.MergedPRAuthorCount) ··· 150 150 151 151 {{if gt .Activity.OpenedPRCount 0}} 152 152 <h4 class="divider divider-text tw-normal-case" id="proposed-pull-requests"> 153 - {{svg "octicon-git-branch" 16 "gt-mr-3"}} 153 + {{svg "octicon-git-branch" 16 "tw-mr-2"}} 154 154 {{ctx.Locale.Tr "repo.activity.title.prs_opened_by" 155 155 (ctx.Locale.TrN .Activity.OpenedPRCount "repo.activity.title.prs_1" "repo.activity.title.prs_n" .Activity.OpenedPRCount) 156 156 (ctx.Locale.TrN .Activity.OpenedPRAuthorCount "repo.activity.title.user_1" "repo.activity.title.user_n" .Activity.OpenedPRAuthorCount) ··· 169 169 170 170 {{if gt .Activity.ClosedIssueCount 0}} 171 171 <h4 class="divider divider-text tw-normal-case" id="closed-issues"> 172 - {{svg "octicon-issue-closed" 16 "gt-mr-3"}} 172 + {{svg "octicon-issue-closed" 16 "tw-mr-2"}} 173 173 {{ctx.Locale.Tr "repo.activity.title.issues_closed_from" 174 174 (ctx.Locale.TrN .Activity.ClosedIssueCount "repo.activity.title.issues_1" "repo.activity.title.issues_n" .Activity.ClosedIssueCount) 175 175 (ctx.Locale.TrN .Activity.ClosedIssueAuthorCount "repo.activity.title.user_1" "repo.activity.title.user_n" .Activity.ClosedIssueAuthorCount) ··· 188 188 189 189 {{if gt .Activity.OpenedIssueCount 0}} 190 190 <h4 class="divider divider-text tw-normal-case" id="new-issues"> 191 - {{svg "octicon-issue-opened" 16 "gt-mr-3"}} 191 + {{svg "octicon-issue-opened" 16 "tw-mr-2"}} 192 192 {{ctx.Locale.Tr "repo.activity.title.issues_created_by" 193 193 (ctx.Locale.TrN .Activity.OpenedIssueCount "repo.activity.title.issues_1" "repo.activity.title.issues_n" .Activity.OpenedIssueCount) 194 194 (ctx.Locale.TrN .Activity.OpenedIssueAuthorCount "repo.activity.title.user_1" "repo.activity.title.user_n" .Activity.OpenedIssueAuthorCount) ··· 207 207 208 208 {{if gt .Activity.UnresolvedIssueCount 0}} 209 209 <h4 class="divider divider-text tw-normal-case" id="unresolved-conversations" data-tooltip-content="{{ctx.Locale.Tr "repo.activity.unresolved_conv_desc"}}"> 210 - {{svg "octicon-comment-discussion" 16 "gt-mr-3"}} 210 + {{svg "octicon-comment-discussion" 16 "tw-mr-2"}} 211 211 {{ctx.Locale.TrN .Activity.UnresolvedIssueCount "repo.activity.title.unresolved_conv_1" "repo.activity.title.unresolved_conv_n" .Activity.UnresolvedIssueCount}} 212 212 </h4> 213 213 <div class="list">
+9 -9
templates/repo/release/list.tmpl
··· 9 9 {{$release := $info.Release}} 10 10 <li class="ui grid"> 11 11 <div class="ui four wide column meta"> 12 - <a class="muted" href="{{if not (and $release.Sha1 ($.Permission.CanRead $.UnitTypeCode))}}#{{else}}{{$.RepoLink}}/src/tag/{{$release.TagName | PathEscapeSegments}}{{end}}" rel="nofollow">{{svg "octicon-tag" 16 "gt-mr-2"}}{{$release.TagName}}</a> 12 + <a class="muted" href="{{if not (and $release.Sha1 ($.Permission.CanRead $.UnitTypeCode))}}#{{else}}{{$.RepoLink}}/src/tag/{{$release.TagName | PathEscapeSegments}}{{end}}" rel="nofollow">{{svg "octicon-tag" 16 "tw-mr-1"}}{{$release.TagName}}</a> 13 13 {{if and $release.Sha1 ($.Permission.CanRead $.UnitTypeCode)}} 14 - <a class="muted gt-mono" href="{{$.RepoLink}}/src/commit/{{$release.Sha1}}" rel="nofollow">{{svg "octicon-git-commit" 16 "gt-mr-2"}}{{ShortSha $release.Sha1}}</a> 14 + <a class="muted gt-mono" href="{{$.RepoLink}}/src/commit/{{$release.Sha1}}" rel="nofollow">{{svg "octicon-git-commit" 16 "tw-mr-1"}}{{ShortSha $release.Sha1}}</a> 15 15 {{template "repo/branch_dropdown" dict "root" $ "release" $release}} 16 16 {{end}} 17 17 </div> 18 18 <div class="ui twelve wide column detail"> 19 - <div class="tw-flex tw-items-center tw-justify-between tw-flex-wrap gt-mb-3"> 19 + <div class="tw-flex tw-items-center tw-justify-between tw-flex-wrap tw-mb-2"> 20 20 <h4 class="release-list-title gt-word-break"> 21 21 <a href="{{$.RepoLink}}/releases/tag/{{$release.TagName | PathEscapeSegments}}">{{$release.Title}}</a> 22 22 {{template "repo/commit_statuses" dict "Status" $info.CommitStatus "Statuses" $info.CommitStatuses "AdditionalClasses" "tw-flex"}} ··· 39 39 <p class="text grey"> 40 40 <span class="author"> 41 41 {{if $release.OriginalAuthor}} 42 - {{svg (MigrationIcon $release.Repo.GetOriginalURLHostname) 20 "gt-mr-2"}}{{$release.OriginalAuthor}} 42 + {{svg (MigrationIcon $release.Repo.GetOriginalURLHostname) 20 "tw-mr-1"}}{{$release.OriginalAuthor}} 43 43 {{else if $release.Publisher}} 44 - {{ctx.AvatarUtils.Avatar $release.Publisher 20 "gt-mr-2"}} 44 + {{ctx.AvatarUtils.Avatar $release.Publisher 20 "tw-mr-1"}} 45 45 <a href="{{$release.Publisher.HomeLink}}">{{$release.Publisher.GetDisplayName}}</a> 46 46 {{else}} 47 47 Ghost ··· 62 62 </div> 63 63 <div class="divider"></div> 64 64 <details class="download" {{if eq $idx 0}}open{{end}}> 65 - <summary class="gt-my-4"> 65 + <summary class="tw-my-4"> 66 66 {{ctx.Locale.Tr "repo.release.downloads"}} 67 67 </summary> 68 68 <ul class="list"> 69 69 {{if and (not $.DisableDownloadSourceArchives) (not $release.IsDraft) ($.Permission.CanRead $.UnitTypeCode)}} 70 70 <li> 71 - <a class="archive-link" href="{{$.RepoLink}}/archive/{{$release.TagName | PathEscapeSegments}}.zip" rel="nofollow"><strong>{{svg "octicon-file-zip" 16 "gt-mr-2"}}{{ctx.Locale.Tr "repo.release.source_code"}} (ZIP)</strong></a> 71 + <a class="archive-link" href="{{$.RepoLink}}/archive/{{$release.TagName | PathEscapeSegments}}.zip" rel="nofollow"><strong>{{svg "octicon-file-zip" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.release.source_code"}} (ZIP)</strong></a> 72 72 </li> 73 73 <li> 74 - <a class="archive-link" href="{{$.RepoLink}}/archive/{{$release.TagName | PathEscapeSegments}}.tar.gz" rel="nofollow"><strong>{{svg "octicon-file-zip" 16 "gt-mr-2"}}{{ctx.Locale.Tr "repo.release.source_code"}} (TAR.GZ)</strong></a> 74 + <a class="archive-link" href="{{$.RepoLink}}/archive/{{$release.TagName | PathEscapeSegments}}.tar.gz" rel="nofollow"><strong>{{svg "octicon-file-zip" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.release.source_code"}} (TAR.GZ)</strong></a> 75 75 </li> 76 76 {{end}} 77 77 {{range $release.Attachments}} 78 78 <li> 79 79 <a target="_blank" rel="nofollow" href="{{.DownloadURL}}" download> 80 - <strong>{{svg "octicon-package" 16 "gt-mr-2"}}{{.Name}}</strong> 80 + <strong>{{svg "octicon-package" 16 "tw-mr-1"}}{{.Name}}</strong> 81 81 </a> 82 82 <div> 83 83 <span class="text grey">{{.Size | FileSize}}</span>
+3 -3
templates/repo/release/new.tmpl
··· 39 39 </div> 40 40 </div> 41 41 <div> 42 - <span id="tag-helper" class="help gt-mt-3 gt-pb-0">{{ctx.Locale.Tr "repo.release.tag_helper"}}</span> 42 + <span id="tag-helper" class="help tw-mt-2 tw-pb-0">{{ctx.Locale.Tr "repo.release.tag_helper"}}</span> 43 43 </div> 44 44 {{end}} 45 45 </div> 46 46 </div> 47 - <div class="eleven wide gt-pt-0"> 47 + <div class="eleven wide tw-pt-0"> 48 48 <div class="field {{if .Err_Title}}error{{end}}"> 49 49 <input name="title" aria-label="{{ctx.Locale.Tr "repo.release.title"}}" placeholder="{{ctx.Locale.Tr "repo.release.title"}}" value="{{.title}}" autofocus maxlength="255"> 50 50 </div> ··· 100 100 </div> 101 101 </div> 102 102 <span class="help">{{ctx.Locale.Tr "repo.release.prerelease_helper"}}</span> 103 - <div class="divider gt-mt-0"></div> 103 + <div class="divider tw-mt-0"></div> 104 104 <div class="tw-flex tw-justify-end"> 105 105 {{if .PageIsEditRelease}} 106 106 <a class="ui small button" href="{{.RepoLink}}/releases">
+1 -1
templates/repo/settings/branches.tmpl
··· 16 16 {{.CsrfTokenHtml}} 17 17 <input type="hidden" name="action" value="default_branch"> 18 18 {{if not .Repository.IsEmpty}} 19 - <div class="ui dropdown selection search tw-flex-1 gt-mr-3 tw-max-w-96"> 19 + <div class="ui dropdown selection search tw-flex-1 tw-mr-2 tw-max-w-96"> 20 20 {{svg "octicon-triangle-down" 14 "dropdown icon"}} 21 21 <input type="hidden" name="branch" value="{{.Repository.DefaultBranch}}"> 22 22 <div class="default text">{{.Repository.DefaultBranch}}</div>
+1 -1
templates/repo/settings/deploy_keys.tmpl
··· 11 11 </div> 12 12 </h4> 13 13 <div class="ui attached segment"> 14 - <div class="{{if not .HasError}}gt-hidden{{end}} gt-mb-4" id="add-deploy-key-panel"> 14 + <div class="{{if not .HasError}}gt-hidden{{end}} tw-mb-4" id="add-deploy-key-panel"> 15 15 <form class="ui form" action="{{.Link}}" method="post"> 16 16 {{.CsrfTokenHtml}} 17 17 <div class="field">
+3 -3
templates/repo/settings/githooks.tmpl
··· 10 10 </div> 11 11 {{range .Hooks}} 12 12 <div class="item truncated-item-container"> 13 - <span class="text {{if .IsActive}}green{{else}}grey{{end}} gt-mr-3">{{svg "octicon-dot-fill" 22}}</span> 14 - <span class="text truncate tw-flex-1 gt-mr-3">{{.Name}}</span> 15 - <a class="muted tw-float-right gt-p-3" href="{{$.RepoLink}}/settings/hooks/git/{{.Name|PathEscape}}"> 13 + <span class="text {{if .IsActive}}green{{else}}grey{{end}} tw-mr-2">{{svg "octicon-dot-fill" 22}}</span> 14 + <span class="text truncate tw-flex-1 tw-mr-2">{{.Name}}</span> 15 + <a class="muted tw-float-right tw-p-2" href="{{$.RepoLink}}/settings/hooks/git/{{.Name|PathEscape}}"> 16 16 {{svg "octicon-pencil"}} 17 17 </a> 18 18 </div>
+5 -5
templates/repo/settings/options.tmpl
··· 121 121 <tbody> 122 122 <tr> 123 123 <td colspan="4"> 124 - <div class="text red gt-py-4">{{ctx.Locale.Tr "repo.settings.mirror_settings.direction.pull"}}: {{ctx.Locale.Tr "error.occurred"}}</div> 124 + <div class="text red tw-py-4">{{ctx.Locale.Tr "repo.settings.mirror_settings.direction.pull"}}: {{ctx.Locale.Tr "error.occurred"}}</div> 125 125 </td> 126 126 </tr> 127 127 </tbody> ··· 163 163 <p class="help">{{ctx.Locale.Tr "repo.mirror_address_desc"}}</p> 164 164 </div> 165 165 <details class="ui optional field" {{if or .Err_Auth $address.Username}}open{{end}}> 166 - <summary class="gt-p-2"> 166 + <summary class="tw-p-1"> 167 167 {{ctx.Locale.Tr "repo.need_auth"}} 168 168 </summary> 169 - <div class="gt-p-2"> 169 + <div class="tw-p-1"> 170 170 <div class="inline field {{if .Err_Auth}}error{{end}}"> 171 171 <label for="mirror_username">{{ctx.Locale.Tr "username"}}</label> 172 172 <input id="mirror_username" name="mirror_username" value="{{$address.Username}}" {{if not .mirror_username}}data-need-clear="true"{{end}}> ··· 262 262 <p class="help">{{ctx.Locale.Tr "repo.mirror_address_desc"}}</p> 263 263 </div> 264 264 <details class="ui optional field" {{if or .Err_PushMirrorAuth .push_mirror_username}}open{{end}}> 265 - <summary class="gt-p-2"> 265 + <summary class="tw-p-1"> 266 266 {{ctx.Locale.Tr "repo.need_auth"}} 267 267 </summary> 268 - <div class="gt-p-2"> 268 + <div class="tw-p-1"> 269 269 <div class="inline field {{if .Err_PushMirrorAuth}}error{{end}}"> 270 270 <label for="push_mirror_username">{{ctx.Locale.Tr "username"}}</label> 271 271 <input id="push_mirror_username" name="push_mirror_username" value="{{.push_mirror_username}}">
+4 -4
templates/repo/settings/protected_branch.tmpl
··· 10 10 <label>{{ctx.Locale.Tr "repo.settings.protect_branch_name_pattern"}}</label> 11 11 <input name="rule_name" type="text" value="{{.Rule.RuleName}}"> 12 12 <input name="rule_id" type="hidden" value="{{.Rule.ID}}"> 13 - <p class="help gt-ml-0">{{ctx.Locale.Tr "repo.settings.protect_branch_name_pattern_desc"}}</p> 13 + <p class="help tw-ml-0">{{ctx.Locale.Tr "repo.settings.protect_branch_name_pattern_desc"}}</p> 14 14 </div> 15 15 <div class="field"> 16 16 <label>{{ctx.Locale.Tr "repo.settings.protect_protected_file_patterns"}}</label> 17 17 <input name="protected_file_patterns" type="text" value="{{.Rule.ProtectedFilePatterns}}"> 18 - <p class="help gt-ml-0">{{ctx.Locale.Tr "repo.settings.protect_protected_file_patterns_desc"}}</p> 18 + <p class="help tw-ml-0">{{ctx.Locale.Tr "repo.settings.protect_protected_file_patterns_desc"}}</p> 19 19 </div> 20 20 <div class="field"> 21 21 <label>{{ctx.Locale.Tr "repo.settings.protect_unprotected_file_patterns"}}</label> 22 22 <input name="unprotected_file_patterns" type="text" value="{{.Rule.UnprotectedFilePatterns}}"> 23 - <p class="help gt-ml-0">{{ctx.Locale.Tr "repo.settings.protect_unprotected_file_patterns_desc"}}</p> 23 + <p class="help tw-ml-0">{{ctx.Locale.Tr "repo.settings.protect_unprotected_file_patterns_desc"}}</p> 24 24 </div> 25 25 26 26 {{.CsrfTokenHtml}} ··· 98 98 <div class="field"> 99 99 <label>{{ctx.Locale.Tr "repo.settings.protect_required_approvals"}}</label> 100 100 <input name="required_approvals" type="number" value="{{.Rule.RequiredApprovals}}"> 101 - <p class="help gt-ml-0">{{ctx.Locale.Tr "repo.settings.protect_required_approvals_desc"}}</p> 101 + <p class="help tw-ml-0">{{ctx.Locale.Tr "repo.settings.protect_required_approvals_desc"}}</p> 102 102 </div> 103 103 <div class="grouped fields"> 104 104 <div class="field">
+2 -2
templates/repo/settings/units/issues.tmpl
··· 20 20 <label>{{ctx.Locale.Tr "repo.settings.use_internal_issue_tracker"}}</label> 21 21 </div> 22 22 </div> 23 - <div class="field gt-pl-4 {{if (.Repository.UnitEnabled $.Context $.UnitTypeExternalTracker)}}disabled{{end}}" id="internal_issue_box"> 23 + <div class="field tw-pl-4 {{if (.Repository.UnitEnabled $.Context $.UnitTypeExternalTracker)}}disabled{{end}}" id="internal_issue_box"> 24 24 {{if .Repository.CanEnableTimetracker}} 25 25 <div class="field"> 26 26 <div class="ui checkbox"> ··· 52 52 <label>{{ctx.Locale.Tr "repo.settings.use_external_issue_tracker"}}</label> 53 53 </div> 54 54 </div> 55 - <div class="field gt-pl-4 {{if not (.Repository.UnitEnabled $.Context $.UnitTypeExternalTracker)}}disabled{{end}}" id="external_issue_box"> 55 + <div class="field tw-pl-4 {{if not (.Repository.UnitEnabled $.Context $.UnitTypeExternalTracker)}}disabled{{end}}" id="external_issue_box"> 56 56 <div class="field"> 57 57 <label for="external_tracker_url">{{ctx.Locale.Tr "repo.settings.external_tracker_url"}}</label> 58 58 <input id="external_tracker_url" name="external_tracker_url" type="url" value="{{(.Repository.MustGetUnit $.Context $.UnitTypeExternalTracker).ExternalTrackerConfig.ExternalTrackerURL}}">
+1 -1
templates/repo/settings/units/wiki.tmpl
··· 36 36 <label>{{ctx.Locale.Tr "repo.settings.use_external_wiki"}}</label> 37 37 </div> 38 38 </div> 39 - <div class="field gt-pl-4 {{if not (.Repository.UnitEnabled $.Context $.UnitTypeExternalWiki)}}disabled{{end}}" id="external_wiki_box"> 39 + <div class="field tw-pl-4 {{if not (.Repository.UnitEnabled $.Context $.UnitTypeExternalWiki)}}disabled{{end}}" id="external_wiki_box"> 40 40 <label for="external_wiki_url">{{ctx.Locale.Tr "repo.settings.external_wiki_url"}}</label> 41 41 <input id="external_wiki_url" name="external_wiki_url" type="url" value="{{(.Repository.MustGetUnit $.Context $.UnitTypeExternalWiki).ExternalWikiConfig.ExternalWikiURL}}"> 42 42 <p class="help">{{ctx.Locale.Tr "repo.settings.external_wiki_url_desc"}}</p>
+4 -4
templates/repo/settings/webhook/base_list.tmpl
··· 14 14 </div> 15 15 {{range .Webhooks}} 16 16 <div class="item truncated-item-container"> 17 - <span class="text {{if eq .LastStatus 1}}green{{else if eq .LastStatus 2}}red{{else}}grey{{end}} gt-mr-3">{{svg "octicon-dot-fill" 22}}</span> 18 - <div class="text truncate tw-flex-1 gt-mr-3"> 17 + <span class="text {{if eq .LastStatus 1}}green{{else if eq .LastStatus 2}}red{{else}}grey{{end}} tw-mr-2">{{svg "octicon-dot-fill" 22}}</span> 18 + <div class="text truncate tw-flex-1 tw-mr-2"> 19 19 <a title="{{.URL}}" href="{{$.BaseLink}}/{{.ID}}">{{.URL}}</a> 20 20 </div> 21 - <a class="muted gt-p-3" href="{{$.BaseLink}}/{{.ID}}">{{svg "octicon-pencil"}}</a> 22 - <a class="delete-button gt-p-3" data-url="{{$.Link}}/delete" data-id="{{.ID}}">{{svg "octicon-trash"}}</a> 21 + <a class="muted tw-p-2" href="{{$.BaseLink}}/{{.ID}}">{{svg "octicon-pencil"}}</a> 22 + <a class="delete-button tw-p-2" data-url="{{$.Link}}/delete" data-id="{{.ID}}">{{svg "octicon-trash"}}</a> 23 23 </div> 24 24 {{end}} 25 25 </div>
+1 -1
templates/repo/sub_menu.tmpl
··· 1 1 {{if and (not .HideRepoInfo) (not .IsBlame)}} 2 - <div class="ui segments repository-summary gt-mt-2 gt-mb-0"> 2 + <div class="ui segments repository-summary tw-mt-1 tw-mb-0"> 3 3 <div class="ui segment sub-menu repository-menu"> 4 4 {{if and (.Permission.CanRead $.UnitTypeCode) (not .IsEmptyRepo)}} 5 5 <a class="item muted {{if .PageIsCommits}}active{{end}}" href="{{.RepoLink}}/commits/{{.BranchNameSubURL}}">
+10 -10
templates/repo/tag/list.tmpl
··· 6 6 {{template "repo/release_tag_header" .}} 7 7 <h4 class="ui top attached header"> 8 8 <div class="five wide column tw-flex tw-items-center"> 9 - {{svg "octicon-tag" 16 "gt-mr-2"}}{{ctx.Locale.Tr "repo.release.tags"}} 9 + {{svg "octicon-tag" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.release.tags"}} 10 10 </div> 11 11 </h4> 12 12 {{$canReadReleases := $.Permission.CanRead $.UnitTypeReleases}} ··· 16 16 {{range $idx, $release := .Releases}} 17 17 <tr> 18 18 <td class="tag"> 19 - <h3 class="release-tag-name gt-mb-3"> 19 + <h3 class="release-tag-name tw-mb-2"> 20 20 {{if $canReadReleases}} 21 21 <a class="tw-flex tw-items-center" href="{{$.RepoLink}}/releases/tag/{{.TagName | PathEscapeSegments}}" rel="nofollow">{{.TagName}}</a> 22 22 {{else}} ··· 26 26 <div class="download tw-flex tw-items-center"> 27 27 {{if $.Permission.CanRead $.UnitTypeCode}} 28 28 {{if .CreatedUnix}} 29 - <span class="gt-mr-3">{{svg "octicon-clock" 16 "gt-mr-2"}}{{TimeSinceUnix .CreatedUnix ctx.Locale}}</span> 29 + <span class="tw-mr-2">{{svg "octicon-clock" 16 "tw-mr-1"}}{{TimeSinceUnix .CreatedUnix ctx.Locale}}</span> 30 30 {{end}} 31 31 32 - <a class="gt-mr-3 gt-mono muted" href="{{$.RepoLink}}/src/commit/{{.Sha1}}" rel="nofollow">{{svg "octicon-git-commit" 16 "gt-mr-2"}}{{ShortSha .Sha1}}</a> 32 + <a class="tw-mr-2 gt-mono muted" href="{{$.RepoLink}}/src/commit/{{.Sha1}}" rel="nofollow">{{svg "octicon-git-commit" 16 "tw-mr-1"}}{{ShortSha .Sha1}}</a> 33 33 34 34 {{if not $.DisableDownloadSourceArchives}} 35 - <a class="archive-link gt-mr-3 muted" href="{{$.RepoLink}}/archive/{{.TagName | PathEscapeSegments}}.zip" rel="nofollow">{{svg "octicon-file-zip" 16 "gt-mr-2"}}ZIP</a> 36 - <a class="archive-link gt-mr-3 muted" href="{{$.RepoLink}}/archive/{{.TagName | PathEscapeSegments}}.tar.gz" rel="nofollow">{{svg "octicon-file-zip" 16 "gt-mr-2"}}TAR.GZ</a> 35 + <a class="archive-link tw-mr-2 muted" href="{{$.RepoLink}}/archive/{{.TagName | PathEscapeSegments}}.zip" rel="nofollow">{{svg "octicon-file-zip" 16 "tw-mr-1"}}ZIP</a> 36 + <a class="archive-link tw-mr-2 muted" href="{{$.RepoLink}}/archive/{{.TagName | PathEscapeSegments}}.tar.gz" rel="nofollow">{{svg "octicon-file-zip" 16 "tw-mr-1"}}TAR.GZ</a> 37 37 {{end}} 38 38 39 39 {{if (and $canReadReleases $.CanCreateRelease $release.IsTag)}} 40 - <a class="gt-mr-3 muted" href="{{$.RepoLink}}/releases/new?tag={{.TagName}}">{{svg "octicon-tag" 16 "gt-mr-2"}}{{ctx.Locale.Tr "repo.release.new_release"}}</a> 40 + <a class="tw-mr-2 muted" href="{{$.RepoLink}}/releases/new?tag={{.TagName}}">{{svg "octicon-tag" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.release.new_release"}}</a> 41 41 {{end}} 42 42 43 43 {{if (and ($.Permission.CanWrite $.UnitTypeCode) $release.IsTag)}} 44 - <a class="ui delete-button gt-mr-3 muted" data-url="{{$.RepoLink}}/tags/delete" data-id="{{.ID}}"> 45 - {{svg "octicon-trash" 16 "gt-mr-2"}}{{ctx.Locale.Tr "repo.release.delete_tag"}} 44 + <a class="ui delete-button tw-mr-2 muted" data-url="{{$.RepoLink}}/tags/delete" data-id="{{.ID}}"> 45 + {{svg "octicon-trash" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.release.delete_tag"}} 46 46 </a> 47 47 {{end}} 48 48 49 49 {{if and $canReadReleases (not $release.IsTag)}} 50 - <a class="gt-mr-3 muted" href="{{$.RepoLink}}/releases/tag/{{.TagName | PathEscapeSegments}}">{{svg "octicon-tag" 16 "gt-mr-2"}}{{ctx.Locale.Tr "repo.release.detail"}}</a> 50 + <a class="tw-mr-2 muted" href="{{$.RepoLink}}/releases/tag/{{.TagName | PathEscapeSegments}}">{{svg "octicon-tag" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.release.detail"}}</a> 51 51 {{end}} 52 52 {{end}} 53 53 </div>
+6 -6
templates/repo/view_file.tmpl
··· 11 11 {{end}} 12 12 13 13 {{if not .ReadmeInList}} 14 - <div id="repo-file-commit-box" class="ui top attached header list-header gt-mb-4"> 14 + <div id="repo-file-commit-box" class="ui top attached header list-header tw-mb-4"> 15 15 <div> 16 16 {{template "repo/latest_commit" .}} 17 17 </div> ··· 26 26 {{end}} 27 27 28 28 <h4 class="file-header ui top attached header tw-flex tw-items-center tw-justify-between tw-flex-wrap"> 29 - <div class="file-header-left tw-flex tw-items-center gt-py-3 gt-pr-4"> 29 + <div class="file-header-left tw-flex tw-items-center tw-py-2 tw-pr-4"> 30 30 {{if .ReadmeInList}} 31 - {{svg "octicon-book" 16 "gt-mr-3"}} 31 + {{svg "octicon-book" 16 "tw-mr-2"}} 32 32 <strong><a class="default-link muted" href="#readme">{{.FileName}}</a></strong> 33 33 {{else}} 34 34 {{template "repo/file_info" .}} ··· 42 42 </div> 43 43 {{end}} 44 44 {{if not .ReadmeInList}} 45 - <div class="ui buttons gt-mr-2"> 45 + <div class="ui buttons tw-mr-1"> 46 46 {{if .SymlinkURL}} 47 47 <a class="ui mini basic button" href="{{$.SymlinkURL}}" data-kind="follow-symlink">{{ctx.Locale.Tr "repo.file_follow"}}</a> 48 48 {{end}} ··· 85 85 {{end}} 86 86 {{end}} 87 87 {{else if .EscapeStatus.Escaped}} 88 - <button class="ui mini basic button unescape-button gt-mr-2 gt-hidden">{{ctx.Locale.Tr "repo.unescape_control_characters"}}</button> 89 - <button class="ui mini basic button escape-button gt-mr-2">{{ctx.Locale.Tr "repo.escape_control_characters"}}</button> 88 + <button class="ui mini basic button unescape-button tw-mr-1 gt-hidden">{{ctx.Locale.Tr "repo.unescape_control_characters"}}</button> 89 + <button class="ui mini basic button escape-button tw-mr-1">{{ctx.Locale.Tr "repo.escape_control_characters"}}</button> 90 90 {{end}} 91 91 {{if and .ReadmeInList .CanEditReadmeFile}} 92 92 <a class="btn-octicon" data-tooltip-content="{{ctx.Locale.Tr "repo.editor.edit_this_file"}}" href="{{.RepoLink}}/_edit/{{PathEscapeSegments .BranchName}}/{{PathEscapeSegments .TreePath}}/{{PathEscapeSegments .FileName}}">{{svg "octicon-pencil"}}</a>
+1 -1
templates/repo/view_list.tmpl
··· 1 - <table id="repo-files-table" class="ui single line table gt-mt-0" {{if .HasFilesWithoutLatestCommit}}hx-indicator="tr.notready td.message span" hx-trigger="load" hx-swap="morph" hx-post="{{.LastCommitLoaderURL}}"{{end}}> 1 + <table id="repo-files-table" class="ui single line table tw-mt-0" {{if .HasFilesWithoutLatestCommit}}hx-indicator="tr.notready td.message span" hx-trigger="load" hx-swap="morph" hx-post="{{.LastCommitLoaderURL}}"{{end}}> 2 2 <thead> 3 3 <tr class="commit-list"> 4 4 <th colspan="2">
+1 -1
templates/repo/wiki/new.tmpl
··· 31 31 "TextareaContent" $content 32 32 )}} 33 33 34 - <div class="field gt-mt-4"> 34 + <div class="field tw-mt-4"> 35 35 <input name="message" aria-label="{{ctx.Locale.Tr "repo.wiki.default_commit_message"}}" placeholder="{{ctx.Locale.Tr "repo.wiki.default_commit_message"}}"> 36 36 </div> 37 37 <div class="divider"></div>
+1 -1
templates/repo/wiki/revision.tmpl
··· 22 22 </div> 23 23 </div> 24 24 <h2 class="ui top header">{{ctx.Locale.Tr "repo.wiki.wiki_page_revisions"}}</h2> 25 - <div class="gt-mt-4"> 25 + <div class="tw-mt-4"> 26 26 <h4 class="ui top attached header"> 27 27 <div class="ui stackable grid"> 28 28 <div class="sixteen wide column">
+1 -1
templates/repo/wiki/start.tmpl
··· 2 2 <div role="main" aria-label="{{.Title}}" class="page-content repository wiki start"> 3 3 {{template "repo/header" .}} 4 4 <div class="ui container"> 5 - <div class="ui center segment gt-py-5"> 5 + <div class="ui center segment tw-py-8"> 6 6 {{svg "octicon-book" 48}} 7 7 <h2>{{ctx.Locale.Tr "repo.wiki.welcome"}}</h2> 8 8 <p>{{ctx.Locale.Tr "repo.wiki.welcome_desc"}}</p>
+4 -4
templates/shared/actions/runner_edit.tmpl
··· 7 7 {{template "base/disable_form_autofill"}} 8 8 {{.CsrfTokenHtml}} 9 9 <div class="runner-basic-info"> 10 - <div class="field tw-inline-block gt-mr-4"> 10 + <div class="field tw-inline-block tw-mr-4"> 11 11 <label>{{ctx.Locale.Tr "actions.runners.status"}}</label> 12 12 <span class="ui {{if .Runner.IsOnline}}green{{else}}basic{{end}} label">{{.Runner.StatusLocaleName ctx.Locale}}</span> 13 13 </div> 14 - <div class="field tw-inline-block gt-mr-4"> 14 + <div class="field tw-inline-block tw-mr-4"> 15 15 <label>{{ctx.Locale.Tr "actions.runners.last_online"}}</label> 16 16 <span>{{if .Runner.LastOnline}}{{TimeSinceUnix .Runner.LastOnline ctx.Locale}}{{else}}{{ctx.Locale.Tr "never"}}{{end}}</span> 17 17 </div> 18 - <div class="field tw-inline-block gt-mr-4"> 18 + <div class="field tw-inline-block tw-mr-4"> 19 19 <label>{{ctx.Locale.Tr "actions.runners.labels"}}</label> 20 20 <span> 21 21 {{range .Runner.AgentLabels}} ··· 23 23 {{end}} 24 24 </span> 25 25 </div> 26 - <div class="field tw-inline-block gt-mr-4"> 26 + <div class="field tw-inline-block tw-mr-4"> 27 27 <label>{{ctx.Locale.Tr "actions.runners.owner_type"}}</label> 28 28 <span data-tooltip-content="{{.Runner.BelongsToOwnerName}}">{{.Runner.BelongsToOwnerType.LocaleString ctx.Locale}}</span> 29 29 </div>
+2 -2
templates/shared/issuelist.tmpl
··· 5 5 6 6 <div class="flex-item-icon"> 7 7 {{if $.CanWriteIssuesOrPulls}} 8 - <input type="checkbox" autocomplete="off" class="issue-checkbox gt-mr-4" data-issue-id={{.ID}} aria-label="{{ctx.Locale.Tr "repo.issues.action_check"}} &quot;{{.Title}}&quot;"> 8 + <input type="checkbox" autocomplete="off" class="issue-checkbox tw-mr-4" data-issue-id={{.ID}} aria-label="{{ctx.Locale.Tr "repo.issues.action_check"}} &quot;{{.Title}}&quot;"> 9 9 {{end}} 10 10 {{template "shared/issueicon" .}} 11 11 </div> ··· 19 19 {{template "repo/commit_statuses" dict "Status" (index $.CommitLastStatus .PullRequest.ID) "Statuses" (index $.CommitStatuses .PullRequest.ID)}} 20 20 {{end}} 21 21 {{end}} 22 - <span class="labels-list gt-ml-2"> 22 + <span class="labels-list tw-ml-1"> 23 23 {{range .Labels}} 24 24 <a href="?q={{$.Keyword}}&type={{$.ViewType}}&state={{$.State}}&labels={{.ID}}{{if ne $.listType "milestone"}}&milestone={{$.MilestoneID}}{{end}}&assignee={{$.AssigneeID}}&poster={{$.PosterID}}{{if $.ShowArchivedLabels}}&archived=true{{end}}">{{RenderLabel $.Context .}}</a> 25 25 {{end}}
+1 -1
templates/shared/repo_search.tmpl
··· 37 37 </div> 38 38 </div> 39 39 <!-- Sort --> 40 - <div class="ui small dropdown type jump item gt-mr-0"> 40 + <div class="ui small dropdown type jump item tw-mr-0"> 41 41 <span class="text"> 42 42 {{ctx.Locale.Tr "repo.issues.filter_sort"}} 43 43 </span>
+2 -2
templates/shared/search/code/results.tmpl
··· 1 1 <div class="flex-text-block tw-flex-wrap"> 2 2 {{range $term := .SearchResultLanguages}} 3 - <a class="ui {{if eq $.Language $term.Language}}primary{{end}} basic label gt-m-0" 3 + <a class="ui {{if eq $.Language $term.Language}}primary{{end}} basic label tw-m-0" 4 4 href="?q={{$.Keyword}}{{if ne $.Language $term.Language}}&l={{$term.Language}}{{end}}&fuzzy={{$.IsFuzzy}}"> 5 - <i class="color-icon gt-mr-3" style="background-color: {{$term.Color}}"></i> 5 + <i class="color-icon tw-mr-2" style="background-color: {{$term.Color}}"></i> 6 6 {{$term.Language}} 7 7 <div class="detail">{{$term.Count}}</div> 8 8 </a>
+3 -3
templates/shared/searchbottom.tmpl
··· 1 1 {{if or .result.Language (not .result.UpdatedUnix.IsZero)}} 2 2 <div class="ui bottom attached table segment tw-flex tw-items-center tw-justify-between"> 3 - <div class="tw-flex tw-items-center gt-ml-4"> 3 + <div class="tw-flex tw-items-center tw-ml-4"> 4 4 {{if .result.Language}} 5 - <i class="color-icon gt-mr-3" style="background-color: {{.result.Color}}"></i>{{.result.Language}} 5 + <i class="color-icon tw-mr-2" style="background-color: {{.result.Color}}"></i>{{.result.Language}} 6 6 {{end}} 7 7 </div> 8 - <div class="gt-mr-4"> 8 + <div class="tw-mr-4"> 9 9 {{if not .result.UpdatedUnix.IsZero}} 10 10 <span class="ui grey text">{{ctx.Locale.Tr "explore.code_last_indexed_at" (TimeSinceUnix .result.UpdatedUnix ctx.Locale)}}</span> 11 11 {{end}}
+1 -1
templates/shared/secrets/add_list.tmpl
··· 30 30 <span class="color-text-light-2"> 31 31 {{ctx.Locale.Tr "settings.added_on" (DateTime "short" .CreatedUnix)}} 32 32 </span> 33 - <button class="ui btn interact-bg link-action gt-p-3" 33 + <button class="ui btn interact-bg link-action tw-p-2" 34 34 data-url="{{$.Link}}/delete?id={{.ID}}" 35 35 data-modal-confirm="{{ctx.Locale.Tr "secrets.deletion.description"}}" 36 36 data-tooltip-content="{{ctx.Locale.Tr "secrets.deletion"}}"
+1 -1
templates/shared/user/authorlink.tmpl
··· 1 - <a class="author text black tw-font-semibold muted"{{if gt .ID 0}} href="{{.HomeLink}}"{{end}}>{{.GetDisplayName}}</a>{{if .IsBot}}<span class="ui basic label gt-p-2">bot</span>{{end}} 1 + <a class="author text black tw-font-semibold muted"{{if gt .ID 0}} href="{{.HomeLink}}"{{end}}>{{.GetDisplayName}}</a>{{if .IsBot}}<span class="ui basic label tw-p-1">bot</span>{{end}}
+83
templates/shared/user/blocked_users.tmpl
··· 1 + <h4 class="ui top attached header"> 2 + {{ctx.Locale.Tr "user.block.title"}} 3 + </h4> 4 + <div class="ui attached segment"> 5 + <p>{{ctx.Locale.Tr "user.block.info_1"}}</p> 6 + <ul> 7 + <li>{{ctx.Locale.Tr "user.block.info_2"}}</li> 8 + <li>{{ctx.Locale.Tr "user.block.info_3"}}</li> 9 + <li>{{ctx.Locale.Tr "user.block.info_4"}}</li> 10 + <li>{{ctx.Locale.Tr "user.block.info_5"}}</li> 11 + <li>{{ctx.Locale.Tr "user.block.info_6"}}</li> 12 + <li>{{ctx.Locale.Tr "user.block.info_7"}}</li> 13 + </ul> 14 + </div> 15 + <div class="ui segment"> 16 + <form class="ui form ignore-dirty" action="{{$.Link}}" method="post"> 17 + {{.CsrfTokenHtml}} 18 + <input type="hidden" name="action" value="block" /> 19 + <div id="search-user-box" class="field ui fluid search input"> 20 + <input class="prompt tw-mr-2" name="blockee" placeholder="{{ctx.Locale.Tr "search.user_kind"}}" autocomplete="off" required> 21 + <button class="ui red button">{{ctx.Locale.Tr "user.block.block"}}</button> 22 + </div> 23 + <div class="field"> 24 + <label>{{ctx.Locale.Tr "user.block.note.title"}}</label> 25 + <input name="note"> 26 + <p class="help">{{ctx.Locale.Tr "user.block.note.info"}}</p> 27 + </div> 28 + </form> 29 + </div> 30 + <h4 class="ui top attached header"> 31 + {{ctx.Locale.Tr "user.block.list"}} 32 + </h4> 33 + <div class="ui attached segment"> 34 + <div class="flex-list"> 35 + {{range .UserBlocks}} 36 + <div class="flex-item"> 37 + <div class="flex-item-leading"> 38 + {{ctx.AvatarUtils.Avatar .Blockee}} 39 + </div> 40 + <div class="flex-item-main"> 41 + <div class="flex-item-title"> 42 + <a class="item" href="{{.Blockee.HTMLURL}}">{{.Blockee.GetDisplayName}}</a> 43 + </div> 44 + {{if .Note}} 45 + <div class="flex-item-body"> 46 + <i>{{ctx.Locale.Tr "user.block.note"}}:</i> {{.Note}} 47 + </div> 48 + {{end}} 49 + </div> 50 + <div class="flex-item-trailing"> 51 + <button class="ui compact mini button show-modal" data-modal="#block-user-note-modal" data-modal-modal-blockee="{{.Blockee.Name}}" data-modal-modal-note="{{.Note}}">{{ctx.Locale.Tr "user.block.note.edit"}}</button> 52 + <form action="{{$.Link}}" method="post"> 53 + {{$.CsrfTokenHtml}} 54 + <input type="hidden" name="action" value="unblock" /> 55 + <input type="hidden" name="blockee" value="{{.Blockee.Name}}" /> 56 + <button class="ui compact mini button">{{ctx.Locale.Tr "user.block.unblock"}}</button> 57 + </form> 58 + </div> 59 + </div> 60 + {{else}} 61 + <div class="item">{{ctx.Locale.Tr "user.block.list.none"}}</div> 62 + {{end}} 63 + </div> 64 + </div> 65 + <div class="ui small modal" id="block-user-note-modal"> 66 + <div class="header">{{ctx.Locale.Tr "user.block.note.edit"}}</div> 67 + <div class="content"> 68 + <form class="ui form" action="{{$.Link}}" method="post"> 69 + {{.CsrfTokenHtml}} 70 + <input type="hidden" name="action" value="note" /> 71 + <input type="hidden" name="blockee" class="modal-blockee" /> 72 + <div class="field"> 73 + <label>{{ctx.Locale.Tr "user.block.note.title"}}</label> 74 + <input name="note" class="modal-note" /> 75 + <p class="help">{{ctx.Locale.Tr "user.block.note.info"}}</p> 76 + </div> 77 + <div class="text right actions"> 78 + <button class="ui cancel button">{{ctx.Locale.Tr "cancel"}}</button> 79 + <button class="ui primary button">{{ctx.Locale.Tr "save"}}</button> 80 + </div> 81 + </form> 82 + </div> 83 + </div>
+3 -3
templates/shared/user/profile_big_avatar.tmpl
··· 18 18 {{svg "octicon-gear" 18}} 19 19 </a> 20 20 {{end}}</span> 21 - <div class="gt-mt-3"> 22 - <a class="muted" href="{{.ContextUser.HomeLink}}?tab=followers">{{svg "octicon-person" 18 "gt-mr-2"}}{{.NumFollowers}} {{ctx.Locale.Tr "user.followers"}}</a> · <a class="muted" href="{{.ContextUser.HomeLink}}?tab=following">{{.NumFollowing}} {{ctx.Locale.Tr "user.following"}}</a> 21 + <div class="tw-mt-2"> 22 + <a class="muted" href="{{.ContextUser.HomeLink}}?tab=followers">{{svg "octicon-person" 18 "tw-mr-1"}}{{.NumFollowers}} {{ctx.Locale.Tr "user.followers"}}</a> · <a class="muted" href="{{.ContextUser.HomeLink}}?tab=following">{{.NumFollowing}} {{ctx.Locale.Tr "user.following"}}</a> 23 23 {{if .EnableFeed}} 24 - <a href="{{.ContextUser.HomeLink}}.rss"><i class="ui text grey gt-ml-3" data-tooltip-content="{{ctx.Locale.Tr "rss_feed"}}">{{svg "octicon-rss" 18}}</i></a> 24 + <a href="{{.ContextUser.HomeLink}}.rss"><i class="ui text grey tw-ml-2" data-tooltip-content="{{ctx.Locale.Tr "rss_feed"}}">{{svg "octicon-rss" 18}}</i></a> 25 25 {{end}} 26 26 </div> 27 27 </div>
+2 -2
templates/shared/variables/variable_list.tmpl
··· 32 32 <span class="color-text-light-2"> 33 33 {{ctx.Locale.Tr "settings.added_on" (DateTime "short" .CreatedUnix)}} 34 34 </span> 35 - <button class="btn interact-bg gt-p-3 show-modal" 35 + <button class="btn interact-bg tw-p-2 show-modal" 36 36 data-tooltip-content="{{ctx.Locale.Tr "actions.variables.edit"}}" 37 37 data-modal="#edit-variable-modal" 38 38 data-modal-form.action="{{$.Link}}/{{.ID}}/edit" ··· 42 42 > 43 43 {{svg "octicon-pencil"}} 44 44 </button> 45 - <button class="btn interact-bg gt-p-3 link-action" 45 + <button class="btn interact-bg tw-p-2 link-action" 46 46 data-tooltip-content="{{ctx.Locale.Tr "actions.variables.deletion"}}" 47 47 data-url="{{$.Link}}/{{.ID}}/delete" 48 48 data-modal-confirm="{{ctx.Locale.Tr "actions.variables.deletion.description"}}"
+4 -4
templates/status/500.tmpl
··· 28 28 </div> 29 29 </div> 30 30 </nav> 31 - <div class="divider gt-my-0"></div> 31 + <div class="divider tw-my-0"></div> 32 32 <div role="main" class="page-content status-page-500"> 33 33 <div class="ui container" > 34 34 <style> .ui.message.flash-message { text-align: left; } </style> 35 35 {{template "base/alert" .}} 36 36 </div> 37 37 <div class="ui container center"> 38 - <h1 class="gt-mt-5 error-code">500</h1> 38 + <h1 class="tw-mt-8 error-code">500</h1> 39 39 <p>{{ctx.Locale.Tr "error.server_internal"}}</p> 40 40 </div> 41 41 <div class="divider"></div> 42 - <div class="ui container gt-my-5"> 42 + <div class="ui container tw-my-8"> 43 43 {{if .ErrorMsg}} 44 44 <p>{{ctx.Locale.Tr "error.occurred"}}:</p> 45 45 <pre class="tw-whitespace-pre-wrap tw-break-all">{{.ErrorMsg}}</pre> 46 46 {{end}} 47 - <div class="center gt-mt-5"> 47 + <div class="center tw-mt-8"> 48 48 {{if or .SignedUser.IsAdmin .ShowFooterVersion}}<p>{{ctx.Locale.Tr "admin.config.app_ver"}}: {{AppVer}}</p>{{end}} 49 49 {{if .SignedUser.IsAdmin}}<p>{{ctx.Locale.Tr "error.report_message"}}</p>{{end}} 50 50 </div>
+2 -2
templates/user/auth/signin_inner.tmpl
··· 53 53 <div class="divider divider-text"> 54 54 {{ctx.Locale.Tr "sign_in_or"}} 55 55 </div> 56 - <div id="oauth2-login-navigator" class="gt-py-2"> 56 + <div id="oauth2-login-navigator" class="tw-py-1"> 57 57 <div class="tw-flex tw-flex-col tw-justify-center"> 58 58 <div id="oauth2-login-navigator-inner" class="tw-flex tw-flex-col tw-flex-wrap tw-items-center tw-gap-2"> 59 59 {{range $provider := .OAuth2Providers}} 60 - <a class="{{$provider.Name}} ui button tw-flex tw-items-center tw-justify-center gt-py-3 tw-w-full oauth-login-link" href="{{AppSubUrl}}/user/oauth2/{{$provider.DisplayName}}"> 60 + <a class="{{$provider.Name}} ui button tw-flex tw-items-center tw-justify-center tw-py-2 tw-w-full oauth-login-link" href="{{AppSubUrl}}/user/oauth2/{{$provider.DisplayName}}"> 61 61 {{$provider.IconHTML 28}} 62 62 {{ctx.Locale.Tr "sign_in_with_provider" $provider.DisplayName}} 63 63 </a>
+2 -2
templates/user/auth/signup_inner.tmpl
··· 58 58 <div class="divider divider-text"> 59 59 {{ctx.Locale.Tr "sign_in_or"}} 60 60 </div> 61 - <div id="oauth2-login-navigator" class="gt-py-2"> 61 + <div id="oauth2-login-navigator" class="tw-py-1"> 62 62 <div class="tw-flex tw-flex-col tw-justify-center"> 63 63 <div id="oauth2-login-navigator-inner" class="tw-flex tw-flex-col tw-flex-wrap tw-items-center tw-gap-2"> 64 64 {{range $provider := .OAuth2Providers}} 65 - <a class="{{$provider.Name}} ui button tw-flex tw-items-center tw-justify-center gt-py-3 tw-w-full oauth-login-link" href="{{AppSubUrl}}/user/oauth2/{{$provider.DisplayName}}"> 65 + <a class="{{$provider.Name}} ui button tw-flex tw-items-center tw-justify-center tw-py-2 tw-w-full oauth-login-link" href="{{AppSubUrl}}/user/oauth2/{{$provider.DisplayName}}"> 66 66 {{$provider.IconHTML 28}} 67 67 {{ctx.Locale.Tr "sign_in_with_provider" $provider.DisplayName}} 68 68 </a>
+1 -1
templates/user/auth/webauthn.tmpl
··· 10 10 {{template "base/alert" .}} 11 11 <p>{{ctx.Locale.Tr "webauthn_sign_in"}}</p> 12 12 </div> 13 - <div class="ui attached segment tw-flex tw-items-center tw-justify-center tw-gap-1 gt-py-3"> 13 + <div class="ui attached segment tw-flex tw-items-center tw-justify-center tw-gap-1 tw-py-2"> 14 14 <div class="is-loading tw-w-[40px] tw-h-[40px]"></div> 15 15 {{ctx.Locale.Tr "webauthn_press_button"}} 16 16 </div>
+1 -1
templates/user/auth/webauthn_error.tmpl
··· 1 1 <div id="webauthn-error" class="ui negative message gt-hidden"> 2 2 <div class="header">{{ctx.Locale.Tr "webauthn_error"}}</div> 3 - <div id="webauthn-error-msg" class="gt-pt-3"></div> 3 + <div id="webauthn-error-msg" class="tw-pt-2"></div> 4 4 <div class="gt-hidden"> 5 5 <div data-webauthn-error-msg="browser">{{ctx.Locale.Tr "webauthn_unsupported_browser"}}</div> 6 6 <div data-webauthn-error-msg="unknown">{{ctx.Locale.Tr "webauthn_error_unknown"}}</div>
+1 -1
templates/user/dashboard/feeds.tmpl
··· 119 119 {{end}} 120 120 </div> 121 121 <div class="flex-item-trailing"> 122 - {{svg (printf "octicon-%s" (ActionIcon .GetOpType)) 32 "text grey gt-mr-2"}} 122 + {{svg (printf "octicon-%s" (ActionIcon .GetOpType)) 32 "text grey tw-mr-1"}} 123 123 </div> 124 124 </div> 125 125 {{end}}
+2 -2
templates/user/dashboard/issues.tmpl
··· 38 38 <div class="list-header"> 39 39 <div class="small-menu-items ui compact tiny menu list-header-toggle"> 40 40 <a class="item{{if not .IsShowClosed}} active{{end}}" href="?type={{$.ViewType}}&sort={{$.SortType}}&state=open&q={{$.Keyword}}"> 41 - {{svg "octicon-issue-opened" 16 "gt-mr-3"}} 41 + {{svg "octicon-issue-opened" 16 "tw-mr-2"}} 42 42 {{ctx.Locale.PrettyNumber .IssueStats.OpenCount}}&nbsp;{{ctx.Locale.Tr "repo.issues.open_title"}} 43 43 </a> 44 44 <a class="item{{if .IsShowClosed}} active{{end}}" href="?type={{$.ViewType}}&sort={{$.SortType}}&state=closed&q={{$.Keyword}}"> 45 - {{svg "octicon-issue-closed" 16 "gt-mr-3"}} 45 + {{svg "octicon-issue-closed" 16 "tw-mr-2"}} 46 46 {{ctx.Locale.PrettyNumber .IssueStats.ClosedCount}}&nbsp;{{ctx.Locale.Tr "repo.issues.closed_title"}} 47 47 </a> 48 48 </div>
+4 -4
templates/user/dashboard/milestones.tmpl
··· 37 37 <div class="list-header"> 38 38 <div class="small-menu-items ui compact tiny menu list-header-toggle"> 39 39 <a class="item{{if not .IsShowClosed}} active{{end}}" href="?repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort={{$.SortType}}&state=open&q={{$.Keyword}}"> 40 - {{svg "octicon-milestone" 16 "gt-mr-3"}} 40 + {{svg "octicon-milestone" 16 "tw-mr-2"}} 41 41 {{ctx.Locale.PrettyNumber .MilestoneStats.OpenCount}}&nbsp;{{ctx.Locale.Tr "repo.issues.open_title"}} 42 42 </a> 43 43 <a class="item{{if .IsShowClosed}} active{{end}}" href="?repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort={{$.SortType}}&state=closed&q={{$.Keyword}}"> 44 - {{svg "octicon-check" 16 "gt-mr-3"}} 44 + {{svg "octicon-check" 16 "tw-mr-2"}} 45 45 {{ctx.Locale.PrettyNumber .MilestoneStats.ClosedCount}}&nbsp;{{ctx.Locale.Tr "repo.issues.closed_title"}} 46 46 </a> 47 47 </div> ··· 72 72 {{range .Milestones}} 73 73 <li class="milestone-card"> 74 74 <div class="milestone-header"> 75 - <h3 class="flex-text-block gt-m-0"> 75 + <h3 class="flex-text-block tw-m-0"> 76 76 <span class="ui large label"> 77 77 {{.Repo.FullName}} 78 78 </span> ··· 80 80 <a class="muted" href="{{.Repo.Link}}/milestone/{{.ID}}">{{.Name}}</a> 81 81 </h3> 82 82 <div class="tw-flex tw-items-center"> 83 - <span class="gt-mr-3">{{.Completeness}}%</span> 83 + <span class="tw-mr-2">{{.Completeness}}%</span> 84 84 <progress value="{{.Completeness}}" max="100"></progress> 85 85 </div> 86 86 </div>
+14 -14
templates/user/notification/notification_div.tmpl
··· 1 1 <div role="main" aria-label="{{.Title}}" class="page-content user notification" id="notification_div" data-sequence-number="{{.SequenceNumber}}"> 2 2 <div class="ui container"> 3 3 {{$notificationUnreadCount := call .NotificationUnreadCount}} 4 - <div class="tw-flex tw-items-center tw-justify-between gt-mb-4"> 4 + <div class="tw-flex tw-items-center tw-justify-between tw-mb-4"> 5 5 <div class="small-menu-items ui compact tiny menu"> 6 6 <a class="{{if eq .Status 1}}active {{end}}item" href="{{AppSubUrl}}/notifications?q=unread"> 7 7 {{ctx.Locale.Tr "notification.unread"}} ··· 15 15 <form action="{{AppSubUrl}}/notifications/purge" method="post"> 16 16 {{$.CsrfTokenHtml}} 17 17 <div class="{{if not $notificationUnreadCount}}gt-hidden{{end}}"> 18 - <button class="ui mini button primary gt-mr-0" title="{{ctx.Locale.Tr "notification.mark_all_as_read"}}"> 18 + <button class="ui mini button primary tw-mr-0" title="{{ctx.Locale.Tr "notification.mark_all_as_read"}}"> 19 19 {{svg "octicon-checklist"}} 20 20 </button> 21 21 </div> 22 22 </form> 23 23 {{end}} 24 24 </div> 25 - <div class="gt-p-0"> 25 + <div class="tw-p-0"> 26 26 <div id="notification_table"> 27 27 {{if not .Notifications}} 28 - <div class="tw-flex tw-items-center tw-flex-col gt-p-4"> 29 - {{svg "octicon-inbox" 56 "gt-mb-4"}} 28 + <div class="tw-flex tw-items-center tw-flex-col tw-p-4"> 29 + {{svg "octicon-inbox" 56 "tw-mb-4"}} 30 30 {{if eq .Status 1}} 31 31 {{ctx.Locale.Tr "notification.no_unread"}} 32 32 {{else}} ··· 35 35 </div> 36 36 {{else}} 37 37 {{range $notification := .Notifications}} 38 - <div class="notifications-item tw-flex tw-items-center tw-flex-wrap tw-gap-2 gt-p-3" id="notification_{{.ID}}" data-status="{{.Status}}"> 39 - <div class="notifications-icon gt-ml-3 gt-mr-2 tw-self-start gt-mt-2"> 38 + <div class="notifications-item tw-flex tw-items-center tw-flex-wrap tw-gap-2 tw-p-2" id="notification_{{.ID}}" data-status="{{.Status}}"> 39 + <div class="notifications-icon tw-ml-2 tw-mr-1 tw-self-start tw-mt-1"> 40 40 {{if .Issue}} 41 41 {{template "shared/issueicon" .Issue}} 42 42 {{else}} ··· 47 47 <div class="notifications-top-row tw-text-13"> 48 48 {{.Repository.FullName}} {{if .Issue}}<span class="text light-3">#{{.Issue.Index}}</span>{{end}} 49 49 {{if eq .Status 3}} 50 - {{svg "octicon-pin" 13 "text blue gt-mt-1 gt-ml-2"}} 50 + {{svg "octicon-pin" 13 "text blue tw-mt-0.5 tw-ml-1"}} 51 51 {{end}} 52 52 </div> 53 - <div class="notifications-bottom-row tw-text-16 gt-py-1"> 53 + <div class="notifications-bottom-row tw-text-16 tw-py-0.5"> 54 54 <span class="issue-title"> 55 55 {{if .Issue}} 56 56 {{.Issue.Title | RenderEmoji $.Context | RenderCodeBlock}} ··· 60 60 </span> 61 61 </div> 62 62 </a> 63 - <div class="notifications-updated tw-items-center gt-mr-3"> 63 + <div class="notifications-updated tw-items-center tw-mr-2"> 64 64 {{if .Issue}} 65 65 {{TimeSinceUnix .Issue.UpdatedUnix ctx.Locale}} 66 66 {{else}} 67 67 {{TimeSinceUnix .UpdatedUnix ctx.Locale}} 68 68 {{end}} 69 69 </div> 70 - <div class="notifications-buttons tw-items-center tw-justify-end tw-gap-1 gt-px-2"> 70 + <div class="notifications-buttons tw-items-center tw-justify-end tw-gap-1 tw-px-1"> 71 71 {{if ne .Status 3}} 72 72 <form action="{{AppSubUrl}}/notifications/status" method="post"> 73 73 {{$.CsrfTokenHtml}} 74 74 <input type="hidden" name="notification_id" value="{{.ID}}"> 75 75 <input type="hidden" name="status" value="pinned"> 76 - <button class="btn interact-bg gt-p-3" title="{{ctx.Locale.Tr "notification.pin"}}" 76 + <button class="btn interact-bg tw-p-2" title="{{ctx.Locale.Tr "notification.pin"}}" 77 77 data-url="{{AppSubUrl}}/notifications/status" 78 78 data-status="pinned" 79 79 data-page="{{$.Page.Paginater.Current}}" ··· 89 89 <input type="hidden" name="notification_id" value="{{.ID}}"> 90 90 <input type="hidden" name="status" value="read"> 91 91 <input type="hidden" name="page" value="{{$.Page.Paginater.Current}}"> 92 - <button class="btn interact-bg gt-p-3" title="{{ctx.Locale.Tr "notification.mark_as_read"}}" 92 + <button class="btn interact-bg tw-p-2" title="{{ctx.Locale.Tr "notification.mark_as_read"}}" 93 93 data-url="{{AppSubUrl}}/notifications/status" 94 94 data-status="read" 95 95 data-page="{{$.Page.Paginater.Current}}" ··· 104 104 <input type="hidden" name="notification_id" value="{{.ID}}"> 105 105 <input type="hidden" name="status" value="unread"> 106 106 <input type="hidden" name="page" value="{{$.Page.Paginater.Current}}"> 107 - <button class="btn interact-bg gt-p-3" title="{{ctx.Locale.Tr "notification.mark_as_unread"}}" 107 + <button class="btn interact-bg tw-p-2" title="{{ctx.Locale.Tr "notification.mark_as_unread"}}" 108 108 data-url="{{AppSubUrl}}/notifications/status" 109 109 data-status="unread" 110 110 data-page="{{$.Page.Paginater.Current}}"
+2 -2
templates/user/notification/notification_subscriptions.tmpl
··· 18 18 {{ctx.Locale.Tr "all"}} 19 19 </a> 20 20 <a class="{{if eq .State "open"}}active {{end}}item" href="?sort={{$.SortType}}&state=open&issueType={{$.IssueType}}&labels={{$.Labels}}"> 21 - {{svg "octicon-issue-opened" 16 "gt-mr-3"}} 21 + {{svg "octicon-issue-opened" 16 "tw-mr-2"}} 22 22 {{ctx.Locale.Tr "repo.issues.open_title"}} 23 23 </a> 24 24 <a class="{{if eq .State "closed"}}active {{end}}item" href="?sort={{$.SortType}}&state=closed&issueType={{$.IssueType}}&labels={{$.Labels}}"> 25 - {{svg "octicon-issue-closed" 16 "gt-mr-3"}} 25 + {{svg "octicon-issue-closed" 16 "tw-mr-2"}} 26 26 {{ctx.Locale.Tr "repo.issues.closed_title"}} 27 27 </a> 28 28 </div>
+1 -1
templates/user/overview/package_versions.tmpl
··· 14 14 {{template "shared/user/profile_big_avatar" .}} 15 15 </div> 16 16 <div class="ui twelve wide column"> 17 - <div class="gt-mb-4"> 17 + <div class="tw-mb-4"> 18 18 {{template "user/overview/header" .}} 19 19 </div> 20 20 {{template "package/shared/versionlist" .}}
+1 -1
templates/user/overview/packages.tmpl
··· 14 14 {{template "shared/user/profile_big_avatar" .}} 15 15 </div> 16 16 <div class="ui twelve wide column"> 17 - <div class="gt-mb-4"> 17 + <div class="tw-mb-4"> 18 18 {{template "user/overview/header" .}} 19 19 </div> 20 20 {{template "package/shared/list" .}}
+1 -1
templates/user/profile.tmpl
··· 7 7 {{template "shared/user/profile_big_avatar" .}} 8 8 </div> 9 9 <div class="ui twelve wide column"> 10 - <div class="gt-mb-4"> 10 + <div class="tw-mb-4"> 11 11 {{template "user/overview/header" .}} 12 12 </div> 13 13
+2 -2
templates/user/settings/account.tmpl
··· 42 42 <div class="ui list"> 43 43 {{if $.EnableNotifyMail}} 44 44 <div class="item"> 45 - <div class="gt-mb-3">{{ctx.Locale.Tr "settings.email_desc"}}</div> 45 + <div class="tw-mb-2">{{ctx.Locale.Tr "settings.email_desc"}}</div> 46 46 <form action="{{AppSubUrl}}/user/settings/account/email" class="ui form" method="post"> 47 47 {{$.CsrfTokenHtml}} 48 48 <input name="_method" type="hidden" value="NOTIFICATION"> ··· 96 96 </form> 97 97 </div> 98 98 {{end}} 99 - <div class="content gt-py-3"> 99 + <div class="content tw-py-2"> 100 100 <strong>{{.Email}}</strong> 101 101 {{if .IsPrimary}} 102 102 <div class="ui primary label">{{ctx.Locale.Tr "settings.primary"}}</div>
+7 -7
templates/user/settings/applications.tmpl
··· 18 18 <div class="flex-item-main"> 19 19 <details> 20 20 <summary><span class="flex-item-title">{{.Name}}</span></summary> 21 - <p class="gt-my-2"> 21 + <p class="tw-my-1"> 22 22 {{ctx.Locale.Tr "settings.repo_and_org_access"}}: 23 23 {{if .DisplayPublicOnly}} 24 24 {{ctx.Locale.Tr "settings.permissions_public_only"}} ··· 26 26 {{ctx.Locale.Tr "settings.permissions_access_all"}} 27 27 {{end}} 28 28 </p> 29 - <p class="gt-my-2">{{ctx.Locale.Tr "settings.permissions_list"}}</p> 30 - <ul class="gt-my-2"> 29 + <p class="tw-my-1">{{ctx.Locale.Tr "settings.permissions_list"}}</p> 30 + <ul class="tw-my-1"> 31 31 {{range .Scope.StringSlice}} 32 32 {{if (ne . $.AccessTokenScopePublicOnly)}} 33 33 <li>{{.}}</li> ··· 41 41 </div> 42 42 <div class="flex-item-trailing"> 43 43 <button class="ui red tiny button delete-button" data-modal-id="delete-token" data-url="{{$.Link}}/delete" data-id="{{.ID}}"> 44 - {{svg "octicon-trash" 16 "gt-mr-2"}} 44 + {{svg "octicon-trash" 16 "tw-mr-1"}} 45 45 {{ctx.Locale.Tr "settings.delete_token"}} 46 46 </button> 47 47 </div> ··· 62 62 <div class="field"> 63 63 <label>{{ctx.Locale.Tr "settings.repo_and_org_access"}}</label> 64 64 <label class="tw-cursor-pointer"> 65 - <input class="enable-system gt-mt-2 gt-mr-2" type="radio" name="scope" value="{{$.AccessTokenScopePublicOnly}}"> 65 + <input class="enable-system tw-mt-1 tw-mr-1" type="radio" name="scope" value="{{$.AccessTokenScopePublicOnly}}"> 66 66 {{ctx.Locale.Tr "settings.permissions_public_only"}} 67 67 </label> 68 68 <label class="tw-cursor-pointer"> 69 - <input class="enable-system gt-mt-2 gt-mr-2" type="radio" name="scope" value="" checked> 69 + <input class="enable-system tw-mt-1 tw-mr-1" type="radio" name="scope" value="" checked> 70 70 {{ctx.Locale.Tr "settings.permissions_access_all"}} 71 71 </label> 72 72 </div> 73 73 <details class="ui optional field"> 74 - <summary class="gt-pb-4 gt-pl-2"> 74 + <summary class="tw-pb-4 tw-pl-1"> 75 75 {{ctx.Locale.Tr "settings.select_permissions"}} 76 76 </summary> 77 77 <p class="activity meta">
+1 -1
templates/user/settings/applications_oauth2_edit_form.tmpl
··· 26 26 <form class="ui form ignore-dirty" action="{{.FormActionPath}}/regenerate_secret" method="post"> 27 27 {{.CsrfTokenHtml}} 28 28 {{ctx.Locale.Tr "settings.oauth2_regenerate_secret_hint"}} 29 - <button class="ui mini button gt-ml-3" type="submit">{{ctx.Locale.Tr "settings.oauth2_regenerate_secret"}}</button> 29 + <button class="ui mini button tw-ml-2" type="submit">{{ctx.Locale.Tr "settings.oauth2_regenerate_secret"}}</button> 30 30 </form> 31 31 </div> 32 32 </div>
+2 -2
templates/user/settings/applications_oauth2_list.tmpl
··· 21 21 <span class="ui basic label" data-tooltip-content="{{ctx.Locale.Tr "settings.oauth2_application_locked"}}">{{ctx.Locale.Tr "locked"}}</span> 22 22 {{else}} 23 23 <a href="{{$.Link}}/oauth2/{{.ID}}" class="ui primary tiny button"> 24 - {{svg "octicon-pencil" 16 "gt-mr-2"}} 24 + {{svg "octicon-pencil" 16 "tw-mr-1"}} 25 25 {{ctx.Locale.Tr "settings.oauth2_application_edit"}} 26 26 </a> 27 27 <button class="ui red tiny button delete-button" data-modal-id="remove-gitea-oauth2-application" 28 28 data-url="{{$.Link}}/oauth2/{{.ID}}/delete"> 29 - {{svg "octicon-trash" 16 "gt-mr-2"}} 29 + {{svg "octicon-trash" 16 "tw-mr-1"}} 30 30 {{ctx.Locale.Tr "settings.delete_key"}} 31 31 </button> 32 32 {{end}}
+1 -1
templates/user/settings/grants_oauth2.tmpl
··· 29 29 30 30 <div class="ui g-modal-confirm delete modal" id="revoke-gitea-oauth2-grant"> 31 31 <div class="header"> 32 - {{svg "octicon-shield" 16 "gt-mr-2"}} 32 + {{svg "octicon-shield" 16 "tw-mr-1"}} 33 33 {{ctx.Locale.Tr "settings.revoke_oauth2_grant"}} 34 34 </div> 35 35 <div class="content">
+1 -1
templates/user/settings/keys_gpg.tmpl
··· 5 5 </div> 6 6 </h4> 7 7 <div class="ui attached segment"> 8 - <div class="{{if not .HasGPGError}}gt-hidden{{end}} gt-mb-4" id="add-gpg-key-panel"> 8 + <div class="{{if not .HasGPGError}}gt-hidden{{end}} tw-mb-4" id="add-gpg-key-panel"> 9 9 <form class="ui form{{if .HasGPGError}} error{{end}}" action="{{.Link}}" method="post"> 10 10 {{.CsrfTokenHtml}} 11 11 <input type="hidden" name="title" value="none">
+1 -1
templates/user/settings/keys_ssh.tmpl
··· 7 7 </div> 8 8 </h4> 9 9 <div class="ui attached segment"> 10 - <div class="{{if not .HasSSHError}}gt-hidden{{end}} gt-mb-4" id="add-ssh-key-panel"> 10 + <div class="{{if not .HasSSHError}}gt-hidden{{end}} tw-mb-4" id="add-ssh-key-panel"> 11 11 <form class="ui form" action="{{.Link}}" method="post"> 12 12 {{.CsrfTokenHtml}} 13 13 <div class="field {{if .Err_Title}}error{{end}}">
+2 -2
templates/user/settings/profile.tmpl
··· 106 106 <label>{{ctx.Locale.Tr "settings.lookup_avatar_by_mail"}}</label> 107 107 </div> 108 108 </div> 109 - <div class="field gt-pl-4 {{if .Err_Gravatar}}error{{end}}"> 109 + <div class="field tw-pl-4 {{if .Err_Gravatar}}error{{end}}"> 110 110 <label for="gravatar">Avatar {{ctx.Locale.Tr "email"}}</label> 111 111 <input id="gravatar" name="gravatar" value="{{.SignedUser.AvatarEmail}}"> 112 112 </div> ··· 119 119 </div> 120 120 </div> 121 121 122 - <div class="inline field gt-pl-4"> 122 + <div class="inline field tw-pl-4"> 123 123 <label for="new-avatar">{{ctx.Locale.Tr "settings.choose_new_avatar"}}</label> 124 124 <input id="new-avatar" name="avatar" type="file" accept="image/png,image/jpeg,image/gif,image/webp"> 125 125 </div>
+10 -10
templates/user/settings/repos.tmpl
··· 9 9 <div class="ui middle aligned divided list"> 10 10 {{range $dirI, $dir := .Dirs}} 11 11 {{$repo := index $.ReposMap $dir}} 12 - <div class="item {{if not $repo}}gt-py-2{{end}}">{{/* if not repo, then there are "adapt" buttons, so the padding shouldn't be that default large*/}} 12 + <div class="item {{if not $repo}}tw-py-1{{end}}">{{/* if not repo, then there are "adapt" buttons, so the padding shouldn't be that default large*/}} 13 13 <div class="content"> 14 14 {{if $repo}} 15 15 {{if $repo.IsPrivate}} ··· 30 30 <span><a href="{{$repo.BaseRepo.Link}}">{{$repo.BaseRepo.OwnerName}}/{{$repo.BaseRepo.Name}}</a></span> 31 31 {{end}} 32 32 {{else}} 33 - <span class="icon tw-inline-block gt-pt-3">{{svg "octicon-file-directory-fill"}}</span> 34 - <span class="name tw-inline-block gt-pt-3">{{$.ContextUser.Name}}/{{$dir}}</span> 33 + <span class="icon tw-inline-block tw-pt-2">{{svg "octicon-file-directory-fill"}}</span> 34 + <span class="name tw-inline-block tw-pt-2">{{$.ContextUser.Name}}/{{$dir}}</span> 35 35 <div class="tw-float-right"> 36 36 {{if $.allowAdopt}} 37 - <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> 37 + <button class="ui button primary show-modal tw-p-2" 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> 38 38 <div class="ui g-modal-confirm modal" id="adopt-unadopted-modal-{{$dirI}}"> 39 39 <div class="header"> 40 40 <span class="label">{{ctx.Locale.Tr "repo.adopt_preexisting"}}</span> ··· 51 51 </div> 52 52 {{end}} 53 53 {{if $.allowDelete}} 54 - <button class="ui button red show-modal gt-p-3" data-modal="#delete-unadopted-modal-{{$dirI}}"><span class="icon">{{svg "octicon-x"}}</span><span class="label">{{ctx.Locale.Tr "repo.delete_preexisting_label"}}</span></button> 54 + <button class="ui button red show-modal tw-p-2" data-modal="#delete-unadopted-modal-{{$dirI}}"><span class="icon">{{svg "octicon-x"}}</span><span class="label">{{ctx.Locale.Tr "repo.delete_preexisting_label"}}</span></button> 55 55 <div class="ui g-modal-confirm modal" id="delete-unadopted-modal-{{$dirI}}"> 56 56 <div class="header"> 57 57 <span class="label">{{ctx.Locale.Tr "repo.delete_preexisting"}}</span> ··· 86 86 <div class="item"> 87 87 <div class="content"> 88 88 {{if .IsPrivate}} 89 - {{svg "octicon-lock" 16 "gt-mr-2 iconFloat text gold"}} 89 + {{svg "octicon-lock" 16 "tw-mr-1 iconFloat text gold"}} 90 90 {{else if .IsFork}} 91 - {{svg "octicon-repo-forked" 16 "gt-mr-2 iconFloat"}} 91 + {{svg "octicon-repo-forked" 16 "tw-mr-1 iconFloat"}} 92 92 {{else if .IsMirror}} 93 - {{svg "octicon-mirror" 16 "gt-mr-2 iconFloat"}} 93 + {{svg "octicon-mirror" 16 "tw-mr-1 iconFloat"}} 94 94 {{else if .IsTemplate}} 95 - {{svg "octicon-repo-template" 16 "gt-mr-2 iconFloat"}} 95 + {{svg "octicon-repo-template" 16 "tw-mr-1 iconFloat"}} 96 96 {{else}} 97 - {{svg "octicon-repo" 16 "gt-mr-2 iconFloat"}} 97 + {{svg "octicon-repo" 16 "tw-mr-1 iconFloat"}} 98 98 {{end}} 99 99 <a class="name" href="{{.Link}}">{{.OwnerName}}/{{.Name}}</a> 100 100 <span>{{FileSize .Size}}</span>
-98
web_src/css/helpers.css
··· 44 44 .interact-bg:hover { background: var(--color-hover) !important; } 45 45 .interact-bg:active { background: var(--color-active) !important; } 46 46 47 - .gt-m-0 { margin: 0 !important; } 48 - .gt-m-1 { margin: .125rem !important; } 49 - .gt-m-2 { margin: .25rem !important; } 50 - .gt-m-3 { margin: .5rem !important; } 51 - .gt-m-4 { margin: 1rem !important; } 52 - .gt-m-5 { margin: 2rem !important; } 53 - 54 - .gt-ml-0 { margin-left: 0 !important; } 55 - .gt-ml-1 { margin-left: .125rem !important; } 56 - .gt-ml-2 { margin-left: .25rem !important; } 57 - .gt-ml-3 { margin-left: .5rem !important; } 58 - .gt-ml-4 { margin-left: 1rem !important; } 59 - .gt-ml-5 { margin-left: 2rem !important; } 60 - 61 - .gt-mr-0 { margin-right: 0 !important; } 62 - .gt-mr-1 { margin-right: .125rem !important; } 63 - .gt-mr-2 { margin-right: .25rem !important; } 64 - .gt-mr-3 { margin-right: .5rem !important; } 65 - .gt-mr-4 { margin-right: 1rem !important; } 66 - .gt-mr-5 { margin-right: 2rem !important; } 67 - 68 - .gt-mt-0 { margin-top: 0 !important; } 69 - .gt-mt-1 { margin-top: .125rem !important; } 70 - .gt-mt-2 { margin-top: .25rem !important; } 71 - .gt-mt-3 { margin-top: .5rem !important; } 72 - .gt-mt-4 { margin-top: 1rem !important; } 73 - .gt-mt-5 { margin-top: 2rem !important; } 74 - 75 - .gt-mb-0 { margin-bottom: 0 !important; } 76 - .gt-mb-1 { margin-bottom: .125rem !important; } 77 - .gt-mb-2 { margin-bottom: .25rem !important; } 78 - .gt-mb-3 { margin-bottom: .5rem !important; } 79 - .gt-mb-4 { margin-bottom: 1rem !important; } 80 - .gt-mb-5 { margin-bottom: 2rem !important; } 81 - 82 - .gt-mx-0 { margin-left: 0 !important; margin-right: 0 !important; } 83 - .gt-mx-1 { margin-left: .125rem !important; margin-right: .125rem !important; } 84 - .gt-mx-2 { margin-left: .25rem !important; margin-right: .25rem !important; } 85 - .gt-mx-3 { margin-left: .5rem !important; margin-right: .5rem !important; } 86 - .gt-mx-4 { margin-left: 1rem !important; margin-right: 1rem !important; } 87 - .gt-mx-5 { margin-left: 2rem !important; margin-right: 2rem !important; } 88 - 89 - .gt-my-0 { margin-top: 0 !important; margin-bottom: 0 !important; } 90 - .gt-my-1 { margin-top: .125rem !important; margin-bottom: .125rem !important; } 91 - .gt-my-2 { margin-top: .25rem !important; margin-bottom: .25rem !important; } 92 - .gt-my-3 { margin-top: .5rem !important; margin-bottom: .5rem !important; } 93 - .gt-my-4 { margin-top: 1rem !important; margin-bottom: 1rem !important; } 94 - .gt-my-5 { margin-top: 2rem !important; margin-bottom: 2rem !important; } 95 - 96 - .gt-p-0 { padding: 0 !important; } 97 - .gt-p-1 { padding: .125rem !important; } 98 - .gt-p-2 { padding: .25rem !important; } 99 - .gt-p-3 { padding: .5rem !important; } 100 - .gt-p-4 { padding: 1rem !important; } 101 - .gt-p-5 { padding: 2rem !important; } 102 - 103 - .gt-pl-0 { padding-left: 0 !important; } 104 - .gt-pl-1 { padding-left: .125rem !important; } 105 - .gt-pl-2 { padding-left: .25rem !important; } 106 - .gt-pl-3 { padding-left: .5rem !important; } 107 - .gt-pl-4 { padding-left: 1rem !important; } 108 - .gt-pl-5 { padding-left: 2rem !important; } 109 - 110 - .gt-pr-0 { padding-right: 0 !important; } 111 - .gt-pr-1 { padding-right: .125rem !important; } 112 - .gt-pr-2 { padding-right: .25rem !important; } 113 - .gt-pr-3 { padding-right: .5rem !important; } 114 - .gt-pr-4 { padding-right: 1rem !important; } 115 - .gt-pr-5 { padding-right: 2rem !important; } 116 - 117 - .gt-pt-0 { padding-top: 0 !important; } 118 - .gt-pt-1 { padding-top: .125rem !important; } 119 - .gt-pt-2 { padding-top: .25rem !important; } 120 - .gt-pt-3 { padding-top: .5rem !important; } 121 - .gt-pt-4 { padding-top: 1rem !important; } 122 - .gt-pt-5 { padding-top: 2rem !important; } 123 - 124 - .gt-pb-0 { padding-bottom: 0 !important; } 125 - .gt-pb-1 { padding-bottom: .125rem !important; } 126 - .gt-pb-2 { padding-bottom: .25rem !important; } 127 - .gt-pb-3 { padding-bottom: .5rem !important; } 128 - .gt-pb-4 { padding-bottom: 1rem !important; } 129 - .gt-pb-5 { padding-bottom: 2rem !important; } 130 - 131 - .gt-px-0 { padding-left: 0 !important; padding-right: 0 !important; } 132 - .gt-px-1 { padding-left: .125rem !important; padding-right: .125rem !important; } 133 - .gt-px-2 { padding-left: .25rem !important; padding-right: .25rem !important; } 134 - .gt-px-3 { padding-left: .5rem !important; padding-right: .5rem !important; } 135 - .gt-px-4 { padding-left: 1rem !important; padding-right: 1rem !important; } 136 - .gt-px-5 { padding-left: 2rem !important; padding-right: 2rem !important; } 137 - 138 - .gt-py-0 { padding-top: 0 !important; padding-bottom: 0 !important; } 139 - .gt-py-1 { padding-top: .125rem !important; padding-bottom: .125rem !important; } 140 - .gt-py-2 { padding-top: .25rem !important; padding-bottom: .25rem !important; } 141 - .gt-py-3 { padding-top: .5rem !important; padding-bottom: .5rem !important; } 142 - .gt-py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; } 143 - .gt-py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; } 144 - 145 47 /* 146 48 gt-hidden must win all other "display: xxx !important" classes to get the chance to "hide" an element. 147 49 do not use:
+21 -21
web_src/js/components/DashboardRepoList.vue
··· 340 340 <template> 341 341 <div> 342 342 <div v-if="!isOrganization" class="ui secondary stackable menu"> 343 - <a :class="{item: true, active: tab === 'repos'}" @click="changeTab('repos')">{{ textMyRepos }} <span class="ui grey label gt-ml-3">{{ reposTotalCount }}</span></a> 344 - <a :class="{item: true, active: tab === 'organizations'}" @click="changeTab('organizations')">{{ textMyOrgs }} <span class="ui grey label gt-ml-3">{{ organizationsTotalCount }}</span></a> 343 + <a :class="{item: true, active: tab === 'repos'}" @click="changeTab('repos')">{{ textMyRepos }} <span class="ui grey label tw-ml-2">{{ reposTotalCount }}</span></a> 344 + <a :class="{item: true, active: tab === 'organizations'}" @click="changeTab('organizations')">{{ textMyOrgs }} <span class="ui grey label tw-ml-2">{{ organizationsTotalCount }}</span></a> 345 345 </div> 346 346 <div v-show="tab === 'repos'" class="ui tab active list dashboard-repos"> 347 - <h4 v-if="isOrganization" class="ui top attached gt-mt-4 tw-flex tw-items-center"> 347 + <h4 v-if="isOrganization" class="ui top attached tw-mt-4 tw-flex tw-items-center"> 348 348 <div class="tw-flex-1 tw-flex tw-items-center"> 349 349 {{ textMyRepos }} 350 - <span class="ui grey label gt-ml-3">{{ reposTotalCount }}</span> 350 + <span class="ui grey label tw-ml-2">{{ reposTotalCount }}</span> 351 351 </div> 352 352 </h4> 353 353 <div class="ui top attached segment repos-search gt-rounded-top"> ··· 363 363 otherwise if the "input" handles click event for intermediate status, it breaks the internal state--> 364 364 <input type="checkbox" class="hidden" v-bind.prop="checkboxArchivedFilterProps"> 365 365 <label> 366 - <svg-icon name="octicon-archive" :size="16" class-name="gt-mr-2"/> 366 + <svg-icon name="octicon-archive" :size="16" class-name="tw-mr-1"/> 367 367 {{ textShowArchived }} 368 368 </label> 369 369 </div> ··· 372 372 <div class="ui checkbox" ref="checkboxPrivateFilter" :title="checkboxPrivateFilterTitle"> 373 373 <input type="checkbox" class="hidden" v-bind.prop="checkboxPrivateFilterProps"> 374 374 <label> 375 - <svg-icon name="octicon-lock" :size="16" class-name="gt-mr-2"/> 375 + <svg-icon name="octicon-lock" :size="16" class-name="tw-mr-1"/> 376 376 {{ textShowPrivate }} 377 377 </label> 378 378 </div> ··· 407 407 </div> 408 408 <div v-if="repos.length" class="ui attached table segment tw-rounded-b"> 409 409 <ul class="repo-owner-name-list"> 410 - <li class="tw-flex tw-items-center gt-py-3" v-for="repo, index in repos" :class="{'active': index === activeIndex}" :key="repo.id"> 410 + <li class="tw-flex tw-items-center tw-py-2" v-for="repo, index in repos" :class="{'active': index === activeIndex}" :key="repo.id"> 411 411 <a class="repo-list-link muted" :href="repo.link"> 412 412 <svg-icon :name="repoIcon(repo)" :size="16" class-name="repo-list-icon"/> 413 413 <div class="text truncate">{{ repo.full_name }}</div> ··· 417 417 </a> 418 418 <a class="tw-flex tw-items-center" v-if="repo.latest_commit_status" :href="repo.latest_commit_status.TargetLink" :data-tooltip-content="repo.locale_latest_commit_status.State"> 419 419 <!-- the commit status icon logic is taken from templates/repo/commit_status.tmpl --> 420 - <svg-icon :name="statusIcon(repo.latest_commit_status.State)" :class-name="'gt-ml-3 commit-status icon text ' + statusColor(repo.latest_commit_status.State)" :size="16"/> 420 + <svg-icon :name="statusIcon(repo.latest_commit_status.State)" :class-name="'tw-ml-2 commit-status icon text ' + statusColor(repo.latest_commit_status.State)" :size="16"/> 421 421 </a> 422 422 </li> 423 423 </ul> 424 424 <div v-if="showMoreReposLink" class="tw-text-center"> 425 - <div class="divider gt-my-0"/> 426 - <div class="ui borderless pagination menu narrow gt-my-3"> 425 + <div class="divider tw-my-0"/> 426 + <div class="ui borderless pagination menu narrow tw-my-2"> 427 427 <a 428 - class="item navigation gt-py-2" :class="{'disabled': page === 1}" 428 + class="item navigation tw-py-1" :class="{'disabled': page === 1}" 429 429 @click="changePage(1)" :title="textFirstPage" 430 430 > 431 - <svg-icon name="gitea-double-chevron-left" :size="16" class-name="gt-mr-2"/> 431 + <svg-icon name="gitea-double-chevron-left" :size="16" class-name="tw-mr-1"/> 432 432 </a> 433 433 <a 434 - class="item navigation gt-py-2" :class="{'disabled': page === 1}" 434 + class="item navigation tw-py-1" :class="{'disabled': page === 1}" 435 435 @click="changePage(page - 1)" :title="textPreviousPage" 436 436 > 437 - <svg-icon name="octicon-chevron-left" :size="16" clsas-name="gt-mr-2"/> 437 + <svg-icon name="octicon-chevron-left" :size="16" clsas-name="tw-mr-1"/> 438 438 </a> 439 - <a class="active item gt-py-2">{{ page }}</a> 439 + <a class="active item tw-py-1">{{ page }}</a> 440 440 <a 441 441 class="item navigation" :class="{'disabled': page === finalPage}" 442 442 @click="changePage(page + 1)" :title="textNextPage" 443 443 > 444 - <svg-icon name="octicon-chevron-right" :size="16" class-name="gt-ml-2"/> 444 + <svg-icon name="octicon-chevron-right" :size="16" class-name="tw-ml-1"/> 445 445 </a> 446 446 <a 447 - class="item navigation gt-py-2" :class="{'disabled': page === finalPage}" 447 + class="item navigation tw-py-1" :class="{'disabled': page === finalPage}" 448 448 @click="changePage(finalPage)" :title="textLastPage" 449 449 > 450 - <svg-icon name="gitea-double-chevron-right" :size="16" class-name="gt-ml-2"/> 450 + <svg-icon name="gitea-double-chevron-right" :size="16" class-name="tw-ml-1"/> 451 451 </a> 452 452 </div> 453 453 </div> ··· 456 456 <div v-if="!isOrganization" v-show="tab === 'organizations'" class="ui tab active list dashboard-orgs"> 457 457 <div v-if="organizations.length" class="ui attached table segment tw-rounded-b"> 458 458 <ul class="repo-owner-name-list"> 459 - <li class="tw-flex tw-items-center gt-py-3" v-for="org in organizations" :key="org.name"> 459 + <li class="tw-flex tw-items-center tw-py-2" v-for="org in organizations" :key="org.name"> 460 460 <a class="repo-list-link muted" :href="subUrl + '/' + encodeURIComponent(org.name)"> 461 461 <svg-icon name="octicon-organization" :size="16" class-name="repo-list-icon"/> 462 462 <div class="text truncate">{{ org.name }}</div> ··· 466 466 </span> 467 467 </div> 468 468 </a> 469 - <div class="text light grey tw-flex tw-items-center gt-ml-3"> 469 + <div class="text light grey tw-flex tw-items-center tw-ml-2"> 470 470 {{ org.num_repos }} 471 - <svg-icon name="octicon-repo" :size="16" class-name="gt-ml-2 gt-mt-1"/> 471 + <svg-icon name="octicon-repo" :size="16" class-name="tw-ml-1 tw-mt-0.5"/> 472 472 </div> 473 473 </li> 474 474 </ul>
+1 -1
web_src/js/components/DiffCommitSelector.vue
··· 208 208 <div class="gt-ellipsis"> 209 209 {{ locale.show_all_commits }} 210 210 </div> 211 - <div class="gt-ellipsis text light-2 gt-mb-0"> 211 + <div class="gt-ellipsis text light-2 tw-mb-0"> 212 212 {{ locale.stats_num_commits }} 213 213 </div> 214 214 </div>
+4 -4
web_src/js/components/DiffFileList.vue
··· 36 36 }; 37 37 </script> 38 38 <template> 39 - <ol class="diff-stats gt-m-0" ref="root" v-if="store.fileListIsVisible"> 39 + <ol class="diff-stats tw-m-0" ref="root" v-if="store.fileListIsVisible"> 40 40 <li v-for="file in store.files" :key="file.NameHash"> 41 41 <div class="tw-font-semibold tw-flex tw-items-center pull-right"> 42 - <span v-if="file.IsBin" class="gt-ml-1 gt-mr-3">{{ store.binaryFileMessage }}</span> 42 + <span v-if="file.IsBin" class="tw-ml-0.5 tw-mr-2">{{ store.binaryFileMessage }}</span> 43 43 {{ file.IsBin ? '' : file.Addition + file.Deletion }} 44 - <span v-if="!file.IsBin" class="diff-stats-bar gt-mx-3" :data-tooltip-content="store.statisticsMessage.replace('%d', (file.Addition + file.Deletion)).replace('%d', file.Addition).replace('%d', file.Deletion)"> 44 + <span v-if="!file.IsBin" class="diff-stats-bar tw-mx-2" :data-tooltip-content="store.statisticsMessage.replace('%d', (file.Addition + file.Deletion)).replace('%d', file.Addition).replace('%d', file.Deletion)"> 45 45 <div class="diff-stats-add-bar" :style="{ 'width': diffStatsWidth(file.Addition, file.Deletion) }"/> 46 46 </span> 47 47 </div> ··· 49 49 <span :class="['status', diffTypeToString(file.Type)]" :data-tooltip-content="diffTypeToString(file.Type)">&nbsp;</span> 50 50 <a class="file gt-mono" :href="'#diff-' + file.NameHash">{{ file.Name }}</a> 51 51 </li> 52 - <li v-if="store.isIncomplete" class="gt-pt-2"> 52 + <li v-if="store.isIncomplete" class="tw-pt-1"> 53 53 <span class="file tw-flex tw-items-center tw-justify-between">{{ store.tooManyFilesMessage }} 54 54 <a :class="['ui', 'basic', 'tiny', 'button', store.isLoadingNewData ? 'disabled' : '']" @click.stop="loadMoreData">{{ store.showMoreMessage }}</a> 55 55 </span>
+1 -1
web_src/js/components/DiffFileTree.vue
··· 129 129 <div v-if="store.fileTreeIsVisible" class="diff-file-tree-items"> 130 130 <!-- only render the tree if we're visible. in many cases this is something that doesn't change very often --> 131 131 <DiffFileTreeItem v-for="item in fileTree" :key="item.name" :item="item"/> 132 - <div v-if="store.isIncomplete" class="gt-pt-2"> 132 + <div v-if="store.isIncomplete" class="tw-pt-1"> 133 133 <a :class="['ui', 'basic', 'tiny', 'button', store.isLoadingNewData ? 'disabled' : '']" @click.stop="loadMoreData">{{ store.showMoreMessage }}</a> 134 134 </div> 135 135 </div>
+3 -3
web_src/js/components/PullRequestMergeForm.vue
··· 108 108 <div class="field"> 109 109 <textarea name="merge_message_field" rows="5" :placeholder="mergeForm.mergeMessageFieldPlaceHolder" v-model="mergeMessageFieldValue"/> 110 110 <template v-if="mergeMessageFieldValue !== mergeForm.defaultMergeMessage"> 111 - <button @click.prevent="clearMergeMessage" class="btn gt-mt-2 gt-p-2 interact-fg" :data-tooltip-content="mergeForm.textClearMergeMessageHint"> 111 + <button @click.prevent="clearMergeMessage" class="btn tw-mt-1 tw-p-1 interact-fg" :data-tooltip-content="mergeForm.textClearMergeMessageHint"> 112 112 {{ mergeForm.textClearMergeMessage }} 113 113 </button> 114 114 </template> ··· 130 130 {{ mergeForm.textCancel }} 131 131 </button> 132 132 133 - <div class="ui checkbox gt-ml-2" v-if="mergeForm.isPullBranchDeletable && !autoMergeWhenSucceed"> 133 + <div class="ui checkbox tw-ml-1" v-if="mergeForm.isPullBranchDeletable && !autoMergeWhenSucceed"> 134 134 <input name="delete_branch_after_merge" type="checkbox" v-model="deleteBranchAfterMerge" id="delete-branch-after-merge"> 135 135 <label for="delete-branch-after-merge">{{ mergeForm.textDeleteBranch }}</label> 136 136 </div> ··· 177 177 </div> 178 178 179 179 <!-- the cancel auto merge button --> 180 - <form v-if="mergeForm.hasPendingPullRequestMerge" :action="mergeForm.baseLink+'/cancel_auto_merge'" method="post" class="gt-ml-4"> 180 + <form v-if="mergeForm.hasPendingPullRequestMerge" :action="mergeForm.baseLink+'/cancel_auto_merge'" method="post" class="tw-ml-4"> 181 181 <input type="hidden" name="_csrf" :value="csrfToken"> 182 182 <button class="ui button"> 183 183 {{ mergeForm.textAutoMergeCancelSchedule }}
+7 -7
web_src/js/components/RepoActionView.vue
··· 382 382 <button class="ui basic small compact button red" @click="cancelRun()" v-else-if="run.canCancel"> 383 383 {{ locale.cancel }} 384 384 </button> 385 - <button class="ui basic small compact button gt-mr-0 link-action" :data-url="`${run.link}/rerun`" v-else-if="run.canRerun"> 385 + <button class="ui basic small compact button tw-mr-0 link-action" :data-url="`${run.link}/rerun`" v-else-if="run.canRerun"> 386 386 {{ locale.rerun_all }} 387 387 </button> 388 388 </div> ··· 407 407 <a class="job-brief-item" :href="run.link+'/jobs/'+index" :class="parseInt(jobIndex) === index ? 'selected' : ''" v-for="(job, index) in run.jobs" :key="job.id" @mouseenter="onHoverRerunIndex = job.id" @mouseleave="onHoverRerunIndex = -1"> 408 408 <div class="job-brief-item-left"> 409 409 <ActionRunStatus :locale-status="locale.status[job.status]" :status="job.status"/> 410 - <span class="job-brief-name gt-mx-3 gt-ellipsis">{{ job.name }}</span> 410 + <span class="job-brief-name tw-mx-2 gt-ellipsis">{{ job.name }}</span> 411 411 </div> 412 412 <span class="job-brief-item-right"> 413 - <SvgIcon name="octicon-sync" role="button" :data-tooltip-content="locale.rerun" class="job-brief-rerun gt-mx-3 link-action" :data-url="`${run.link}/jobs/${index}/rerun`" v-if="job.canRerun && onHoverRerunIndex === job.id"/> 413 + <SvgIcon name="octicon-sync" role="button" :data-tooltip-content="locale.rerun" class="job-brief-rerun tw-mx-2 link-action" :data-url="`${run.link}/jobs/${index}/rerun`" v-if="job.canRerun && onHoverRerunIndex === job.id"/> 414 414 <span class="step-summary-duration">{{ job.duration }}</span> 415 415 </span> 416 416 </a> ··· 445 445 </div> 446 446 <div class="job-info-header-right"> 447 447 <div class="ui top right pointing dropdown custom jump item" @click.stop="menuVisible = !menuVisible" @keyup.enter="menuVisible = !menuVisible"> 448 - <button class="btn gt-interact-bg gt-p-3"> 448 + <button class="btn gt-interact-bg tw-p-2"> 449 449 <SvgIcon name="octicon-gear" :size="18"/> 450 450 </button> 451 451 <div class="menu transition action-job-menu" :class="{visible: menuVisible}" v-if="menuVisible" v-cloak> ··· 476 476 <!-- If the job is done and the job step log is loaded for the first time, show the loading icon 477 477 currentJobStepsStates[i].cursor === null means the log is loaded for the first time 478 478 --> 479 - <SvgIcon v-if="isDone(run.status) && currentJobStepsStates[i].expanded && currentJobStepsStates[i].cursor === null" name="octicon-sync" class="gt-mr-3 job-status-rotate"/> 480 - <SvgIcon v-else :name="currentJobStepsStates[i].expanded ? 'octicon-chevron-down': 'octicon-chevron-right'" :class="['gt-mr-3', !isExpandable(jobStep.status) && 'tw-invisible']"/> 481 - <ActionRunStatus :status="jobStep.status" class="gt-mr-3"/> 479 + <SvgIcon v-if="isDone(run.status) && currentJobStepsStates[i].expanded && currentJobStepsStates[i].cursor === null" name="octicon-sync" class="tw-mr-2 job-status-rotate"/> 480 + <SvgIcon v-else :name="currentJobStepsStates[i].expanded ? 'octicon-chevron-down': 'octicon-chevron-right'" :class="['tw-mr-2', !isExpandable(jobStep.status) && 'tw-invisible']"/> 481 + <ActionRunStatus :status="jobStep.status" class="tw-mr-2"/> 482 482 483 483 <span class="step-summary-msg gt-ellipsis">{{ jobStep.summary }}</span> 484 484 <span class="step-summary-duration">{{ jobStep.duration }}</span>
+5 -5
web_src/js/components/RepoBranchTagSelector.vue
··· 245 245 </script> 246 246 <template> 247 247 <div class="ui dropdown custom"> 248 - <button class="branch-dropdown-button gt-ellipsis ui basic small compact button tw-flex gt-m-0" @click="menuVisible = !menuVisible" @keyup.enter="menuVisible = !menuVisible"> 249 - <span class="text tw-flex tw-items-center gt-mr-2"> 248 + <button class="branch-dropdown-button gt-ellipsis ui basic small compact button tw-flex tw-m-0" @click="menuVisible = !menuVisible" @keyup.enter="menuVisible = !menuVisible"> 249 + <span class="text tw-flex tw-items-center tw-mr-1"> 250 250 <template v-if="release">{{ textReleaseCompare }}</template> 251 251 <template v-else> 252 252 <svg-icon v-if="isViewTag" name="octicon-tag"/> 253 253 <svg-icon v-else name="octicon-git-branch"/> 254 - <strong ref="dropdownRefName" class="gt-ml-3">{{ refNameText }}</strong> 254 + <strong ref="dropdownRefName" class="tw-ml-2">{{ refNameText }}</strong> 255 255 </template> 256 256 </span> 257 257 <svg-icon name="octicon-triangle-down" :size="14" class-name="dropdown icon"/> ··· 263 263 </div> 264 264 <div v-if="showBranchesInDropdown" class="branch-tag-tab"> 265 265 <a class="branch-tag-item muted" :class="{active: mode === 'branches'}" href="#" @click="handleTabSwitch('branches')"> 266 - <svg-icon name="octicon-git-branch" :size="16" class-name="gt-mr-2"/>{{ textBranches }} 266 + <svg-icon name="octicon-git-branch" :size="16" class-name="tw-mr-1"/>{{ textBranches }} 267 267 </a> 268 268 <a v-if="!noTag" class="branch-tag-item muted" :class="{active: mode === 'tags'}" href="#" @click="handleTabSwitch('tags')"> 269 - <svg-icon name="octicon-tag" :size="16" class-name="gt-mr-2"/>{{ textTags }} 269 + <svg-icon name="octicon-tag" :size="16" class-name="tw-mr-1"/>{{ textTags }} 270 270 </a> 271 271 </div> 272 272 <div class="branch-tag-divider"/>
+1 -1
web_src/js/components/RepoCodeFrequency.vue
··· 150 150 <div class="tw-flex ui segment main-graph"> 151 151 <div v-if="isLoading || errorText !== ''" class="gt-tc tw-m-auto"> 152 152 <div v-if="isLoading"> 153 - <SvgIcon name="octicon-sync" class="gt-mr-3 job-status-rotate"/> 153 + <SvgIcon name="octicon-sync" class="tw-mr-2 job-status-rotate"/> 154 154 {{ locale.loadingInfo }} 155 155 </div> 156 156 <div v-else class="text red">
+2 -2
web_src/js/components/RepoContributors.vue
··· 355 355 <div class="tw-flex ui segment main-graph"> 356 356 <div v-if="isLoading || errorText !== ''" class="gt-tc tw-m-auto"> 357 357 <div v-if="isLoading"> 358 - <SvgIcon name="octicon-sync" class="gt-mr-3 job-status-rotate"/> 358 + <SvgIcon name="octicon-sync" class="tw-mr-2 job-status-rotate"/> 359 359 {{ locale.loadingInfo }} 360 360 </div> 361 361 <div v-else class="text red"> ··· 379 379 <a :href="contributor.home_link"> 380 380 <img class="ui avatar tw-align-middle" height="40" width="40" :src="contributor.avatar_link"> 381 381 </a> 382 - <div class="gt-ml-3"> 382 + <div class="tw-ml-2"> 383 383 <a v-if="contributor.home_link !== ''" :href="contributor.home_link"><h4>{{ contributor.name }}</h4></a> 384 384 <h4 v-else class="contributor-name"> 385 385 {{ contributor.name }}
+1 -1
web_src/js/components/RepoRecentCommits.vue
··· 127 127 <div class="tw-flex ui segment main-graph"> 128 128 <div v-if="isLoading || errorText !== ''" class="gt-tc tw-m-auto"> 129 129 <div v-if="isLoading"> 130 - <SvgIcon name="octicon-sync" class="gt-mr-3 job-status-rotate"/> 130 + <SvgIcon name="octicon-sync" class="tw-mr-2 job-status-rotate"/> 131 131 {{ locale.loadingInfo }} 132 132 </div> 133 133 <div v-else class="text red">
+1 -1
web_src/js/components/ScopedAccessTokenSelector.vue
··· 87 87 88 88 </script> 89 89 <template> 90 - <div v-for="category in categories" :key="category" class="field gt-pl-2 gt-pb-2 access-token-category"> 90 + <div v-for="category in categories" :key="category" class="field tw-pl-1 tw-pb-1 access-token-category"> 91 91 <label class="category-label" :for="'access-token-scope-' + category"> 92 92 {{ category }} 93 93 </label>
+1 -1
web_src/js/features/repo-diff-commit.js
··· 35 35 36 36 function addLink(parent, href, text, tooltip) { 37 37 const link = document.createElement('a'); 38 - link.classList.add('muted', 'gt-px-2'); 38 + link.classList.add('muted', 'tw-px-1'); 39 39 link.href = href; 40 40 link.textContent = text; 41 41 if (tooltip) {
+1 -1
web_src/js/features/repo-findfile.js
··· 83 83 const cell = document.createElement('td'); 84 84 const a = document.createElement('a'); 85 85 a.setAttribute('href', `${treeLink}/${pathEscapeSegments(r.matchResult.join(''))}`); 86 - a.innerHTML = svg('octicon-file', 16, 'gt-mr-3'); 86 + a.innerHTML = svg('octicon-file', 16, 'tw-mr-2'); 87 87 row.append(cell); 88 88 cell.append(a); 89 89 for (const [index, part] of r.matchResult.entries()) {
+1 -1
web_src/js/features/repo-home.js
··· 47 47 const topicArray = topics.split(','); 48 48 topicArray.sort(); 49 49 for (const topic of topicArray) { 50 - const $link = $('<a class="ui repo-topic large label topic gt-m-0"></a>'); 50 + const $link = $('<a class="ui repo-topic large label topic tw-m-0"></a>'); 51 51 $link.attr('href', `${appSubUrl}/explore/repos?q=${encodeURIComponent(topic)}&topic=1`); 52 52 $link.text(topic); 53 53 $link.insertBefore($mgrBtn); // insert all new topics before manage button
+1 -1
web_src/js/features/repo-issue-content.js
··· 18 18 ${svg('octicon-x', 16, 'close icon inside')} 19 19 <div class="header tw-flex tw-items-center tw-justify-between"> 20 20 <div>${itemTitleHtml}</div> 21 - <div class="ui dropdown dialog-header-options gt-mr-5 gt-hidden"> 21 + <div class="ui dropdown dialog-header-options tw-mr-8 gt-hidden"> 22 22 ${i18nTextOptions} 23 23 ${svg('octicon-triangle-down', 14, 'dropdown icon')} 24 24 <div class="menu">
+1 -1
web_src/js/features/repo-issue-list.js
··· 109 109 const processedResults = []; // to be used by dropdown to generate menu items 110 110 for (const item of resp.results) { 111 111 let html = `<img class="ui avatar tw-align-middle" src="${htmlEscape(item.avatar_link)}" aria-hidden="true" alt="" width="20" height="20"><span class="gt-ellipsis">${htmlEscape(item.username)}</span>`; 112 - if (item.full_name) html += `<span class="search-fullname gt-ml-3">${htmlEscape(item.full_name)}</span>`; 112 + if (item.full_name) html += `<span class="search-fullname tw-ml-2">${htmlEscape(item.full_name)}</span>`; 113 113 processedResults.push({value: item.user_id, name: html}); 114 114 } 115 115 resp.results = processedResults;
+3 -3
web_src/js/features/repo-legacy.js
··· 272 272 273 273 let icon = ''; 274 274 if (input_id === '#milestone_id') { 275 - icon = svg('octicon-milestone', 18, 'gt-mr-3'); 275 + icon = svg('octicon-milestone', 18, 'tw-mr-2'); 276 276 } else if (input_id === '#project_id') { 277 - icon = svg('octicon-project', 18, 'gt-mr-3'); 277 + icon = svg('octicon-project', 18, 'tw-mr-2'); 278 278 } else if (input_id === '#assignee_id') { 279 - icon = `<img class="ui avatar image gt-mr-3" alt="avatar" src=${$(this).data('avatar')}>`; 279 + icon = `<img class="ui avatar image tw-mr-2" alt="avatar" src=${$(this).data('avatar')}>`; 280 280 } 281 281 282 282 $list.find('.selected').html(`
+1 -1
web_src/js/features/tribute.js
··· 36 36 menuItemTemplate: (item) => { 37 37 return ` 38 38 <div class="tribute-item"> 39 - <img src="${htmlEscape(item.original.avatar)}" class="gt-mr-3"/> 39 + <img src="${htmlEscape(item.original.avatar)}" class="tw-mr-2"/> 40 40 <span class="name">${htmlEscape(item.original.name)}</span> 41 41 ${item.original.fullname && item.original.fullname !== '' ? `<span class="fullname">${htmlEscape(item.original.fullname)}</span>` : ''} 42 42 </div>