mirror of
https://github.com/go-gitea/gitea
synced 2024-12-22 16:44:26 +00:00
Fix incorrect tailwind migration (#30007)
Fixes https://github.com/go-gitea/gitea/issues/30005. Regression from https://github.com/go-gitea/gitea/pull/29945. There was only once instance of `tw-content-center` before that PR, so I just ran below command and reverted that one instance. ```sh perl -p -i -e 's#tw-content-center#tw-items-center#g' web_src/js/**/* templates/**/* models/**/* tests/**/* ```
This commit is contained in:
parent
3d751b6ec1
commit
04f9ad0568
@ -4,7 +4,7 @@
|
|||||||
{{ctx.Locale.Tr "admin.emails.email_manage_panel"}} ({{ctx.Locale.Tr "admin.total" .Total}})
|
{{ctx.Locale.Tr "admin.emails.email_manage_panel"}} ({{ctx.Locale.Tr "admin.total" .Total}})
|
||||||
</h4>
|
</h4>
|
||||||
<div class="ui attached segment">
|
<div class="ui attached segment">
|
||||||
<div class="ui secondary filter menu tw-content-center gt-mx-0">
|
<div class="ui secondary filter menu tw-items-center gt-mx-0">
|
||||||
<form class="ui form ignore-dirty tw-flex-1">
|
<form class="ui form ignore-dirty tw-flex-1">
|
||||||
{{template "shared/search/combo" dict "Value" .Keyword}}
|
{{template "shared/search/combo" dict "Value" .Keyword}}
|
||||||
</form>
|
</form>
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</h4>
|
</h4>
|
||||||
<div class="ui attached segment">
|
<div class="ui attached segment">
|
||||||
<div class="ui secondary filter menu tw-content-center gt-mx-0">
|
<div class="ui secondary filter menu tw-items-center gt-mx-0">
|
||||||
<form class="ui form ignore-dirty tw-flex-1">
|
<form class="ui form ignore-dirty tw-flex-1">
|
||||||
{{template "shared/search/combo" dict "Value" .Keyword "Placeholder" (ctx.Locale.Tr "search.org_kind")}}
|
{{template "shared/search/combo" dict "Value" .Keyword "Placeholder" (ctx.Locale.Tr "search.org_kind")}}
|
||||||
</form>
|
</form>
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
{{if .Dirs}}
|
{{if .Dirs}}
|
||||||
<div class="ui aligned divided list">
|
<div class="ui aligned divided list">
|
||||||
{{range $dirI, $dir := .Dirs}}
|
{{range $dirI, $dir := .Dirs}}
|
||||||
<div class="item tw-flex tw-content-center">
|
<div class="item tw-flex tw-items-center">
|
||||||
<span class="tw-flex-1"> {{svg "octicon-file-directory-fill"}} {{$dir}}</span>
|
<span class="tw-flex-1"> {{svg "octicon-file-directory-fill"}} {{$dir}}</span>
|
||||||
<div>
|
<div>
|
||||||
<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>
|
<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>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<div class="item">
|
<div class="item">
|
||||||
<div class="tw-flex tw-content-center">
|
<div class="tw-flex tw-items-center">
|
||||||
<div class="icon gt-ml-3 gt-mr-3">
|
<div class="icon gt-ml-3 gt-mr-3">
|
||||||
{{if eq .Process.Type "request"}}
|
{{if eq .Process.Type "request"}}
|
||||||
{{svg "octicon-globe" 16}}
|
{{svg "octicon-globe" 16}}
|
||||||
@ -40,7 +40,7 @@
|
|||||||
</summary>
|
</summary>
|
||||||
<div class="list">
|
<div class="list">
|
||||||
{{range .Entry}}
|
{{range .Entry}}
|
||||||
<div class="item tw-flex tw-content-center">
|
<div class="item tw-flex tw-items-center">
|
||||||
<span class="icon gt-mr-4">{{svg "octicon-dot-fill" 16}}</span>
|
<span class="icon gt-mr-4">{{svg "octicon-dot-fill" 16}}</span>
|
||||||
<div class="content tw-flex-1">
|
<div class="content tw-flex-1">
|
||||||
<div class="header"><code>{{.Function}}</code></div>
|
<div class="header"><code>{{.Function}}</code></div>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin monitor")}}
|
{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin monitor")}}
|
||||||
<div class="admin-setting-content">
|
<div class="admin-setting-content">
|
||||||
|
|
||||||
<div class="tw-flex tw-content-center">
|
<div class="tw-flex tw-items-center">
|
||||||
<div class="tw-flex-1">
|
<div class="tw-flex-1">
|
||||||
<div class="ui compact small menu">
|
<div class="ui compact small menu">
|
||||||
<a class="{{if eq .ShowGoroutineList "process"}}active {{end}}item" href="?show=process">{{ctx.Locale.Tr "admin.monitor.process"}}</a>
|
<a class="{{if eq .ShowGoroutineList "process"}}active {{end}}item" href="?show=process">{{ctx.Locale.Tr "admin.monitor.process"}}</a>
|
||||||
|
@ -56,7 +56,7 @@
|
|||||||
<div class="navbar-right ui secondary menu">
|
<div class="navbar-right ui secondary menu">
|
||||||
{{if and .IsSigned .MustChangePassword}}
|
{{if and .IsSigned .MustChangePassword}}
|
||||||
<div class="ui dropdown jump item" data-tooltip-content="{{ctx.Locale.Tr "user_profile_and_more"}}">
|
<div class="ui dropdown jump item" data-tooltip-content="{{ctx.Locale.Tr "user_profile_and_more"}}">
|
||||||
<span class="text tw-flex tw-content-center">
|
<span class="text tw-flex tw-items-center">
|
||||||
{{ctx.AvatarUtils.Avatar .SignedUser 24 "gt-mr-2"}}
|
{{ctx.AvatarUtils.Avatar .SignedUser 24 "gt-mr-2"}}
|
||||||
<span class="only-mobile gt-ml-3">{{.SignedUser.Name}}</span>
|
<span class="only-mobile gt-ml-3">{{.SignedUser.Name}}</span>
|
||||||
<span class="not-mobile">{{svg "octicon-triangle-down"}}</span>
|
<span class="not-mobile">{{svg "octicon-triangle-down"}}</span>
|
||||||
@ -83,8 +83,8 @@
|
|||||||
<span class="only-mobile gt-ml-3">{{ctx.Locale.Tr "active_stopwatch"}}</span>
|
<span class="only-mobile gt-ml-3">{{ctx.Locale.Tr "active_stopwatch"}}</span>
|
||||||
</a>
|
</a>
|
||||||
<div class="active-stopwatch-popup item tippy-target gt-p-3">
|
<div class="active-stopwatch-popup item tippy-target gt-p-3">
|
||||||
<div class="tw-flex tw-content-center">
|
<div class="tw-flex tw-items-center">
|
||||||
<a class="stopwatch-link tw-flex tw-content-center" href="{{.ActiveStopwatch.IssueLink}}">
|
<a class="stopwatch-link tw-flex tw-items-center" href="{{.ActiveStopwatch.IssueLink}}">
|
||||||
{{svg "octicon-issue-opened" 16 "gt-mr-3"}}
|
{{svg "octicon-issue-opened" 16 "gt-mr-3"}}
|
||||||
<span class="stopwatch-issue">{{.ActiveStopwatch.RepoSlug}}#{{.ActiveStopwatch.IssueIndex}}</span>
|
<span class="stopwatch-issue">{{.ActiveStopwatch.RepoSlug}}#{{.ActiveStopwatch.IssueIndex}}</span>
|
||||||
<span class="ui primary label stopwatch-time gt-my-0 gt-mx-4" data-seconds="{{.ActiveStopwatch.Seconds}}">
|
<span class="ui primary label stopwatch-time gt-my-0 gt-mx-4" data-seconds="{{.ActiveStopwatch.Seconds}}">
|
||||||
@ -142,7 +142,7 @@
|
|||||||
</div><!-- end dropdown menu create new -->
|
</div><!-- end dropdown menu create new -->
|
||||||
|
|
||||||
<div class="ui dropdown jump item gt-mx-0 gt-pr-3" data-tooltip-content="{{ctx.Locale.Tr "user_profile_and_more"}}">
|
<div class="ui dropdown jump item gt-mx-0 gt-pr-3" data-tooltip-content="{{ctx.Locale.Tr "user_profile_and_more"}}">
|
||||||
<span class="text tw-flex tw-content-center">
|
<span class="text tw-flex tw-items-center">
|
||||||
{{ctx.AvatarUtils.Avatar .SignedUser 24 "gt-mr-2"}}
|
{{ctx.AvatarUtils.Avatar .SignedUser 24 "gt-mr-2"}}
|
||||||
<span class="only-mobile gt-ml-3">{{.SignedUser.Name}}</span>
|
<span class="only-mobile gt-ml-3">{{.SignedUser.Name}}</span>
|
||||||
<span class="not-mobile">{{svg "octicon-triangle-down"}}</span>
|
<span class="not-mobile">{{svg "octicon-triangle-down"}}</span>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<div class="ui small secondary filter menu tw-content-center gt-mx-0">
|
<div class="ui small secondary filter menu tw-items-center gt-mx-0">
|
||||||
<form class="ui form ignore-dirty tw-flex-1">
|
<form class="ui form ignore-dirty tw-flex-1">
|
||||||
{{if .PageIsExploreUsers}}
|
{{if .PageIsExploreUsers}}
|
||||||
{{template "shared/search/combo" dict "Value" .Keyword "Placeholder" (ctx.Locale.Tr "search.user_kind")}}
|
{{template "shared/search/combo" dict "Value" .Keyword "Placeholder" (ctx.Locale.Tr "search.user_kind")}}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<div class="flex-list">
|
<div class="flex-list">
|
||||||
{{range .Users}}
|
{{range .Users}}
|
||||||
<div class="flex-item tw-content-center">
|
<div class="flex-item tw-items-center">
|
||||||
<div class="flex-item-leading">
|
<div class="flex-item-leading">
|
||||||
{{ctx.AvatarUtils.Avatar . 48}}
|
{{ctx.AvatarUtils.Avatar . 48}}
|
||||||
</div>
|
</div>
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
{{if .Org.Visibility.IsLimited}}<span class="ui large basic horizontal label">{{ctx.Locale.Tr "org.settings.visibility.limited_shortname"}}</span>{{end}}
|
{{if .Org.Visibility.IsLimited}}<span class="ui large basic horizontal label">{{ctx.Locale.Tr "org.settings.visibility.limited_shortname"}}</span>{{end}}
|
||||||
{{if .Org.Visibility.IsPrivate}}<span class="ui large basic horizontal label">{{ctx.Locale.Tr "org.settings.visibility.private_shortname"}}</span>{{end}}
|
{{if .Org.Visibility.IsPrivate}}<span class="ui large basic horizontal label">{{ctx.Locale.Tr "org.settings.visibility.private_shortname"}}</span>{{end}}
|
||||||
</span>
|
</span>
|
||||||
<span class="tw-flex tw-content-center gt-gap-2 tw-ml-auto gt-font-16 tw-whitespace-nowrap">
|
<span class="tw-flex tw-items-center gt-gap-2 tw-ml-auto gt-font-16 tw-whitespace-nowrap">
|
||||||
{{if .EnableFeed}}
|
{{if .EnableFeed}}
|
||||||
<a class="ui basic label button gt-mr-0" href="{{.Org.HomeLink}}.rss" data-tooltip-content="{{ctx.Locale.Tr "rss_feed"}}">
|
<a class="ui basic label button gt-mr-0" href="{{.Org.HomeLink}}.rss" data-tooltip-content="{{ctx.Locale.Tr "rss_feed"}}">
|
||||||
{{svg "octicon-rss" 24}}
|
{{svg "octicon-rss" 24}}
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
{{if .NumMembers}}
|
{{if .NumMembers}}
|
||||||
<h4 class="ui top attached header tw-flex">
|
<h4 class="ui top attached header tw-flex">
|
||||||
<strong class="tw-flex-1">{{ctx.Locale.Tr "org.members"}}</strong>
|
<strong class="tw-flex-1">{{ctx.Locale.Tr "org.members"}}</strong>
|
||||||
<a class="text grey tw-flex tw-content-center" href="{{.OrgLink}}/members"><span>{{.NumMembers}}</span> {{svg "octicon-chevron-right"}}</a>
|
<a class="text grey tw-flex tw-items-center" href="{{.OrgLink}}/members"><span>{{.NumMembers}}</span> {{svg "octicon-chevron-right"}}</a>
|
||||||
</h4>
|
</h4>
|
||||||
<div class="ui attached segment members">
|
<div class="ui attached segment members">
|
||||||
{{$isMember := .IsOrganizationMember}}
|
{{$isMember := .IsOrganizationMember}}
|
||||||
@ -41,7 +41,7 @@
|
|||||||
{{if .IsOrganizationMember}}
|
{{if .IsOrganizationMember}}
|
||||||
<div class="ui top attached header tw-flex">
|
<div class="ui top attached header tw-flex">
|
||||||
<strong class="tw-flex-1">{{ctx.Locale.Tr "org.teams"}}</strong>
|
<strong class="tw-flex-1">{{ctx.Locale.Tr "org.teams"}}</strong>
|
||||||
<a class="text grey tw-flex tw-content-center" href="{{.OrgLink}}/teams"><span>{{.Org.NumTeams}}</span> {{svg "octicon-chevron-right"}}</a>
|
<a class="text grey tw-flex tw-items-center" href="{{.OrgLink}}/teams"><span>{{.Org.NumTeams}}</span> {{svg "octicon-chevron-right"}}</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="ui attached table segment teams">
|
<div class="ui attached table segment teams">
|
||||||
{{range .Teams}}
|
{{range .Teams}}
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<div class="flex-list">
|
<div class="flex-list">
|
||||||
{{range .Members}}
|
{{range .Members}}
|
||||||
{{$isPublic := index $.MembersIsPublicMember .ID}}
|
{{$isPublic := index $.MembersIsPublicMember .ID}}
|
||||||
<div class="flex-item {{if $.PublicOnly}}tw-content-center{{end}}">
|
<div class="flex-item {{if $.PublicOnly}}tw-items-center{{end}}">
|
||||||
<div class="flex-item-leading">
|
<div class="flex-item-leading">
|
||||||
<a href="{{.HomeLink}}">{{ctx.AvatarUtils.Avatar . 48}}</a>
|
<a href="{{.HomeLink}}">{{ctx.AvatarUtils.Avatar . 48}}</a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{{template "org/settings/layout_head" (dict "ctxData" . "pageClass" "organization settings labels")}}
|
{{template "org/settings/layout_head" (dict "ctxData" . "pageClass" "organization settings labels")}}
|
||||||
<div class="org-setting-content">
|
<div class="org-setting-content">
|
||||||
<div class="tw-flex tw-content-center">
|
<div class="tw-flex tw-items-center">
|
||||||
<div class="tw-flex-1">
|
<div class="tw-flex-1">
|
||||||
{{ctx.Locale.Tr "org.settings.labels_desc"}}
|
{{ctx.Locale.Tr "org.settings.labels_desc"}}
|
||||||
</div>
|
</div>
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
<div class="ui attached segment">
|
<div class="ui attached segment">
|
||||||
<div class="flex-list">
|
<div class="flex-list">
|
||||||
{{range .Team.Members}}
|
{{range .Team.Members}}
|
||||||
<div class="flex-item tw-content-center">
|
<div class="flex-item tw-items-center">
|
||||||
<div class="flex-item-leading">
|
<div class="flex-item-leading">
|
||||||
<a href="{{.HomeLink}}">{{ctx.AvatarUtils.Avatar . 32}}</a>
|
<a href="{{.HomeLink}}">{{ctx.AvatarUtils.Avatar . 32}}</a>
|
||||||
</div>
|
</div>
|
||||||
@ -56,7 +56,7 @@
|
|||||||
<div class="ui attached segment">
|
<div class="ui attached segment">
|
||||||
<div class="flex-list">
|
<div class="flex-list">
|
||||||
{{range .Invites}}
|
{{range .Invites}}
|
||||||
<div class="flex-item tw-content-center">
|
<div class="flex-item tw-items-center">
|
||||||
<div class="flex-item-main">
|
<div class="flex-item-main">
|
||||||
{{.Email}}
|
{{.Email}}
|
||||||
</div>
|
</div>
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
<div class="ui attached segment">
|
<div class="ui attached segment">
|
||||||
<div class="flex-list">
|
<div class="flex-list">
|
||||||
{{range .Team.Repos}}
|
{{range .Team.Repos}}
|
||||||
<div class="flex-item tw-content-center">
|
<div class="flex-item tw-items-center">
|
||||||
<div class="flex-item-leading">
|
<div class="flex-item-leading">
|
||||||
{{template "repo/icon" .}}
|
{{template "repo/icon" .}}
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{{$canWriteProject := and .CanWriteProjects (or (not .Repository) (not .Repository.IsArchived))}}
|
{{$canWriteProject := and .CanWriteProjects (or (not .Repository) (not .Repository.IsArchived))}}
|
||||||
|
|
||||||
<div class="ui container">
|
<div class="ui container">
|
||||||
<div class="tw-flex tw-justify-between tw-content-center gt-mb-4">
|
<div class="tw-flex tw-justify-between tw-items-center gt-mb-4">
|
||||||
<h2 class="gt-mb-0">{{.Project.Title}}</h2>
|
<h2 class="gt-mb-0">{{.Project.Title}}</h2>
|
||||||
{{if $canWriteProject}}
|
{{if $canWriteProject}}
|
||||||
<div class="ui compact mini menu">
|
<div class="ui compact mini menu">
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="twelve wide column content">
|
<div class="twelve wide column content">
|
||||||
<div class="ui secondary filter menu tw-justify-end tw-flex tw-content-center">
|
<div class="ui secondary filter menu tw-justify-end tw-flex tw-items-center">
|
||||||
<!-- Actor -->
|
<!-- Actor -->
|
||||||
<div class="ui{{if not .Actors}} disabled{{end}} dropdown jump item">
|
<div class="ui{{if not .Actors}} disabled{{end}} dropdown jump item">
|
||||||
<span class="text">{{ctx.Locale.Tr "actions.runs.actor"}}</span>
|
<span class="text">{{ctx.Locale.Tr "actions.runs.actor"}}</span>
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{range .Runs}}
|
{{range .Runs}}
|
||||||
<div class="flex-item tw-content-center">
|
<div class="flex-item tw-items-center">
|
||||||
<div class="flex-item-leading">
|
<div class="flex-item-leading">
|
||||||
{{template "repo/actions/status" (dict "status" .Status.String)}}
|
{{template "repo/actions/status" (dict "status" .Status.String)}}
|
||||||
</div>
|
</div>
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
{{- $className = .className -}}
|
{{- $className = .className -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
<span class="tw-flex tw-content-center" data-tooltip-content="{{ctx.Locale.Tr (printf "actions.status.%s" .status)}}">
|
<span class="tw-flex tw-items-center" data-tooltip-content="{{ctx.Locale.Tr (printf "actions.status.%s" .status)}}">
|
||||||
{{if eq .status "success"}}
|
{{if eq .status "success"}}
|
||||||
{{svg "octicon-check-circle-fill" $size (printf "text green %s" $className)}}
|
{{svg "octicon-check-circle-fill" $size (printf "text green %s" $className)}}
|
||||||
{{else if eq .status "skipped"}}
|
{{else if eq .status "skipped"}}
|
||||||
|
@ -11,11 +11,11 @@
|
|||||||
{{end}}
|
{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
<div class="{{TabSizeClass .Editorconfig .FileName}} non-diff-file-content">
|
<div class="{{TabSizeClass .Editorconfig .FileName}} non-diff-file-content">
|
||||||
<h4 class="file-header ui top attached header tw-flex tw-content-center tw-justify-between tw-flex-wrap">
|
<h4 class="file-header ui top attached header tw-flex tw-items-center tw-justify-between tw-flex-wrap">
|
||||||
<div class="file-header-left tw-flex tw-content-center gt-py-3 gt-pr-4">
|
<div class="file-header-left tw-flex tw-items-center gt-py-3 gt-pr-4">
|
||||||
{{template "repo/file_info" .}}
|
{{template "repo/file_info" .}}
|
||||||
</div>
|
</div>
|
||||||
<div class="file-header-right file-actions tw-flex tw-content-center tw-flex-wrap">
|
<div class="file-header-right file-actions tw-flex tw-items-center tw-flex-wrap">
|
||||||
<div class="ui buttons">
|
<div class="ui buttons">
|
||||||
<a class="ui tiny button" href="{{$.RawFileLink}}">{{ctx.Locale.Tr "repo.file_raw"}}</a>
|
<a class="ui tiny button" href="{{$.RawFileLink}}">{{ctx.Locale.Tr "repo.file_raw"}}</a>
|
||||||
{{if not .IsViewCommit}}
|
{{if not .IsViewCommit}}
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
<button class="btn interact-fg gt-px-2" data-clipboard-text="{{.DefaultBranchBranch.DBBranch.Name}}">{{svg "octicon-copy" 14}}</button>
|
<button class="btn interact-fg gt-px-2" data-clipboard-text="{{.DefaultBranchBranch.DBBranch.Name}}">{{svg "octicon-copy" 14}}</button>
|
||||||
{{template "repo/commit_statuses" dict "Status" (index $.CommitStatus .DefaultBranchBranch.DBBranch.CommitID) "Statuses" (index $.CommitStatuses .DefaultBranchBranch.DBBranch.CommitID)}}
|
{{template "repo/commit_statuses" dict "Status" (index $.CommitStatus .DefaultBranchBranch.DBBranch.CommitID) "Statuses" (index $.CommitStatuses .DefaultBranchBranch.DBBranch.CommitID)}}
|
||||||
</div>
|
</div>
|
||||||
<p class="info tw-flex tw-content-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}} {{template "shared/user/avatarlink" dict "user" .DefaultBranchBranch.DBBranch.Pusher}}{{template "shared/user/namelink" .DefaultBranchBranch.DBBranch.Pusher}}{{end}}</p>
|
<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}} {{template "shared/user/avatarlink" dict "user" .DefaultBranchBranch.DBBranch.Pusher}}{{template "shared/user/namelink" .DefaultBranchBranch.DBBranch.Pusher}}{{end}}</p>
|
||||||
</td>
|
</td>
|
||||||
<td class="right aligned middle aligned overflow-visible">
|
<td class="right aligned middle aligned overflow-visible">
|
||||||
{{if and $.IsWriter (not $.Repository.IsArchived) (not .IsDeleted)}}
|
{{if and $.IsWriter (not $.Repository.IsArchived) (not .IsDeleted)}}
|
||||||
@ -67,8 +67,8 @@
|
|||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
<h4 class="ui top attached header tw-flex tw-content-center tw-justify-between">
|
<h4 class="ui top attached header tw-flex tw-items-center tw-justify-between">
|
||||||
<div class="tw-flex tw-content-center">
|
<div class="tw-flex tw-items-center">
|
||||||
{{ctx.Locale.Tr "repo.branches"}}
|
{{ctx.Locale.Tr "repo.branches"}}
|
||||||
</div>
|
</div>
|
||||||
</h4>
|
</h4>
|
||||||
@ -98,7 +98,7 @@
|
|||||||
<button class="btn interact-fg gt-px-2" data-clipboard-text="{{.DBBranch.Name}}">{{svg "octicon-copy" 14}}</button>
|
<button class="btn interact-fg gt-px-2" data-clipboard-text="{{.DBBranch.Name}}">{{svg "octicon-copy" 14}}</button>
|
||||||
{{template "repo/commit_statuses" dict "Status" (index $.CommitStatus .DBBranch.CommitID) "Statuses" (index $.CommitStatuses .DBBranch.CommitID)}}
|
{{template "repo/commit_statuses" dict "Status" (index $.CommitStatus .DBBranch.CommitID) "Statuses" (index $.CommitStatuses .DBBranch.CommitID)}}
|
||||||
</div>
|
</div>
|
||||||
<p class="info tw-flex tw-content-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}} {{template "shared/user/avatarlink" dict "user" .DBBranch.Pusher}} {{template "shared/user/namelink" .DBBranch.Pusher}}{{end}}</p>
|
<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}} {{template "shared/user/avatarlink" dict "user" .DBBranch.Pusher}} {{template "shared/user/namelink" .DBBranch.Pusher}}{{end}}</p>
|
||||||
{{end}}
|
{{end}}
|
||||||
</td>
|
</td>
|
||||||
<td class="two wide ui">
|
<td class="two wide ui">
|
||||||
|
@ -71,7 +71,7 @@
|
|||||||
{{/* show dummy elements before Vue componment is mounted, this code must match the code in BranchTagSelector.vue */}}
|
{{/* show dummy elements before Vue componment is mounted, this code must match the code in BranchTagSelector.vue */}}
|
||||||
<div class="ui dropdown custom">
|
<div class="ui dropdown custom">
|
||||||
<button class="branch-dropdown-button gt-ellipsis ui basic small compact button tw-flex gt-m-0">
|
<button class="branch-dropdown-button gt-ellipsis ui basic small compact button tw-flex gt-m-0">
|
||||||
<span class="text tw-flex tw-content-center gt-mr-2">
|
<span class="text tw-flex tw-items-center gt-mr-2">
|
||||||
{{if .release}}
|
{{if .release}}
|
||||||
{{ctx.Locale.Tr "repo.release.compare"}}
|
{{ctx.Locale.Tr "repo.release.compare"}}
|
||||||
{{else}}
|
{{else}}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{{range .RecentlyPushedNewBranches}}
|
{{range .RecentlyPushedNewBranches}}
|
||||||
<div class="ui positive message tw-flex tw-content-center">
|
<div class="ui positive message tw-flex tw-items-center">
|
||||||
<div class="tw-flex-1">
|
<div class="tw-flex-1">
|
||||||
{{$timeSince := TimeSince .CommitTime.AsTime ctx.Locale}}
|
{{$timeSince := TimeSince .CommitTime.AsTime ctx.Locale}}
|
||||||
{{$branchLink := HTMLFormat `<a href="%s/src/branch/%s">%s</a>` $.RepoLink (PathEscapeSegments .Name) .Name}}
|
{{$branchLink := HTMLFormat `<a href="%s/src/branch/%s">%s</a>` $.RepoLink (PathEscapeSegments .Name) .Name}}
|
||||||
|
@ -139,8 +139,8 @@
|
|||||||
{{end}}
|
{{end}}
|
||||||
{{template "repo/commit_load_branches_and_tags" .}}
|
{{template "repo/commit_load_branches_and_tags" .}}
|
||||||
</div>
|
</div>
|
||||||
<div class="ui attached segment tw-flex tw-content-center tw-justify-between gt-py-2 commit-header-row tw-flex-wrap {{$class}}">
|
<div class="ui attached segment tw-flex tw-items-center tw-justify-between gt-py-2 commit-header-row tw-flex-wrap {{$class}}">
|
||||||
<div class="tw-flex tw-content-center author">
|
<div class="tw-flex tw-items-center author">
|
||||||
{{if .Author}}
|
{{if .Author}}
|
||||||
{{ctx.AvatarUtils.Avatar .Author 28 "gt-mr-3"}}
|
{{ctx.AvatarUtils.Avatar .Author 28 "gt-mr-3"}}
|
||||||
{{if .Author.FullName}}
|
{{if .Author.FullName}}
|
||||||
@ -164,7 +164,7 @@
|
|||||||
{{end}}
|
{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
<div class="ui horizontal list tw-flex tw-content-center">
|
<div class="ui horizontal list tw-flex tw-items-center">
|
||||||
{{if .Parents}}
|
{{if .Parents}}
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<span>{{ctx.Locale.Tr "repo.diff.parent"}}</span>
|
<span>{{ctx.Locale.Tr "repo.diff.parent"}}</span>
|
||||||
@ -184,8 +184,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{if .Commit.Signature}}
|
{{if .Commit.Signature}}
|
||||||
<div class="ui bottom attached message tw-text-left tw-flex tw-content-center tw-justify-between commit-header-row tw-flex-wrap gt-mb-0 {{$class}}">
|
<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}}">
|
||||||
<div class="tw-flex tw-content-center">
|
<div class="tw-flex tw-items-center">
|
||||||
{{if .Verification.Verified}}
|
{{if .Verification.Verified}}
|
||||||
{{if ne .Verification.SigningUser.ID 0}}
|
{{if ne .Verification.SigningUser.ID 0}}
|
||||||
{{svg "gitea-lock" 16 "gt-mr-3"}}
|
{{svg "gitea-lock" 16 "gt-mr-3"}}
|
||||||
@ -209,7 +209,7 @@
|
|||||||
<span class="ui text">{{ctx.Locale.Tr .Verification.Reason}}</span>
|
<span class="ui text">{{ctx.Locale.Tr .Verification.Reason}}</span>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
<div class="tw-flex tw-content-center">
|
<div class="tw-flex tw-items-center">
|
||||||
{{if .Verification.Verified}}
|
{{if .Verification.Verified}}
|
||||||
{{if ne .Verification.SigningUser.ID 0}}
|
{{if ne .Verification.SigningUser.ID 0}}
|
||||||
{{svg "octicon-verified" 16 "gt-mr-3"}}
|
{{svg "octicon-verified" 16 "gt-mr-3"}}
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<div class="ui container">
|
<div class="ui container">
|
||||||
{{template "repo/sub_menu" .}}
|
{{template "repo/sub_menu" .}}
|
||||||
<div class="repo-button-row">
|
<div class="repo-button-row">
|
||||||
<div class="tw-flex tw-content-center">
|
<div class="tw-flex tw-items-center">
|
||||||
{{template "repo/branch_dropdown" dict "root" . "ContainerClasses" "gt-mr-2"}}
|
{{template "repo/branch_dropdown" dict "root" . "ContainerClasses" "gt-mr-2"}}
|
||||||
<a href="{{.RepoLink}}/graph" class="ui basic small compact button">
|
<a href="{{.RepoLink}}/graph" class="ui basic small compact button">
|
||||||
{{svg "octicon-git-branch"}}
|
{{svg "octicon-git-branch"}}
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
{{$commitLink:= printf "%s/commit/%s" $.comment.Issue.PullRequest.BaseRepo.Link (PathEscape .ID.String)}}
|
{{$commitLink:= printf "%s/commit/%s" $.comment.Issue.PullRequest.BaseRepo.Link (PathEscape .ID.String)}}
|
||||||
|
|
||||||
<span class="shabox tw-flex tw-content-center tw-float-right">
|
<span class="shabox tw-flex tw-items-center tw-float-right">
|
||||||
{{template "repo/commit_statuses" dict "Status" .Status "Statuses" .Statuses}}
|
{{template "repo/commit_statuses" dict "Status" .Status "Statuses" .Statuses}}
|
||||||
{{$class := "ui sha label"}}
|
{{$class := "ui sha label"}}
|
||||||
{{if .Signature}}
|
{{if .Signature}}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<h4 class="ui top attached header commits-table tw-flex tw-content-center tw-justify-between">
|
<h4 class="ui top attached header commits-table tw-flex tw-items-center tw-justify-between">
|
||||||
<div class="commits-table-left tw-flex tw-content-center">
|
<div class="commits-table-left tw-flex tw-items-center">
|
||||||
{{if or .PageIsCommits (gt .CommitCount 0)}}
|
{{if or .PageIsCommits (gt .CommitCount 0)}}
|
||||||
{{.CommitCount}} {{ctx.Locale.Tr "repo.commits.commits"}}
|
{{.CommitCount}} {{ctx.Locale.Tr "repo.commits.commits"}}
|
||||||
{{else if .IsNothingToCompare}}
|
{{else if .IsNothingToCompare}}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{{$showFileTree := (and (not .DiffNotAvailable) (gt .Diff.NumFiles 1))}}
|
{{$showFileTree := (and (not .DiffNotAvailable) (gt .Diff.NumFiles 1))}}
|
||||||
<div>
|
<div>
|
||||||
<div class="diff-detail-box diff-box">
|
<div class="diff-detail-box diff-box">
|
||||||
<div class="tw-flex tw-content-center tw-flex-wrap gt-gap-3 gt-ml-1">
|
<div class="tw-flex tw-items-center tw-flex-wrap gt-gap-3 gt-ml-1">
|
||||||
{{if $showFileTree}}
|
{{if $showFileTree}}
|
||||||
<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"}}">
|
<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"}}">
|
||||||
{{/* the icon meaning is reversed here, "octicon-sidebar-collapse" means show the file tree */}}
|
{{/* the icon meaning is reversed here, "octicon-sidebar-collapse" means show the file tree */}}
|
||||||
@ -18,14 +18,14 @@
|
|||||||
</script>
|
</script>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{if not .DiffNotAvailable}}
|
{{if not .DiffNotAvailable}}
|
||||||
<div class="diff-detail-stats tw-flex tw-content-center tw-flex-wrap">
|
<div class="diff-detail-stats tw-flex tw-items-center tw-flex-wrap">
|
||||||
{{svg "octicon-diff" 16 "gt-mr-2"}}{{ctx.Locale.Tr "repo.diff.stats_desc" .Diff.NumFiles .Diff.TotalAddition .Diff.TotalDeletion}}
|
{{svg "octicon-diff" 16 "gt-mr-2"}}{{ctx.Locale.Tr "repo.diff.stats_desc" .Diff.NumFiles .Diff.TotalAddition .Diff.TotalDeletion}}
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
<div class="diff-detail-actions">
|
<div class="diff-detail-actions">
|
||||||
{{if and .PageIsPullFiles $.SignedUserID (not .IsArchived) (not .DiffNotAvailable)}}
|
{{if and .PageIsPullFiles $.SignedUserID (not .IsArchived) (not .DiffNotAvailable)}}
|
||||||
<div class="not-mobile tw-flex tw-content-center tw-flex-col tw-whitespace-nowrap gt-mr-2">
|
<div class="not-mobile tw-flex tw-items-center tw-flex-col tw-whitespace-nowrap gt-mr-2">
|
||||||
<label for="viewed-files-summary" id="viewed-files-summary-label" data-text-changed-template="{{ctx.Locale.Tr "repo.pulls.viewed_files_label"}}">
|
<label for="viewed-files-summary" id="viewed-files-summary-label" data-text-changed-template="{{ctx.Locale.Tr "repo.pulls.viewed_files_label"}}">
|
||||||
{{ctx.Locale.Tr "repo.pulls.viewed_files_label" .Diff.NumViewedFiles .Diff.NumFiles}}
|
{{ctx.Locale.Tr "repo.pulls.viewed_files_label" .Diff.NumViewedFiles .Diff.NumFiles}}
|
||||||
</label>
|
</label>
|
||||||
@ -110,8 +110,8 @@
|
|||||||
{{$isExpandable := or (gt $file.Addition 0) (gt $file.Deletion 0) $file.IsBin}}
|
{{$isExpandable := or (gt $file.Addition 0) (gt $file.Deletion 0) $file.IsBin}}
|
||||||
{{$isReviewFile := and $.IsSigned $.PageIsPullFiles (not $.IsArchived) $.IsShowingAllCommits}}
|
{{$isReviewFile := and $.IsSigned $.PageIsPullFiles (not $.IsArchived) $.IsShowingAllCommits}}
|
||||||
<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}}>
|
<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}}>
|
||||||
<h4 class="diff-file-header sticky-2nd-row ui top attached normal header tw-flex tw-content-center tw-justify-between tw-flex-wrap">
|
<h4 class="diff-file-header sticky-2nd-row ui top attached normal header tw-flex tw-items-center tw-justify-between tw-flex-wrap">
|
||||||
<div class="diff-file-name tw-flex tw-content-center gt-gap-2 tw-flex-wrap">
|
<div class="diff-file-name tw-flex tw-items-center gt-gap-2 tw-flex-wrap">
|
||||||
<button class="fold-file btn interact-bg gt-p-2{{if not $isExpandable}} tw-invisible{{end}}">
|
<button class="fold-file btn interact-bg gt-p-2{{if not $isExpandable}} tw-invisible{{end}}">
|
||||||
{{if $file.ShouldBeHidden}}
|
{{if $file.ShouldBeHidden}}
|
||||||
{{svg "octicon-chevron-right" 18}}
|
{{svg "octicon-chevron-right" 18}}
|
||||||
@ -119,7 +119,7 @@
|
|||||||
{{svg "octicon-chevron-down" 18}}
|
{{svg "octicon-chevron-down" 18}}
|
||||||
{{end}}
|
{{end}}
|
||||||
</button>
|
</button>
|
||||||
<div class="gt-font-semibold tw-flex tw-content-center gt-mono">
|
<div class="gt-font-semibold tw-flex tw-items-center gt-mono">
|
||||||
{{if $file.IsBin}}
|
{{if $file.IsBin}}
|
||||||
<span class="gt-ml-1 gt-mr-3">
|
<span class="gt-ml-1 gt-mr-3">
|
||||||
{{ctx.Locale.Tr "repo.diff.bin"}}
|
{{ctx.Locale.Tr "repo.diff.bin"}}
|
||||||
@ -144,7 +144,7 @@
|
|||||||
<span class="gt-ml-4 gt-mono">{{ctx.Locale.Tr ($file.ModeTranslationKey $file.Mode)}}</span>
|
<span class="gt-ml-4 gt-mono">{{ctx.Locale.Tr ($file.ModeTranslationKey $file.Mode)}}</span>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
<div class="diff-file-header-actions tw-flex tw-content-center gt-gap-2 tw-flex-wrap">
|
<div class="diff-file-header-actions tw-flex tw-items-center gt-gap-2 tw-flex-wrap">
|
||||||
{{if $showFileViewToggle}}
|
{{if $showFileViewToggle}}
|
||||||
<div class="ui compact icon buttons">
|
<div class="ui compact icon buttons">
|
||||||
<button class="ui tiny basic button file-view-toggle" data-toggle-selector="#diff-source-{{$file.NameHash}}" data-tooltip-content="{{ctx.Locale.Tr "repo.file_view_source"}}">{{svg "octicon-code"}}</button>
|
<button class="ui tiny basic button file-view-toggle" data-toggle-selector="#diff-source-{{$file.NameHash}}" data-tooltip-content="{{ctx.Locale.Tr "repo.file_view_source"}}">{{svg "octicon-code"}}</button>
|
||||||
@ -218,7 +218,7 @@
|
|||||||
|
|
||||||
{{if .Diff.IsIncomplete}}
|
{{if .Diff.IsIncomplete}}
|
||||||
<div class="diff-file-box diff-box file-content gt-mt-3" id="diff-incomplete">
|
<div class="diff-file-box diff-box file-content gt-mt-3" id="diff-incomplete">
|
||||||
<h4 class="ui top attached normal header tw-flex tw-content-center tw-justify-between">
|
<h4 class="ui top attached normal header tw-flex tw-items-center tw-justify-between">
|
||||||
{{ctx.Locale.Tr "repo.diff.too_many_files"}}
|
{{ctx.Locale.Tr "repo.diff.too_many_files"}}
|
||||||
<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>
|
<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>
|
||||||
</h4>
|
</h4>
|
||||||
|
@ -8,8 +8,8 @@
|
|||||||
{{template "shared/user/avatarlink" dict "user" .Poster}}
|
{{template "shared/user/avatarlink" dict "user" .Poster}}
|
||||||
{{end}}
|
{{end}}
|
||||||
<div class="content comment-container">
|
<div class="content comment-container">
|
||||||
<div class="ui top attached header comment-header tw-flex tw-content-center tw-justify-between">
|
<div class="ui top attached header comment-header tw-flex tw-items-center tw-justify-between">
|
||||||
<div class="comment-header-left tw-flex tw-content-center">
|
<div class="comment-header-left tw-flex tw-items-center">
|
||||||
{{if .OriginalAuthor}}
|
{{if .OriginalAuthor}}
|
||||||
<span class="text black gt-font-semibold gt-mr-2">
|
<span class="text black gt-font-semibold gt-mr-2">
|
||||||
{{svg (MigrationIcon $.root.Repository.GetOriginalURLHostname)}}
|
{{svg (MigrationIcon $.root.Repository.GetOriginalURLHostname)}}
|
||||||
@ -30,7 +30,7 @@
|
|||||||
</span>
|
</span>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
<div class="comment-header-right actions tw-flex tw-content-center">
|
<div class="comment-header-right actions tw-flex tw-items-center">
|
||||||
{{if .Invalidated}}
|
{{if .Invalidated}}
|
||||||
{{$referenceUrl := printf "%s#%s" $.root.Issue.Link .HashTag}}
|
{{$referenceUrl := printf "%s#%s" $.root.Issue.Link .HashTag}}
|
||||||
<a href="{{$referenceUrl}}" class="ui label basic small" data-tooltip-content="{{ctx.Locale.Tr "repo.issues.review.outdated_description"}}">
|
<a href="{{$referenceUrl}}" class="ui label basic small" data-tooltip-content="{{ctx.Locale.Tr "repo.issues.review.outdated_description"}}">
|
||||||
|
@ -8,8 +8,8 @@
|
|||||||
{{$referenceUrl := printf "%s#%s" $.Issue.Link $comment.HashTag}}
|
{{$referenceUrl := printf "%s#%s" $.Issue.Link $comment.HashTag}}
|
||||||
<div class="conversation-holder" data-path="{{$comment.TreePath}}" data-side="{{if lt $comment.Line 0}}left{{else}}right{{end}}" data-idx="{{$comment.UnsignedLine}}">
|
<div class="conversation-holder" data-path="{{$comment.TreePath}}" data-side="{{if lt $comment.Line 0}}left{{else}}right{{end}}" data-idx="{{$comment.UnsignedLine}}">
|
||||||
{{if $resolved}}
|
{{if $resolved}}
|
||||||
<div class="ui attached header resolved-placeholder tw-flex tw-content-center tw-justify-between">
|
<div class="ui attached header resolved-placeholder tw-flex tw-items-center tw-justify-between">
|
||||||
<div class="ui grey text tw-flex tw-content-center tw-flex-wrap gt-gap-2">
|
<div class="ui grey text tw-flex tw-items-center tw-flex-wrap gt-gap-2">
|
||||||
{{svg "octicon-check" 16 "icon gt-mr-2"}}
|
{{svg "octicon-check" 16 "icon gt-mr-2"}}
|
||||||
<b>{{$resolveDoer.Name}}</b> {{ctx.Locale.Tr "repo.issues.review.resolved_by"}}
|
<b>{{$resolveDoer.Name}}</b> {{ctx.Locale.Tr "repo.issues.review.resolved_by"}}
|
||||||
{{if $invalid}}
|
{{if $invalid}}
|
||||||
@ -22,12 +22,12 @@
|
|||||||
</a>
|
</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
<div class="tw-flex tw-content-center gt-gap-3">
|
<div class="tw-flex tw-items-center gt-gap-3">
|
||||||
<button id="show-outdated-{{$comment.ID}}" data-comment="{{$comment.ID}}" class="ui tiny labeled button show-outdated tw-flex tw-content-center">
|
<button id="show-outdated-{{$comment.ID}}" data-comment="{{$comment.ID}}" class="ui tiny labeled button show-outdated tw-flex tw-items-center">
|
||||||
{{svg "octicon-unfold" 16 "gt-mr-3"}}
|
{{svg "octicon-unfold" 16 "gt-mr-3"}}
|
||||||
{{ctx.Locale.Tr "repo.issues.review.show_resolved"}}
|
{{ctx.Locale.Tr "repo.issues.review.show_resolved"}}
|
||||||
</button>
|
</button>
|
||||||
<button id="hide-outdated-{{$comment.ID}}" data-comment="{{$comment.ID}}" class="ui tiny labeled button hide-outdated tw-flex tw-content-center gt-hidden">
|
<button id="hide-outdated-{{$comment.ID}}" data-comment="{{$comment.ID}}" class="ui tiny labeled button hide-outdated tw-flex tw-items-center gt-hidden">
|
||||||
{{svg "octicon-fold" 16 "gt-mr-3"}}
|
{{svg "octicon-fold" 16 "gt-mr-3"}}
|
||||||
{{ctx.Locale.Tr "repo.issues.review.hide_resolved"}}
|
{{ctx.Locale.Tr "repo.issues.review.hide_resolved"}}
|
||||||
</button>
|
</button>
|
||||||
@ -40,7 +40,7 @@
|
|||||||
{{template "repo/diff/comments" dict "root" $ "comments" .comments}}
|
{{template "repo/diff/comments" dict "root" $ "comments" .comments}}
|
||||||
</ui>
|
</ui>
|
||||||
</div>
|
</div>
|
||||||
<div class="tw-flex tw-justify-end tw-content-center tw-flex-wrap gt-mt-3">
|
<div class="tw-flex tw-justify-end tw-items-center tw-flex-wrap gt-mt-3">
|
||||||
<div class="ui buttons gt-mr-2">
|
<div class="ui buttons gt-mr-2">
|
||||||
<button class="ui icon tiny basic button previous-conversation">
|
<button class="ui icon tiny basic button previous-conversation">
|
||||||
{{svg "octicon-arrow-up" 12 "icon"}} {{ctx.Locale.Tr "repo.issues.previous"}}
|
{{svg "octicon-arrow-up" 12 "icon"}} {{ctx.Locale.Tr "repo.issues.previous"}}
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
<form class="ui form form-fetch-action" action="{{.Link}}/reviews/submit" method="post">
|
<form class="ui form form-fetch-action" action="{{.Link}}/reviews/submit" method="post">
|
||||||
{{.CsrfTokenHtml}}
|
{{.CsrfTokenHtml}}
|
||||||
<input type="hidden" name="commit_id" value="{{.AfterCommitID}}">
|
<input type="hidden" name="commit_id" value="{{.AfterCommitID}}">
|
||||||
<div class="field tw-flex tw-content-center">
|
<div class="field tw-flex tw-items-center">
|
||||||
<div class="tw-flex-1">{{ctx.Locale.Tr "repo.diff.review.header"}}</div>
|
<div class="tw-flex-1">{{ctx.Locale.Tr "repo.diff.review.header"}}</div>
|
||||||
<a class="muted close">{{svg "octicon-x" 16}}</a>
|
<a class="muted close">{{svg "octicon-x" 16}}</a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<div role="main" aria-label="{{.Title}}" class="page-content repository">
|
<div role="main" aria-label="{{.Title}}" class="page-content repository">
|
||||||
{{template "repo/header" .}}
|
{{template "repo/header" .}}
|
||||||
<div class="ui container">
|
<div class="ui container">
|
||||||
<div class="tw-flex tw-content-center">
|
<div class="tw-flex tw-items-center">
|
||||||
<a href="{{$.RepoLink}}">{{.RepoName}}</a>
|
<a href="{{$.RepoLink}}">{{.RepoName}}</a>
|
||||||
<span class="gt-mx-3">/</span>
|
<span class="gt-mx-3">/</span>
|
||||||
<div class="ui input tw-flex-1">
|
<div class="ui input tw-flex-1">
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
{{ctx.Locale.Tr "repo.forks"}}
|
{{ctx.Locale.Tr "repo.forks"}}
|
||||||
</h2>
|
</h2>
|
||||||
{{range .Forks}}
|
{{range .Forks}}
|
||||||
<div class="tw-flex tw-content-center gt-py-3">
|
<div class="tw-flex tw-items-center gt-py-3">
|
||||||
<span class="gt-mr-2">{{ctx.AvatarUtils.Avatar .Owner}}</span>
|
<span class="gt-mr-2">{{ctx.AvatarUtils.Avatar .Owner}}</span>
|
||||||
<a href="{{.Owner.HomeLink}}">{{.Owner.Name}}</a> / <a href="{{.Link}}">{{.Name}}</a>
|
<a href="{{.Owner.HomeLink}}">{{.Owner.Name}}</a> / <a href="{{.Link}}">{{.Name}}</a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
<span class="message tw-inline-block gt-ellipsis gt-mr-3">
|
<span class="message tw-inline-block gt-ellipsis gt-mr-3">
|
||||||
<span>{{RenderCommitMessage $.Context $commit.Subject ($.Repository.ComposeMetas ctx)}}</span>
|
<span>{{RenderCommitMessage $.Context $commit.Subject ($.Repository.ComposeMetas ctx)}}</span>
|
||||||
</span>
|
</span>
|
||||||
<span class="commit-refs tw-flex tw-content-center gt-mr-2">
|
<span class="commit-refs tw-flex tw-items-center gt-mr-2">
|
||||||
{{range $commit.Refs}}
|
{{range $commit.Refs}}
|
||||||
{{$refGroup := .RefGroup}}
|
{{$refGroup := .RefGroup}}
|
||||||
{{if eq $refGroup "pull"}}
|
{{if eq $refGroup "pull"}}
|
||||||
@ -58,7 +58,7 @@
|
|||||||
{{end}}
|
{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
</span>
|
</span>
|
||||||
<span class="author tw-flex tw-content-center gt-mr-3">
|
<span class="author tw-flex tw-items-center gt-mr-3">
|
||||||
{{$userName := $commit.Commit.Author.Name}}
|
{{$userName := $commit.Commit.Author.Name}}
|
||||||
{{if $commit.User}}
|
{{if $commit.User}}
|
||||||
{{if $commit.User.FullName}}
|
{{if $commit.User.FullName}}
|
||||||
@ -71,7 +71,7 @@
|
|||||||
{{$userName}}
|
{{$userName}}
|
||||||
{{end}}
|
{{end}}
|
||||||
</span>
|
</span>
|
||||||
<span class="time tw-flex tw-content-center">{{DateTime "full" $commit.Date}}</span>
|
<span class="time tw-flex tw-items-center">{{DateTime "full" $commit.Date}}</span>
|
||||||
{{end}}
|
{{end}}
|
||||||
</li>
|
</li>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
{{with .Repository}}
|
{{with .Repository}}
|
||||||
<div class="ui container">
|
<div class="ui container">
|
||||||
<div class="repo-header">
|
<div class="repo-header">
|
||||||
<div class="flex-item tw-content-center">
|
<div class="flex-item tw-items-center">
|
||||||
<div class="flex-item-leading">
|
<div class="flex-item-leading">
|
||||||
{{template "repo/icon" .}}
|
{{template "repo/icon" .}}
|
||||||
</div>
|
</div>
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
<div class="tw-flex tw-content-center tw-flex-wrap gt-gap-2" id="repo-topics">
|
<div class="tw-flex tw-items-center tw-flex-wrap gt-gap-2" id="repo-topics">
|
||||||
{{range .Topics}}<a class="ui repo-topic large label topic gt-m-0" href="{{AppSubUrl}}/explore/repos?q={{.Name}}&topic=1">{{.Name}}</a>{{end}}
|
{{range .Topics}}<a class="ui repo-topic large label topic gt-m-0" href="{{AppSubUrl}}/explore/repos?q={{.Name}}&topic=1">{{.Name}}</a>{{end}}
|
||||||
{{if and .Permission.IsAdmin (not .Repository.IsArchived)}}<button id="manage_topic" class="btn interact-fg gt-font-12">{{ctx.Locale.Tr "repo.topic.manage_topics"}}</button>{{end}}
|
{{if and .Permission.IsAdmin (not .Repository.IsArchived)}}<button id="manage_topic" class="btn interact-fg gt-font-12">{{ctx.Locale.Tr "repo.topic.manage_topics"}}</button>{{end}}
|
||||||
</div>
|
</div>
|
||||||
@ -61,7 +61,7 @@
|
|||||||
{{end}}
|
{{end}}
|
||||||
{{template "repo/sub_menu" .}}
|
{{template "repo/sub_menu" .}}
|
||||||
<div class="repo-button-row">
|
<div class="repo-button-row">
|
||||||
<div class="tw-flex tw-content-center tw-flex-wrap gt-gap-y-3">
|
<div class="tw-flex tw-items-center tw-flex-wrap gt-gap-y-3">
|
||||||
{{template "repo/branch_dropdown" dict "root" . "ContainerClasses" "gt-mr-2"}}
|
{{template "repo/branch_dropdown" dict "root" . "ContainerClasses" "gt-mr-2"}}
|
||||||
{{if and .CanCompareOrPull .IsViewBranch (not .Repository.IsArchived)}}
|
{{if and .CanCompareOrPull .IsViewBranch (not .Repository.IsArchived)}}
|
||||||
{{$cmpBranch := ""}}
|
{{$cmpBranch := ""}}
|
||||||
@ -121,7 +121,7 @@
|
|||||||
</span>
|
</span>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
<div class="tw-flex tw-content-center">
|
<div class="tw-flex tw-items-center">
|
||||||
<!-- Only show clone panel in repository home page -->
|
<!-- Only show clone panel in repository home page -->
|
||||||
{{if eq $n 0}}
|
{{if eq $n 0}}
|
||||||
<div class="clone-panel ui action tiny input">
|
<div class="clone-panel ui action tiny input">
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<a class="issue-card-title muted issue-title" href="{{.Link}}">{{.Title | RenderEmoji ctx | RenderCodeBlock}}</a>
|
<a class="issue-card-title muted issue-title" href="{{.Link}}">{{.Title | RenderEmoji ctx | RenderCodeBlock}}</a>
|
||||||
{{if and $.isPinnedIssueCard $.Page.IsRepoAdmin}}
|
{{if and $.isPinnedIssueCard $.Page.IsRepoAdmin}}
|
||||||
<a role="button" class="issue-card-unpin muted tw-flex tw-content-center" data-tooltip-content={{ctx.Locale.Tr "repo.issues.unpin_issue"}} data-issue-id="{{.ID}}" data-unpin-url="{{$.Page.Link}}/unpin/{{.Index}}">
|
<a role="button" class="issue-card-unpin muted tw-flex tw-items-center" data-tooltip-content={{ctx.Locale.Tr "repo.issues.unpin_issue"}} data-issue-id="{{.ID}}" data-unpin-url="{{$.Page.Link}}/unpin/{{.Index}}">
|
||||||
{{svg "octicon-x" 16}}
|
{{svg "octicon-x" 16}}
|
||||||
</a>
|
</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
<div class="divider"></div>
|
<div class="divider"></div>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{$previousExclusiveScope = $exclusiveScope}}
|
{{$previousExclusiveScope = $exclusiveScope}}
|
||||||
<a class="item label-filter-item tw-flex tw-content-center" {{if .IsArchived}}data-is-archived{{end}} href="?q={{$.Keyword}}&type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&labels={{.QueryString}}&milestone={{$.MilestoneID}}&project={{$.ProjectID}}&assignee={{$.AssigneeID}}&poster={{$.PosterID}}{{if $.ShowArchivedLabels}}&archived=true{{end}}" data-label-id="{{.ID}}">
|
<a class="item label-filter-item tw-flex tw-items-center" {{if .IsArchived}}data-is-archived{{end}} href="?q={{$.Keyword}}&type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&labels={{.QueryString}}&milestone={{$.MilestoneID}}&project={{$.ProjectID}}&assignee={{$.AssigneeID}}&poster={{$.PosterID}}{{if $.ShowArchivedLabels}}&archived=true{{end}}" data-label-id="{{.ID}}">
|
||||||
{{if .IsExcluded}}
|
{{if .IsExcluded}}
|
||||||
{{svg "octicon-circle-slash"}}
|
{{svg "octicon-circle-slash"}}
|
||||||
{{else if .IsSelected}}
|
{{else if .IsSelected}}
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
<div class="tw-flex tw-flex-col gt-gap-3">
|
<div class="tw-flex tw-flex-col gt-gap-3">
|
||||||
<progress class="milestone-progress-big" value="{{.Milestone.Completeness}}" max="100"></progress>
|
<progress class="milestone-progress-big" value="{{.Milestone.Completeness}}" max="100"></progress>
|
||||||
<div class="tw-flex gt-gap-4">
|
<div class="tw-flex gt-gap-4">
|
||||||
<div classs="tw-flex tw-content-center">
|
<div classs="tw-flex tw-items-center">
|
||||||
{{$closedDate:= TimeSinceUnix .Milestone.ClosedDateUnix ctx.Locale}}
|
{{$closedDate:= TimeSinceUnix .Milestone.ClosedDateUnix ctx.Locale}}
|
||||||
{{if .IsClosed}}
|
{{if .IsClosed}}
|
||||||
{{svg "octicon-clock"}} {{ctx.Locale.Tr "repo.milestones.closed" $closedDate}}
|
{{svg "octicon-clock"}} {{ctx.Locale.Tr "repo.milestones.closed" $closedDate}}
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
{{svg "octicon-milestone" 16}}
|
{{svg "octicon-milestone" 16}}
|
||||||
<a class="muted" href="{{$.RepoLink}}/milestone/{{.ID}}">{{.Name}}</a>
|
<a class="muted" href="{{$.RepoLink}}/milestone/{{.ID}}">{{.Name}}</a>
|
||||||
</h3>
|
</h3>
|
||||||
<div class="tw-flex tw-content-center">
|
<div class="tw-flex tw-items-center">
|
||||||
<span class="gt-mr-3">{{.Completeness}}%</span>
|
<span class="gt-mr-3">{{.Completeness}}%</span>
|
||||||
<progress value="{{.Completeness}}" max="100"></progress>
|
<progress value="{{.Completeness}}" max="100"></progress>
|
||||||
</div>
|
</div>
|
||||||
|
@ -20,8 +20,8 @@
|
|||||||
</a>
|
</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
<div class="content comment-container">
|
<div class="content comment-container">
|
||||||
<div class="ui top attached header comment-header tw-flex tw-content-center tw-justify-between" role="heading" aria-level="3">
|
<div class="ui top attached header comment-header tw-flex tw-items-center tw-justify-between" role="heading" aria-level="3">
|
||||||
<div class="comment-header-left tw-flex tw-content-center">
|
<div class="comment-header-left tw-flex tw-items-center">
|
||||||
{{if .Issue.OriginalAuthor}}
|
{{if .Issue.OriginalAuthor}}
|
||||||
<span class="text black gt-font-semibold">
|
<span class="text black gt-font-semibold">
|
||||||
{{svg (MigrationIcon .Repository.GetOriginalURLHostname)}}
|
{{svg (MigrationIcon .Repository.GetOriginalURLHostname)}}
|
||||||
@ -43,7 +43,7 @@
|
|||||||
</span>
|
</span>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
<div class="comment-header-right actions tw-flex tw-content-center">
|
<div class="comment-header-right actions tw-flex tw-items-center">
|
||||||
{{template "repo/issue/view_content/show_role" dict "ShowRole" .Issue.ShowRole "IgnorePoster" true}}
|
{{template "repo/issue/view_content/show_role" dict "ShowRole" .Issue.ShowRole "IgnorePoster" true}}
|
||||||
{{if not $.Repository.IsArchived}}
|
{{if not $.Repository.IsArchived}}
|
||||||
{{template "repo/issue/view_content/add_reaction" dict "ctxData" $ "ActionURL" (printf "%s/issues/%d/reactions" $.RepoLink .Issue.Index)}}
|
{{template "repo/issue/view_content/add_reaction" dict "ctxData" $ "ActionURL" (printf "%s/issues/%d/reactions" $.RepoLink .Issue.Index)}}
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
<span><strong>{{.Name}}</strong></span>
|
<span><strong>{{.Name}}</strong></span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="gt-p-3 tw-flex tw-content-center">
|
<div class="gt-p-3 tw-flex tw-items-center">
|
||||||
<span class="ui text grey">{{.Size | FileSize}}</span>
|
<span class="ui text grey">{{.Size | FileSize}}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -25,8 +25,8 @@
|
|||||||
</a>
|
</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
<div class="content comment-container">
|
<div class="content comment-container">
|
||||||
<div class="ui top attached header comment-header tw-flex tw-content-center tw-justify-between" role="heading" aria-level="3">
|
<div class="ui top attached header comment-header tw-flex tw-items-center tw-justify-between" role="heading" aria-level="3">
|
||||||
<div class="comment-header-left tw-flex tw-content-center">
|
<div class="comment-header-left tw-flex tw-items-center">
|
||||||
{{if .OriginalAuthor}}
|
{{if .OriginalAuthor}}
|
||||||
<span class="text black gt-font-semibold gt-mr-2">
|
<span class="text black gt-font-semibold gt-mr-2">
|
||||||
{{svg (MigrationIcon $.Repository.GetOriginalURLHostname)}}
|
{{svg (MigrationIcon $.Repository.GetOriginalURLHostname)}}
|
||||||
@ -50,7 +50,7 @@
|
|||||||
</span>
|
</span>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
<div class="comment-header-right actions tw-flex tw-content-center">
|
<div class="comment-header-right actions tw-flex tw-items-center">
|
||||||
{{template "repo/issue/view_content/show_role" dict "ShowRole" .ShowRole}}
|
{{template "repo/issue/view_content/show_role" dict "ShowRole" .ShowRole}}
|
||||||
{{if not $.Repository.IsArchived}}
|
{{if not $.Repository.IsArchived}}
|
||||||
{{template "repo/issue/view_content/add_reaction" dict "ctxData" $ "ActionURL" (printf "%s/comments/%d/reactions" $.RepoLink .ID)}}
|
{{template "repo/issue/view_content/add_reaction" dict "ctxData" $ "ActionURL" (printf "%s/comments/%d/reactions" $.RepoLink .ID)}}
|
||||||
@ -402,8 +402,8 @@
|
|||||||
{{if or .Content .Attachments}}
|
{{if or .Content .Attachments}}
|
||||||
<div class="timeline-item comment">
|
<div class="timeline-item comment">
|
||||||
<div class="content comment-container">
|
<div class="content comment-container">
|
||||||
<div class="ui top attached header comment-header tw-flex tw-content-center tw-justify-between">
|
<div class="ui top attached header comment-header tw-flex tw-items-center tw-justify-between">
|
||||||
<div class="comment-header-left tw-flex tw-content-center">
|
<div class="comment-header-left tw-flex tw-items-center">
|
||||||
{{if gt .Poster.ID 0}}
|
{{if gt .Poster.ID 0}}
|
||||||
<a class="inline-timeline-avatar" href="{{.Poster.HomeLink}}">
|
<a class="inline-timeline-avatar" href="{{.Poster.HomeLink}}">
|
||||||
{{ctx.AvatarUtils.Avatar .Poster 24}}
|
{{ctx.AvatarUtils.Avatar .Poster 24}}
|
||||||
@ -424,7 +424,7 @@
|
|||||||
{{ctx.Locale.Tr "repo.issues.review.left_comment"}}
|
{{ctx.Locale.Tr "repo.issues.review.left_comment"}}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="comment-header-right actions tw-flex tw-content-center">
|
<div class="comment-header-right actions tw-flex tw-items-center">
|
||||||
{{template "repo/issue/view_content/show_role" dict "ShowRole" .ShowRole}}
|
{{template "repo/issue/view_content/show_role" dict "ShowRole" .ShowRole}}
|
||||||
{{if not $.Repository.IsArchived}}
|
{{if not $.Repository.IsArchived}}
|
||||||
{{template "repo/issue/view_content/add_reaction" dict "ctxData" $ "ActionURL" (printf "%s/comments/%d/reactions" $.RepoLink .ID)}}
|
{{template "repo/issue/view_content/add_reaction" dict "ctxData" $ "ActionURL" (printf "%s/comments/%d/reactions" $.RepoLink .ID)}}
|
||||||
@ -623,7 +623,7 @@
|
|||||||
{{if .Content}}
|
{{if .Content}}
|
||||||
<div class="timeline-item comment">
|
<div class="timeline-item comment">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="ui top attached header comment-header-left tw-flex tw-content-center arrow-top">
|
<div class="ui top attached header comment-header-left tw-flex tw-items-center arrow-top">
|
||||||
{{if gt .Poster.ID 0}}
|
{{if gt .Poster.ID 0}}
|
||||||
<a class="inline-timeline-avatar" href="{{.Poster.HomeLink}}">
|
<a class="inline-timeline-avatar" href="{{.Poster.HomeLink}}">
|
||||||
{{ctx.AvatarUtils.Avatar .Poster 24}}
|
{{ctx.AvatarUtils.Avatar .Poster 24}}
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
{{$hasReview := and $comment.Review}}
|
{{$hasReview := and $comment.Review}}
|
||||||
{{$isReviewPending := and $hasReview (eq $comment.Review.Type 0)}}
|
{{$isReviewPending := and $hasReview (eq $comment.Review.Type 0)}}
|
||||||
<div class="ui segments conversation-holder">
|
<div class="ui segments conversation-holder">
|
||||||
<div class="ui segment collapsible-comment-box gt-py-3 tw-flex tw-content-center tw-justify-between">
|
<div class="ui segment collapsible-comment-box gt-py-3 tw-flex tw-items-center tw-justify-between">
|
||||||
<div class="tw-flex tw-content-center">
|
<div class="tw-flex tw-items-center">
|
||||||
<a href="{{$comment.CodeCommentLink ctx}}" class="file-comment gt-ml-3 gt-word-break">{{$comment.TreePath}}</a>
|
<a href="{{$comment.CodeCommentLink ctx}}" class="file-comment gt-ml-3 gt-word-break">{{$comment.TreePath}}</a>
|
||||||
{{if $invalid}}
|
{{if $invalid}}
|
||||||
<span class="ui label basic small gt-ml-3" data-tooltip-content="{{ctx.Locale.Tr "repo.issues.review.outdated_description"}}">
|
<span class="ui label basic small gt-ml-3" data-tooltip-content="{{ctx.Locale.Tr "repo.issues.review.outdated_description"}}">
|
||||||
@ -17,7 +17,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
{{if or $invalid $resolved}}
|
{{if or $invalid $resolved}}
|
||||||
<button id="show-outdated-{{$comment.ID}}" data-comment="{{$comment.ID}}" class="{{if not $resolved}}gt-hidden {{end}}ui compact labeled button show-outdated tw-flex tw-content-center">
|
<button id="show-outdated-{{$comment.ID}}" data-comment="{{$comment.ID}}" class="{{if not $resolved}}gt-hidden {{end}}ui compact labeled button show-outdated tw-flex tw-items-center">
|
||||||
{{svg "octicon-unfold" 16 "gt-mr-3"}}
|
{{svg "octicon-unfold" 16 "gt-mr-3"}}
|
||||||
{{if $resolved}}
|
{{if $resolved}}
|
||||||
{{ctx.Locale.Tr "repo.issues.review.show_resolved"}}
|
{{ctx.Locale.Tr "repo.issues.review.show_resolved"}}
|
||||||
@ -25,7 +25,7 @@
|
|||||||
{{ctx.Locale.Tr "repo.issues.review.show_outdated"}}
|
{{ctx.Locale.Tr "repo.issues.review.show_outdated"}}
|
||||||
{{end}}
|
{{end}}
|
||||||
</button>
|
</button>
|
||||||
<button id="hide-outdated-{{$comment.ID}}" data-comment="{{$comment.ID}}" class="{{if $resolved}}gt-hidden {{end}}ui compact labeled button hide-outdated tw-flex tw-content-center">
|
<button id="hide-outdated-{{$comment.ID}}" data-comment="{{$comment.ID}}" class="{{if $resolved}}gt-hidden {{end}}ui compact labeled button hide-outdated tw-flex tw-items-center">
|
||||||
{{svg "octicon-fold" 16 "gt-mr-3"}}
|
{{svg "octicon-fold" 16 "gt-mr-3"}}
|
||||||
{{if $resolved}}
|
{{if $resolved}}
|
||||||
{{ctx.Locale.Tr "repo.issues.review.hide_resolved"}}
|
{{ctx.Locale.Tr "repo.issues.review.hide_resolved"}}
|
||||||
@ -58,7 +58,7 @@
|
|||||||
<div class="comment code-comment gt-pb-4" id="{{.HashTag}}">
|
<div class="comment code-comment gt-pb-4" id="{{.HashTag}}">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="header comment-header">
|
<div class="header comment-header">
|
||||||
<div class="comment-header-left tw-flex tw-content-center">
|
<div class="comment-header-left tw-flex tw-items-center">
|
||||||
{{if not .OriginalAuthor}}
|
{{if not .OriginalAuthor}}
|
||||||
<a class="avatar">
|
<a class="avatar">
|
||||||
{{ctx.AvatarUtils.Avatar .Poster 20}}
|
{{ctx.AvatarUtils.Avatar .Poster 20}}
|
||||||
@ -79,7 +79,7 @@
|
|||||||
{{ctx.Locale.Tr "repo.issues.commented_at" .HashTag $createdSubStr}}
|
{{ctx.Locale.Tr "repo.issues.commented_at" .HashTag $createdSubStr}}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="comment-header-right actions tw-flex tw-content-center">
|
<div class="comment-header-right actions tw-flex tw-items-center">
|
||||||
{{template "repo/issue/view_content/show_role" dict "ShowRole" .ShowRole}}
|
{{template "repo/issue/view_content/show_role" dict "ShowRole" .ShowRole}}
|
||||||
{{if not $.Repository.IsArchived}}
|
{{if not $.Repository.IsArchived}}
|
||||||
{{template "repo/issue/view_content/add_reaction" dict "ctxData" $ "ActionURL" (printf "%s/comments/%d/reactions" $.RepoLink .ID)}}
|
{{template "repo/issue/view_content/add_reaction" dict "ctxData" $ "ActionURL" (printf "%s/comments/%d/reactions" $.RepoLink .ID)}}
|
||||||
@ -109,7 +109,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
<div class="code-comment-buttons tw-flex tw-content-center tw-flex-wrap gt-mt-3 gt-mb-2 gt-mx-3">
|
<div class="code-comment-buttons tw-flex tw-items-center tw-flex-wrap gt-mt-3 gt-mb-2 gt-mx-3">
|
||||||
<div class="tw-flex-1">
|
<div class="tw-flex-1">
|
||||||
{{if $resolved}}
|
{{if $resolved}}
|
||||||
<div class="ui grey text">
|
<div class="ui grey text">
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
{{if .Issue.IsPull}}
|
{{if .Issue.IsPull}}
|
||||||
<input id="reviewer_id" name="reviewer_id" type="hidden" value="{{.reviewer_id}}">
|
<input id="reviewer_id" name="reviewer_id" type="hidden" value="{{.reviewer_id}}">
|
||||||
<div class="ui {{if or (and (not .Reviewers) (not .TeamReviewers)) (not .CanChooseReviewer) .Repository.IsArchived}}disabled{{end}} floating jump select-reviewers-modify dropdown">
|
<div class="ui {{if or (and (not .Reviewers) (not .TeamReviewers)) (not .CanChooseReviewer) .Repository.IsArchived}}disabled{{end}} floating jump select-reviewers-modify dropdown">
|
||||||
<a class="text tw-flex tw-content-center muted">
|
<a class="text tw-flex tw-items-center muted">
|
||||||
<strong>{{ctx.Locale.Tr "repo.issues.review.reviewers"}}</strong>
|
<strong>{{ctx.Locale.Tr "repo.issues.review.reviewers"}}</strong>
|
||||||
{{if and .CanChooseReviewer (not .Repository.IsArchived)}}
|
{{if and .CanChooseReviewer (not .Repository.IsArchived)}}
|
||||||
{{svg "octicon-gear" 16 "gt-ml-2"}}
|
{{svg "octicon-gear" 16 "gt-ml-2"}}
|
||||||
@ -50,17 +50,17 @@
|
|||||||
<span class="no-select item {{if or .OriginalReviews .PullReviewers}}gt-hidden{{end}}">{{ctx.Locale.Tr "repo.issues.new.no_reviewers"}}</span>
|
<span class="no-select item {{if or .OriginalReviews .PullReviewers}}gt-hidden{{end}}">{{ctx.Locale.Tr "repo.issues.new.no_reviewers"}}</span>
|
||||||
<div class="selected">
|
<div class="selected">
|
||||||
{{range .PullReviewers}}
|
{{range .PullReviewers}}
|
||||||
<div class="item tw-flex tw-content-center gt-py-3">
|
<div class="item tw-flex tw-items-center gt-py-3">
|
||||||
<div class="tw-flex tw-content-center tw-flex-1">
|
<div class="tw-flex tw-items-center tw-flex-1">
|
||||||
{{if .User}}
|
{{if .User}}
|
||||||
<a class="muted sidebar-item-link" href="{{.User.HomeLink}}">{{ctx.AvatarUtils.Avatar .User 20 "gt-mr-3"}}{{.User.GetDisplayName}}</a>
|
<a class="muted sidebar-item-link" href="{{.User.HomeLink}}">{{ctx.AvatarUtils.Avatar .User 20 "gt-mr-3"}}{{.User.GetDisplayName}}</a>
|
||||||
{{else if .Team}}
|
{{else if .Team}}
|
||||||
<span class="text">{{svg "octicon-people" 20 "gt-mr-3"}}{{$.Issue.Repo.OwnerName}}/{{.Team.Name}}</span>
|
<span class="text">{{svg "octicon-people" 20 "gt-mr-3"}}{{$.Issue.Repo.OwnerName}}/{{.Team.Name}}</span>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
<div class="tw-flex tw-content-center gt-gap-3">
|
<div class="tw-flex tw-items-center gt-gap-3">
|
||||||
{{if (and $.Permission.IsAdmin (or (eq .Review.Type 1) (eq .Review.Type 3)) (not $.Issue.IsClosed))}}
|
{{if (and $.Permission.IsAdmin (or (eq .Review.Type 1) (eq .Review.Type 3)) (not $.Issue.IsClosed))}}
|
||||||
<a href="#" class="ui muted icon tw-flex tw-content-center show-modal" data-tooltip-content="{{ctx.Locale.Tr "repo.issues.dismiss_review"}}" data-modal="#dismiss-review-modal-{{.Review.ID}}">
|
<a href="#" class="ui muted icon tw-flex tw-items-center show-modal" data-tooltip-content="{{ctx.Locale.Tr "repo.issues.dismiss_review"}}" data-modal="#dismiss-review-modal-{{.Review.ID}}">
|
||||||
{{svg "octicon-x" 20}}
|
{{svg "octicon-x" 20}}
|
||||||
</a>
|
</a>
|
||||||
<div class="ui small modal" id="dismiss-review-modal-{{.Review.ID}}">
|
<div class="ui small modal" id="dismiss-review-modal-{{.Review.ID}}">
|
||||||
@ -99,14 +99,14 @@
|
|||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{range .OriginalReviews}}
|
{{range .OriginalReviews}}
|
||||||
<div class="item tw-flex tw-content-center gt-py-3">
|
<div class="item tw-flex tw-items-center gt-py-3">
|
||||||
<div class="tw-flex tw-content-center tw-flex-1">
|
<div class="tw-flex tw-items-center tw-flex-1">
|
||||||
<a class="muted" href="{{$.Repository.OriginalURL}}" data-tooltip-content="{{ctx.Locale.Tr "repo.migrated_from_fake" $.Repository.GetOriginalURLHostname}}">
|
<a class="muted" href="{{$.Repository.OriginalURL}}" data-tooltip-content="{{ctx.Locale.Tr "repo.migrated_from_fake" $.Repository.GetOriginalURLHostname}}">
|
||||||
{{svg (MigrationIcon $.Repository.GetOriginalURLHostname) 20 "gt-mr-3"}}
|
{{svg (MigrationIcon $.Repository.GetOriginalURLHostname) 20 "gt-mr-3"}}
|
||||||
{{.OriginalAuthor}}
|
{{.OriginalAuthor}}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="tw-flex tw-content-center gt-gap-3">
|
<div class="tw-flex tw-items-center gt-gap-3">
|
||||||
{{svg (printf "octicon-%s" .Type.Icon) 16 (printf "text %s" (.HTMLTypeColorName))}}
|
{{svg (printf "octicon-%s" .Type.Icon) 16 (printf "text %s" (.HTMLTypeColorName))}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -361,7 +361,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{{if ne .Issue.DeadlineUnix 0}}
|
{{if ne .Issue.DeadlineUnix 0}}
|
||||||
<p>
|
<p>
|
||||||
<div class="tw-flex tw-justify-between tw-content-center">
|
<div class="tw-flex tw-justify-between tw-items-center">
|
||||||
<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}}>
|
<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}}>
|
||||||
{{svg "octicon-calendar" 16 "gt-mr-3"}}
|
{{svg "octicon-calendar" 16 "gt-mr-3"}}
|
||||||
{{DateTime "long" .Issue.DeadlineUnix.FormatDate}}
|
{{DateTime "long" .Issue.DeadlineUnix.FormatDate}}
|
||||||
@ -417,7 +417,7 @@
|
|||||||
</span>
|
</span>
|
||||||
<div class="ui relaxed divided list">
|
<div class="ui relaxed divided list">
|
||||||
{{range .BlockingDependencies}}
|
{{range .BlockingDependencies}}
|
||||||
<div class="item dependency{{if .Issue.IsClosed}} is-closed{{end}} tw-flex tw-content-center tw-justify-between">
|
<div class="item dependency{{if .Issue.IsClosed}} is-closed{{end}} tw-flex tw-items-center tw-justify-between">
|
||||||
<div class="item-left tw-flex tw-justify-center tw-flex-col tw-flex-1 gt-ellipsis">
|
<div class="item-left tw-flex tw-justify-center tw-flex-col tw-flex-1 gt-ellipsis">
|
||||||
<a class="title muted" href="{{.Issue.Link}}" data-tooltip-content="#{{.Issue.Index}} {{.Issue.Title | RenderEmoji $.Context}}">
|
<a class="title muted" href="{{.Issue.Link}}" data-tooltip-content="#{{.Issue.Index}} {{.Issue.Title | RenderEmoji $.Context}}">
|
||||||
#{{.Issue.Index}} {{.Issue.Title | RenderEmoji $.Context}}
|
#{{.Issue.Index}} {{.Issue.Title | RenderEmoji $.Context}}
|
||||||
@ -426,7 +426,7 @@
|
|||||||
{{.Repository.OwnerName}}/{{.Repository.Name}}
|
{{.Repository.OwnerName}}/{{.Repository.Name}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="item-right tw-flex tw-content-center gt-m-2">
|
<div class="item-right tw-flex tw-items-center gt-m-2">
|
||||||
{{if and $.CanCreateIssueDependencies (not $.Repository.IsArchived)}}
|
{{if and $.CanCreateIssueDependencies (not $.Repository.IsArchived)}}
|
||||||
<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"}}">
|
<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"}}">
|
||||||
{{svg "octicon-trash" 16}}
|
{{svg "octicon-trash" 16}}
|
||||||
@ -436,7 +436,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{if .BlockingDependenciesNotPermitted}}
|
{{if .BlockingDependenciesNotPermitted}}
|
||||||
<div class="item tw-flex tw-content-center tw-justify-between gt-ellipsis">
|
<div class="item tw-flex tw-items-center tw-justify-between gt-ellipsis">
|
||||||
<span>{{ctx.Locale.TrN (len .BlockingDependenciesNotPermitted) "repo.issues.dependency.no_permission_1" "repo.issues.dependency.no_permission_n" (len .BlockingDependenciesNotPermitted)}}</span>
|
<span>{{ctx.Locale.TrN (len .BlockingDependenciesNotPermitted) "repo.issues.dependency.no_permission_1" "repo.issues.dependency.no_permission_n" (len .BlockingDependenciesNotPermitted)}}</span>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
@ -449,7 +449,7 @@
|
|||||||
</span>
|
</span>
|
||||||
<div class="ui relaxed divided list">
|
<div class="ui relaxed divided list">
|
||||||
{{range .BlockedByDependencies}}
|
{{range .BlockedByDependencies}}
|
||||||
<div class="item dependency{{if .Issue.IsClosed}} is-closed{{end}} tw-flex tw-content-center tw-justify-between">
|
<div class="item dependency{{if .Issue.IsClosed}} is-closed{{end}} tw-flex tw-items-center tw-justify-between">
|
||||||
<div class="item-left tw-flex tw-justify-center tw-flex-col tw-flex-1 gt-ellipsis">
|
<div class="item-left tw-flex tw-justify-center tw-flex-col tw-flex-1 gt-ellipsis">
|
||||||
<a class="title muted" href="{{.Issue.Link}}" data-tooltip-content="#{{.Issue.Index}} {{.Issue.Title | RenderEmoji $.Context}}">
|
<a class="title muted" href="{{.Issue.Link}}" data-tooltip-content="#{{.Issue.Index}} {{.Issue.Title | RenderEmoji $.Context}}">
|
||||||
#{{.Issue.Index}} {{.Issue.Title | RenderEmoji $.Context}}
|
#{{.Issue.Index}} {{.Issue.Title | RenderEmoji $.Context}}
|
||||||
@ -458,7 +458,7 @@
|
|||||||
{{.Repository.OwnerName}}/{{.Repository.Name}}
|
{{.Repository.OwnerName}}/{{.Repository.Name}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="item-right tw-flex tw-content-center gt-m-2">
|
<div class="item-right tw-flex tw-items-center gt-m-2">
|
||||||
{{if and $.CanCreateIssueDependencies (not $.Repository.IsArchived)}}
|
{{if and $.CanCreateIssueDependencies (not $.Repository.IsArchived)}}
|
||||||
<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"}}">
|
<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"}}">
|
||||||
{{svg "octicon-trash" 16}}
|
{{svg "octicon-trash" 16}}
|
||||||
@ -469,7 +469,7 @@
|
|||||||
{{end}}
|
{{end}}
|
||||||
{{if $.CanCreateIssueDependencies}}
|
{{if $.CanCreateIssueDependencies}}
|
||||||
{{range .BlockedByDependenciesNotPermitted}}
|
{{range .BlockedByDependenciesNotPermitted}}
|
||||||
<div class="item dependency{{if .Issue.IsClosed}} is-closed{{end}} tw-flex tw-content-center tw-justify-between">
|
<div class="item dependency{{if .Issue.IsClosed}} is-closed{{end}} tw-flex tw-items-center tw-justify-between">
|
||||||
<div class="item-left tw-flex tw-justify-center tw-flex-col tw-flex-1 gt-ellipsis">
|
<div class="item-left tw-flex tw-justify-center tw-flex-col tw-flex-1 gt-ellipsis">
|
||||||
<div class="gt-ellipsis">
|
<div class="gt-ellipsis">
|
||||||
<span data-tooltip-content="{{ctx.Locale.Tr "repo.issues.dependency.no_permission.can_remove"}}">{{svg "octicon-lock" 16}}</span>
|
<span data-tooltip-content="{{ctx.Locale.Tr "repo.issues.dependency.no_permission.can_remove"}}">{{svg "octicon-lock" 16}}</span>
|
||||||
@ -481,7 +481,7 @@
|
|||||||
{{.Repository.OwnerName}}/{{.Repository.Name}}
|
{{.Repository.OwnerName}}/{{.Repository.Name}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="item-right tw-flex tw-content-center gt-m-2">
|
<div class="item-right tw-flex tw-items-center gt-m-2">
|
||||||
{{if and $.CanCreateIssueDependencies (not $.Repository.IsArchived)}}
|
{{if and $.CanCreateIssueDependencies (not $.Repository.IsArchived)}}
|
||||||
<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"}}">
|
<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"}}">
|
||||||
{{svg "octicon-trash" 16}}
|
{{svg "octicon-trash" 16}}
|
||||||
@ -491,7 +491,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{else if .BlockedByDependenciesNotPermitted}}
|
{{else if .BlockedByDependenciesNotPermitted}}
|
||||||
<div class="item tw-flex tw-content-center tw-justify-between gt-ellipsis">
|
<div class="item tw-flex tw-items-center tw-justify-between gt-ellipsis">
|
||||||
<span>{{ctx.Locale.TrN (len .BlockedByDependenciesNotPermitted) "repo.issues.dependency.no_permission_1" "repo.issues.dependency.no_permission_n" (len .BlockedByDependenciesNotPermitted)}}</span>
|
<span>{{ctx.Locale.TrN (len .BlockedByDependenciesNotPermitted) "repo.issues.dependency.no_permission_1" "repo.issues.dependency.no_permission_n" (len .BlockedByDependenciesNotPermitted)}}</span>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
@ -548,7 +548,7 @@
|
|||||||
<div class="divider"></div>
|
<div class="divider"></div>
|
||||||
<div class="ui equal width compact grid">
|
<div class="ui equal width compact grid">
|
||||||
{{$issueReferenceLink := printf "%s#%d" .Issue.Repo.FullName .Issue.Index}}
|
{{$issueReferenceLink := printf "%s#%d" .Issue.Repo.FullName .Issue.Index}}
|
||||||
<div class="row tw-content-center" data-tooltip-content="{{$issueReferenceLink}}">
|
<div class="row tw-items-center" data-tooltip-content="{{$issueReferenceLink}}">
|
||||||
<span class="text column truncate">{{ctx.Locale.Tr "repo.issues.reference_link" $issueReferenceLink}}</span>
|
<span class="text column truncate">{{ctx.Locale.Tr "repo.issues.reference_link" $issueReferenceLink}}</span>
|
||||||
<button class="ui two wide button column gt-p-3" data-clipboard-text="{{$issueReferenceLink}}">{{svg "octicon-copy" 14}}</button>
|
<button class="ui two wide button column gt-p-3" data-clipboard-text="{{$issueReferenceLink}}">{{svg "octicon-copy" 14}}</button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
{{template "repo/migrate/helper" .}}
|
{{template "repo/migrate/helper" .}}
|
||||||
<div class="ui cards migrate-entries">
|
<div class="ui cards migrate-entries">
|
||||||
{{range .Services}}
|
{{range .Services}}
|
||||||
<a class="ui card migrate-entry tw-flex tw-content-center" href="{{AppSubUrl}}/repo/migrate?service_type={{.}}&org={{$.Org}}&mirror={{$.Mirror}}">
|
<a class="ui card migrate-entry tw-flex tw-items-center" href="{{AppSubUrl}}/repo/migrate?service_type={{.}}&org={{$.Org}}&mirror={{$.Mirror}}">
|
||||||
{{if eq .Name "github"}}
|
{{if eq .Name "github"}}
|
||||||
{{svg "octicon-mark-github" 184 "gt-p-4"}}
|
{{svg "octicon-mark-github" 184 "gt-p-4"}}
|
||||||
{{else if eq .Name "gitlab"}}
|
{{else if eq .Name "gitlab"}}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<div role="main" aria-label="{{.Title}}" class="page-content repository projects view-project">
|
<div role="main" aria-label="{{.Title}}" class="page-content repository projects view-project">
|
||||||
{{template "repo/header" .}}
|
{{template "repo/header" .}}
|
||||||
<div class="ui container padded">
|
<div class="ui container padded">
|
||||||
<div class="tw-flex tw-justify-between tw-content-center gt-mb-4">
|
<div class="tw-flex tw-justify-between tw-items-center gt-mb-4">
|
||||||
{{template "repo/issue/navbar" .}}
|
{{template "repo/issue/navbar" .}}
|
||||||
<a class="ui small primary button" href="{{.RepoLink}}/issues/new/choose?project={{.Project.ID}}">{{ctx.Locale.Tr "repo.issues.new"}}</a>
|
<a class="ui small primary button" href="{{.RepoLink}}/issues/new/choose?project={{.Project.ID}}">{{ctx.Locale.Tr "repo.issues.new"}}</a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
{{ctx.Locale.Tr "repo.pulls.tab_files"}}
|
{{ctx.Locale.Tr "repo.pulls.tab_files"}}
|
||||||
<span class="ui small label">{{if .NumFiles}}{{.NumFiles}}{{else}}-{{end}}</span>
|
<span class="ui small label">{{if .NumFiles}}{{.NumFiles}}{{else}}-{{end}}</span>
|
||||||
</a>
|
</a>
|
||||||
<span class="item tw-ml-auto gt-pr-0 gt-font-bold tw-flex tw-content-center gt-gap-3">
|
<span class="item tw-ml-auto gt-pr-0 gt-font-bold tw-flex tw-items-center gt-gap-3">
|
||||||
<span><span class="text green">{{if .Diff.TotalAddition}}+{{.Diff.TotalAddition}}{{end}}</span> <span class="text red">{{if .Diff.TotalDeletion}}-{{.Diff.TotalDeletion}}{{end}}</span></span>
|
<span><span class="text green">{{if .Diff.TotalAddition}}+{{.Diff.TotalAddition}}{{end}}</span> <span class="text red">{{if .Diff.TotalDeletion}}-{{.Diff.TotalDeletion}}{{end}}</span></span>
|
||||||
<span class="diff-stats-bar">
|
<span class="diff-stats-bar">
|
||||||
<div class="diff-stats-add-bar" style="width: {{Eval 100 "*" .Diff.TotalAddition "/" "(" .Diff.TotalAddition "+" .Diff.TotalDeletion "+" 0.0 ")"}}%"></div>
|
<div class="diff-stats-add-bar" style="width: {{Eval 100 "*" .Diff.TotalAddition "/" "(" .Diff.TotalAddition "+" .Diff.TotalDeletion "+" 0.0 ")"}}%"></div>
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
<div class="ui twelve wide column detail">
|
<div class="ui twelve wide column detail">
|
||||||
<div class="tw-flex tw-content-center tw-justify-between tw-flex-wrap gt-mb-3">
|
<div class="tw-flex tw-items-center tw-justify-between tw-flex-wrap gt-mb-3">
|
||||||
<h4 class="release-list-title gt-word-break">
|
<h4 class="release-list-title gt-word-break">
|
||||||
{{if $.PageIsSingleTag}}{{$release.Title}}{{else}}<a href="{{$.RepoLink}}/releases/tag/{{$release.TagName | PathEscapeSegments}}">{{$release.Title}}</a>{{end}}
|
{{if $.PageIsSingleTag}}{{$release.Title}}{{else}}<a href="{{$.RepoLink}}/releases/tag/{{$release.TagName | PathEscapeSegments}}">{{$release.Title}}</a>{{end}}
|
||||||
{{template "repo/commit_statuses" dict "Status" $info.CommitStatus "Statuses" $info.CommitStatuses "AdditionalClasses" "tw-flex"}}
|
{{template "repo/commit_statuses" dict "Status" $info.CommitStatus "Statuses" $info.CommitStatuses "AdditionalClasses" "tw-flex"}}
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
{{if $canReadReleases}}
|
{{if $canReadReleases}}
|
||||||
<div class="tw-flex">
|
<div class="tw-flex">
|
||||||
<div class="tw-flex-1 tw-flex tw-content-center">
|
<div class="tw-flex-1 tw-flex tw-items-center">
|
||||||
<h2 class="ui compact small menu header small-menu-items">
|
<h2 class="ui compact small menu header small-menu-items">
|
||||||
<a class="{{if and .PageIsReleaseList (not .PageIsSingleTag)}}active {{end}}item" href="{{.RepoLink}}/releases">{{ctx.Locale.PrettyNumber .NumReleases}} {{ctx.Locale.TrN .NumReleases "repo.release" "repo.releases"}}</a>
|
<a class="{{if and .PageIsReleaseList (not .PageIsSingleTag)}}active {{end}}item" href="{{.RepoLink}}/releases">{{ctx.Locale.PrettyNumber .NumReleases}} {{ctx.Locale.TrN .NumReleases "repo.release" "repo.releases"}}</a>
|
||||||
{{if $canReadCode}}
|
{{if $canReadCode}}
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
<div class="ui attached segment">
|
<div class="ui attached segment">
|
||||||
<div class="flex-list">
|
<div class="flex-list">
|
||||||
{{range .ProtectedBranches}}
|
{{range .ProtectedBranches}}
|
||||||
<div class="flex-item tw-content-center">
|
<div class="flex-item tw-items-center">
|
||||||
<div class="flex-item-main">
|
<div class="flex-item-main">
|
||||||
<div class="flex-item-title">
|
<div class="flex-item-title">
|
||||||
<div class="ui basic primary label">{{.RuleName}}</div>
|
<div class="ui basic primary label">{{.RuleName}}</div>
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<div class="ui attached segment">
|
<div class="ui attached segment">
|
||||||
<div class="flex-list">
|
<div class="flex-list">
|
||||||
{{range .Collaborators}}
|
{{range .Collaborators}}
|
||||||
<div class="flex-item tw-content-center">
|
<div class="flex-item tw-items-center">
|
||||||
<div class="flex-item-leading">
|
<div class="flex-item-leading">
|
||||||
<a href="{{.HomeLink}}">{{ctx.AvatarUtils.Avatar . 32}}</a>
|
<a href="{{.HomeLink}}">{{ctx.AvatarUtils.Avatar . 32}}</a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -837,7 +837,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{if not .Repository.IsMirror}}
|
{{if not .Repository.IsMirror}}
|
||||||
<div class="flex-item tw-content-center">
|
<div class="flex-item tw-items-center">
|
||||||
<div class="flex-item-main">
|
<div class="flex-item-main">
|
||||||
{{if .Repository.IsArchived}}
|
{{if .Repository.IsArchived}}
|
||||||
<div class="flex-item-title">{{ctx.Locale.Tr "repo.settings.unarchive.header"}}</div>
|
<div class="flex-item-title">{{ctx.Locale.Tr "repo.settings.unarchive.header"}}</div>
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
{{template "base/alert" .}}
|
{{template "base/alert" .}}
|
||||||
{{template "repo/release_tag_header" .}}
|
{{template "repo/release_tag_header" .}}
|
||||||
<h4 class="ui top attached header">
|
<h4 class="ui top attached header">
|
||||||
<div class="five wide column tw-flex tw-content-center">
|
<div class="five wide column tw-flex tw-items-center">
|
||||||
{{svg "octicon-tag" 16 "gt-mr-2"}}{{ctx.Locale.Tr "repo.release.tags"}}
|
{{svg "octicon-tag" 16 "gt-mr-2"}}{{ctx.Locale.Tr "repo.release.tags"}}
|
||||||
</div>
|
</div>
|
||||||
</h4>
|
</h4>
|
||||||
@ -18,12 +18,12 @@
|
|||||||
<td class="tag">
|
<td class="tag">
|
||||||
<h3 class="release-tag-name gt-mb-3">
|
<h3 class="release-tag-name gt-mb-3">
|
||||||
{{if $canReadReleases}}
|
{{if $canReadReleases}}
|
||||||
<a class="tw-flex tw-content-center" href="{{$.RepoLink}}/releases/tag/{{.TagName | PathEscapeSegments}}" rel="nofollow">{{.TagName}}</a>
|
<a class="tw-flex tw-items-center" href="{{$.RepoLink}}/releases/tag/{{.TagName | PathEscapeSegments}}" rel="nofollow">{{.TagName}}</a>
|
||||||
{{else}}
|
{{else}}
|
||||||
<a class="tw-flex tw-content-center" href="{{$.RepoLink}}/src/tag/{{.TagName | PathEscapeSegments}}" rel="nofollow">{{.TagName}}</a>
|
<a class="tw-flex tw-items-center" href="{{$.RepoLink}}/src/tag/{{.TagName | PathEscapeSegments}}" rel="nofollow">{{.TagName}}</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
</h3>
|
</h3>
|
||||||
<div class="download tw-flex tw-content-center">
|
<div class="download tw-flex tw-items-center">
|
||||||
{{if $.Permission.CanRead $.UnitTypeCode}}
|
{{if $.Permission.CanRead $.UnitTypeCode}}
|
||||||
{{if .CreatedUnix}}
|
{{if .CreatedUnix}}
|
||||||
<span class="gt-mr-3">{{svg "octicon-clock" 16 "gt-mr-2"}}{{TimeSinceUnix .CreatedUnix ctx.Locale}}</span>
|
<span class="gt-mr-3">{{svg "octicon-clock" 16 "gt-mr-2"}}{{TimeSinceUnix .CreatedUnix ctx.Locale}}</span>
|
||||||
|
@ -25,8 +25,8 @@
|
|||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
<h4 class="file-header ui top attached header tw-flex tw-content-center tw-justify-between tw-flex-wrap">
|
<h4 class="file-header ui top attached header tw-flex tw-items-center tw-justify-between tw-flex-wrap">
|
||||||
<div class="file-header-left tw-flex tw-content-center gt-py-3 gt-pr-4">
|
<div class="file-header-left tw-flex tw-items-center gt-py-3 gt-pr-4">
|
||||||
{{if .ReadmeInList}}
|
{{if .ReadmeInList}}
|
||||||
{{svg "octicon-book" 16 "gt-mr-3"}}
|
{{svg "octicon-book" 16 "gt-mr-3"}}
|
||||||
<strong><a class="default-link muted" href="#readme">{{.FileName}}</a></strong>
|
<strong><a class="default-link muted" href="#readme">{{.FileName}}</a></strong>
|
||||||
@ -34,7 +34,7 @@
|
|||||||
{{template "repo/file_info" .}}
|
{{template "repo/file_info" .}}
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
<div class="file-header-right file-actions tw-flex tw-content-center tw-flex-wrap">
|
<div class="file-header-right file-actions tw-flex tw-items-center tw-flex-wrap">
|
||||||
{{if .HasSourceRenderedToggle}}
|
{{if .HasSourceRenderedToggle}}
|
||||||
<div class="ui compact icon buttons">
|
<div class="ui compact icon buttons">
|
||||||
<a href="?display=source" class="ui mini basic button {{if .IsDisplayingSource}}active{{end}}" data-tooltip-content="{{ctx.Locale.Tr "repo.file_view_source"}}">{{svg "octicon-code" 15}}</a>
|
<a href="?display=source" class="ui mini basic button {{if .IsDisplayingSource}}active{{end}}" data-tooltip-content="{{ctx.Locale.Tr "repo.file_view_source"}}">{{svg "octicon-code" 15}}</a>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<div role="main" aria-label="{{.Title}}" class="page-content repository wiki pages">
|
<div role="main" aria-label="{{.Title}}" class="page-content repository wiki pages">
|
||||||
{{template "repo/header" .}}
|
{{template "repo/header" .}}
|
||||||
<div class="ui container">
|
<div class="ui container">
|
||||||
<h2 class="ui header tw-flex tw-content-center tw-justify-between">
|
<h2 class="ui header tw-flex tw-items-center tw-justify-between">
|
||||||
<span>{{ctx.Locale.Tr "repo.wiki.pages"}}</span>
|
<span>{{ctx.Locale.Tr "repo.wiki.pages"}}</span>
|
||||||
<span>
|
<span>
|
||||||
{{if and .CanWriteWiki (not .Repository.IsMirror)}}
|
{{if and .CanWriteWiki (not .Repository.IsMirror)}}
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
{{$title := .title}}
|
{{$title := .title}}
|
||||||
<div class="ui container">
|
<div class="ui container">
|
||||||
<div class="repo-button-row">
|
<div class="repo-button-row">
|
||||||
<div class="tw-flex tw-content-center">
|
<div class="tw-flex tw-items-center">
|
||||||
<div class="ui floating filter dropdown" data-no-results="{{ctx.Locale.Tr "no_results_found"}}">
|
<div class="ui floating filter dropdown" data-no-results="{{ctx.Locale.Tr "no_results_found"}}">
|
||||||
<div class="ui basic small button">
|
<div class="ui basic small button">
|
||||||
<span class="text">
|
<span class="text">
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<div class="ui bottom attached table segment tw-flex tw-content-center tw-justify-between">
|
<div class="ui bottom attached table segment tw-flex tw-items-center tw-justify-between">
|
||||||
<div class="tw-flex tw-content-center gt-ml-4">
|
<div class="tw-flex tw-items-center gt-ml-4">
|
||||||
{{if .result.Language}}
|
{{if .result.Language}}
|
||||||
<i class="color-icon gt-mr-3" style="background-color: {{.result.Color}}"></i>{{.result.Language}}
|
<i class="color-icon gt-mr-3" style="background-color: {{.result.Color}}"></i>{{.result.Language}}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
{{if .Secrets}}
|
{{if .Secrets}}
|
||||||
<div class="flex-list">
|
<div class="flex-list">
|
||||||
{{range .Secrets}}
|
{{range .Secrets}}
|
||||||
<div class="flex-item tw-content-center">
|
<div class="flex-item tw-items-center">
|
||||||
<div class="flex-item-leading">
|
<div class="flex-item-leading">
|
||||||
{{svg "octicon-key" 32}}
|
{{svg "octicon-key" 32}}
|
||||||
</div>
|
</div>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<div class="ui container">
|
<div class="ui container">
|
||||||
<div class="ui vertically grid head">
|
<div class="ui vertically grid head">
|
||||||
<div class="column">
|
<div class="column">
|
||||||
<div class="ui header tw-flex tw-content-center gt-word-break">
|
<div class="ui header tw-flex tw-items-center gt-word-break">
|
||||||
{{ctx.AvatarUtils.Avatar . 100}}
|
{{ctx.AvatarUtils.Avatar . 100}}
|
||||||
<span class="text thin grey"><a href="{{.HomeLink}}">{{.DisplayName}}</a></span>
|
<span class="text thin grey"><a href="{{.HomeLink}}">{{.DisplayName}}</a></span>
|
||||||
<span class="org-visibility">
|
<span class="org-visibility">
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
{{if .Variables}}
|
{{if .Variables}}
|
||||||
<div class="flex-list">
|
<div class="flex-list">
|
||||||
{{range .Variables}}
|
{{range .Variables}}
|
||||||
<div class="flex-item tw-content-center">
|
<div class="flex-item tw-items-center">
|
||||||
<div class="flex-item-leading">
|
<div class="flex-item-leading">
|
||||||
{{svg "octicon-pencil" 32}}
|
{{svg "octicon-pencil" 32}}
|
||||||
</div>
|
</div>
|
||||||
|
@ -55,9 +55,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<div id="oauth2-login-navigator" class="gt-py-2">
|
<div id="oauth2-login-navigator" class="gt-py-2">
|
||||||
<div class="tw-flex tw-flex-col tw-justify-center">
|
<div class="tw-flex tw-flex-col tw-justify-center">
|
||||||
<div id="oauth2-login-navigator-inner" class="tw-flex tw-flex-col tw-flex-wrap tw-content-center gt-gap-3">
|
<div id="oauth2-login-navigator-inner" class="tw-flex tw-flex-col tw-flex-wrap tw-items-center gt-gap-3">
|
||||||
{{range $provider := .OAuth2Providers}}
|
{{range $provider := .OAuth2Providers}}
|
||||||
<a class="{{$provider.Name}} ui button tw-flex tw-content-center tw-justify-center gt-py-3 tw-w-full oauth-login-link" href="{{AppSubUrl}}/user/oauth2/{{$provider.DisplayName}}">
|
<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}}">
|
||||||
{{$provider.IconHTML 28}}
|
{{$provider.IconHTML 28}}
|
||||||
{{ctx.Locale.Tr "sign_in_with_provider" $provider.DisplayName}}
|
{{ctx.Locale.Tr "sign_in_with_provider" $provider.DisplayName}}
|
||||||
</a>
|
</a>
|
||||||
|
@ -60,9 +60,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<div id="oauth2-login-navigator" class="gt-py-2">
|
<div id="oauth2-login-navigator" class="gt-py-2">
|
||||||
<div class="tw-flex tw-flex-col tw-justify-center">
|
<div class="tw-flex tw-flex-col tw-justify-center">
|
||||||
<div id="oauth2-login-navigator-inner" class="tw-flex tw-flex-col tw-flex-wrap tw-content-center gt-gap-3">
|
<div id="oauth2-login-navigator-inner" class="tw-flex tw-flex-col tw-flex-wrap tw-items-center gt-gap-3">
|
||||||
{{range $provider := .OAuth2Providers}}
|
{{range $provider := .OAuth2Providers}}
|
||||||
<a class="{{$provider.Name}} ui button tw-flex tw-content-center tw-justify-center gt-py-3 tw-w-full oauth-login-link" href="{{AppSubUrl}}/user/oauth2/{{$provider.DisplayName}}">
|
<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}}">
|
||||||
{{$provider.IconHTML 28}}
|
{{$provider.IconHTML 28}}
|
||||||
{{ctx.Locale.Tr "sign_in_with_provider" $provider.DisplayName}}
|
{{ctx.Locale.Tr "sign_in_with_provider" $provider.DisplayName}}
|
||||||
</a>
|
</a>
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
{{template "base/alert" .}}
|
{{template "base/alert" .}}
|
||||||
<p>{{ctx.Locale.Tr "webauthn_sign_in"}}</p>
|
<p>{{ctx.Locale.Tr "webauthn_sign_in"}}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="ui attached segment tw-flex tw-content-center tw-justify-center gt-gap-2 gt-py-3">
|
<div class="ui attached segment tw-flex tw-items-center tw-justify-center gt-gap-2 gt-py-3">
|
||||||
<div class="is-loading" style="width: 40px; height: 40px"></div>
|
<div class="is-loading" style="width: 40px; height: 40px"></div>
|
||||||
{{ctx.Locale.Tr "webauthn_press_button"}}
|
{{ctx.Locale.Tr "webauthn_press_button"}}
|
||||||
</div>
|
</div>
|
||||||
|
@ -79,7 +79,7 @@
|
|||||||
{{svg "octicon-milestone" 16}}
|
{{svg "octicon-milestone" 16}}
|
||||||
<a class="muted" href="{{.Repo.Link}}/milestone/{{.ID}}">{{.Name}}</a>
|
<a class="muted" href="{{.Repo.Link}}/milestone/{{.ID}}">{{.Name}}</a>
|
||||||
</h3>
|
</h3>
|
||||||
<div class="tw-flex tw-content-center">
|
<div class="tw-flex tw-items-center">
|
||||||
<span class="gt-mr-3">{{.Completeness}}%</span>
|
<span class="gt-mr-3">{{.Completeness}}%</span>
|
||||||
<progress value="{{.Completeness}}" max="100"></progress>
|
<progress value="{{.Completeness}}" max="100"></progress>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<div role="main" aria-label="{{.Title}}" class="page-content user notification" id="notification_div" data-sequence-number="{{.SequenceNumber}}">
|
<div role="main" aria-label="{{.Title}}" class="page-content user notification" id="notification_div" data-sequence-number="{{.SequenceNumber}}">
|
||||||
<div class="ui container">
|
<div class="ui container">
|
||||||
{{$notificationUnreadCount := call .NotificationUnreadCount}}
|
{{$notificationUnreadCount := call .NotificationUnreadCount}}
|
||||||
<div class="tw-flex tw-content-center tw-justify-between gt-mb-4">
|
<div class="tw-flex tw-items-center tw-justify-between gt-mb-4">
|
||||||
<div class="small-menu-items ui compact tiny menu">
|
<div class="small-menu-items ui compact tiny menu">
|
||||||
<a class="{{if eq .Status 1}}active {{end}}item" href="{{AppSubUrl}}/notifications?q=unread">
|
<a class="{{if eq .Status 1}}active {{end}}item" href="{{AppSubUrl}}/notifications?q=unread">
|
||||||
{{ctx.Locale.Tr "notification.unread"}}
|
{{ctx.Locale.Tr "notification.unread"}}
|
||||||
@ -25,7 +25,7 @@
|
|||||||
<div class="gt-p-0">
|
<div class="gt-p-0">
|
||||||
<div id="notification_table">
|
<div id="notification_table">
|
||||||
{{if not .Notifications}}
|
{{if not .Notifications}}
|
||||||
<div class="tw-flex tw-content-center tw-flex-col gt-p-4">
|
<div class="tw-flex tw-items-center tw-flex-col gt-p-4">
|
||||||
{{svg "octicon-inbox" 56 "gt-mb-4"}}
|
{{svg "octicon-inbox" 56 "gt-mb-4"}}
|
||||||
{{if eq .Status 1}}
|
{{if eq .Status 1}}
|
||||||
{{ctx.Locale.Tr "notification.no_unread"}}
|
{{ctx.Locale.Tr "notification.no_unread"}}
|
||||||
@ -35,7 +35,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{{else}}
|
{{else}}
|
||||||
{{range $notification := .Notifications}}
|
{{range $notification := .Notifications}}
|
||||||
<div class="notifications-item tw-flex tw-content-center tw-flex-wrap gt-gap-3 gt-p-3" id="notification_{{.ID}}" data-status="{{.Status}}">
|
<div class="notifications-item tw-flex tw-items-center tw-flex-wrap gt-gap-3 gt-p-3" id="notification_{{.ID}}" data-status="{{.Status}}">
|
||||||
<div class="notifications-icon gt-ml-3 gt-mr-2 tw-self-start gt-mt-2">
|
<div class="notifications-icon gt-ml-3 gt-mr-2 tw-self-start gt-mt-2">
|
||||||
{{if .Issue}}
|
{{if .Issue}}
|
||||||
{{template "shared/issueicon" .Issue}}
|
{{template "shared/issueicon" .Issue}}
|
||||||
@ -60,14 +60,14 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<div class="notifications-updated tw-content-center gt-mr-3">
|
<div class="notifications-updated tw-items-center gt-mr-3">
|
||||||
{{if .Issue}}
|
{{if .Issue}}
|
||||||
{{TimeSinceUnix .Issue.UpdatedUnix ctx.Locale}}
|
{{TimeSinceUnix .Issue.UpdatedUnix ctx.Locale}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{TimeSinceUnix .UpdatedUnix ctx.Locale}}
|
{{TimeSinceUnix .UpdatedUnix ctx.Locale}}
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
<div class="notifications-buttons tw-content-center tw-justify-end gt-gap-2 gt-px-2">
|
<div class="notifications-buttons tw-items-center tw-justify-end gt-gap-2 gt-px-2">
|
||||||
{{if ne .Status 3}}
|
{{if ne .Status 3}}
|
||||||
<form action="{{AppSubUrl}}/notifications/status" method="post">
|
<form action="{{AppSubUrl}}/notifications/status" method="post">
|
||||||
{{$.CsrfTokenHtml}}
|
{{$.CsrfTokenHtml}}
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
{{ctx.Locale.Tr "settings.oauth2_application_create_description"}}
|
{{ctx.Locale.Tr "settings.oauth2_application_create_description"}}
|
||||||
</div>
|
</div>
|
||||||
{{range .Applications}}
|
{{range .Applications}}
|
||||||
<div class="flex-item tw-content-center">
|
<div class="flex-item tw-items-center">
|
||||||
<div class="flex-item-leading">
|
<div class="flex-item-leading">
|
||||||
{{svg "octicon-apps" 32}}
|
{{svg "octicon-apps" 32}}
|
||||||
</div>
|
</div>
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
{{ctx.Locale.Tr "settings.openid_desc"}}
|
{{ctx.Locale.Tr "settings.openid_desc"}}
|
||||||
</div>
|
</div>
|
||||||
{{range .OpenIDs}}
|
{{range .OpenIDs}}
|
||||||
<div class="flex-item tw-content-center">
|
<div class="flex-item tw-items-center">
|
||||||
<div class="flex-item-leading">
|
<div class="flex-item-leading">
|
||||||
{{svg "fontawesome-openid" 20}}
|
{{svg "fontawesome-openid" 20}}
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<h4 class="ui top attached header">
|
<h4 class="ui top attached header">
|
||||||
{{.CustomHeaderTitle}}
|
{{.CustomHeaderTitle}}
|
||||||
<div class="ui right type dropdown">
|
<div class="ui right type dropdown">
|
||||||
<div class="text tw-flex tw-content-center">
|
<div class="text tw-flex tw-items-center">
|
||||||
{{template "shared/webhook/icon" (dict "Size" 20 "HookType" .ctxData.HookType)}}
|
{{template "shared/webhook/icon" (dict "Size" 20 "HookType" .ctxData.HookType)}}
|
||||||
{{ctx.Locale.Tr (print "repo.settings.web_hook_name_" .ctxData.HookType)}}
|
{{ctx.Locale.Tr (print "repo.settings.web_hook_name_" .ctxData.HookType)}}
|
||||||
</div>
|
</div>
|
||||||
|
@ -234,7 +234,7 @@ func TestViewTagsList(t *testing.T) {
|
|||||||
|
|
||||||
tagNames := make([]string, 0, 5)
|
tagNames := make([]string, 0, 5)
|
||||||
tags.Each(func(i int, s *goquery.Selection) {
|
tags.Each(func(i int, s *goquery.Selection) {
|
||||||
tagNames = append(tagNames, s.Find(".tag a.tw-flex.tw-content-center").Text())
|
tagNames = append(tagNames, s.Find(".tag a.tw-flex.tw-items-center").Text())
|
||||||
})
|
})
|
||||||
|
|
||||||
assert.EqualValues(t, []string{"v1.0", "delete-tag", "v1.1"}, tagNames)
|
assert.EqualValues(t, []string{"v1.0", "delete-tag", "v1.1"}, tagNames)
|
||||||
|
@ -28,7 +28,7 @@ export default {
|
|||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<span class="tw-flex tw-content-center" :data-tooltip-content="localeStatus" v-if="status">
|
<span class="tw-flex tw-items-center" :data-tooltip-content="localeStatus" v-if="status">
|
||||||
<SvgIcon name="octicon-check-circle-fill" class="text green" :size="size" :class-name="className" v-if="status === 'success'"/>
|
<SvgIcon name="octicon-check-circle-fill" class="text green" :size="size" :class-name="className" v-if="status === 'success'"/>
|
||||||
<SvgIcon name="octicon-skip" class="text grey" :size="size" :class-name="className" v-else-if="status === 'skipped'"/>
|
<SvgIcon name="octicon-skip" class="text grey" :size="size" :class-name="className" v-else-if="status === 'skipped'"/>
|
||||||
<SvgIcon name="octicon-clock" class="text yellow" :size="size" :class-name="className" v-else-if="status === 'waiting'"/>
|
<SvgIcon name="octicon-clock" class="text yellow" :size="size" :class-name="className" v-else-if="status === 'waiting'"/>
|
||||||
|
@ -345,12 +345,12 @@ export default sfc; // activate the IDE's Vue plugin
|
|||||||
<a :class="{item: true, active: tab === 'organizations'}" @click="changeTab('organizations')">{{ textOrganization }}</a>
|
<a :class="{item: true, active: tab === 'organizations'}" @click="changeTab('organizations')">{{ textOrganization }}</a>
|
||||||
</div>
|
</div>
|
||||||
<div v-show="tab === 'repos'" class="ui tab active list dashboard-repos">
|
<div v-show="tab === 'repos'" class="ui tab active list dashboard-repos">
|
||||||
<h4 class="ui top attached header tw-flex tw-content-center">
|
<h4 class="ui top attached header tw-flex tw-items-center">
|
||||||
<div class="tw-flex-1 tw-flex tw-content-center">
|
<div class="tw-flex-1 tw-flex tw-items-center">
|
||||||
{{ textMyRepos }}
|
{{ textMyRepos }}
|
||||||
<span class="ui grey label gt-ml-3">{{ reposTotalCount }}</span>
|
<span class="ui grey label gt-ml-3">{{ reposTotalCount }}</span>
|
||||||
</div>
|
</div>
|
||||||
<a class="tw-flex tw-content-center muted" :href="subUrl + '/repo/create' + (isOrganization ? '?org=' + organizationId : '')" :data-tooltip-content="textNewRepo">
|
<a class="tw-flex tw-items-center muted" :href="subUrl + '/repo/create' + (isOrganization ? '?org=' + organizationId : '')" :data-tooltip-content="textNewRepo">
|
||||||
<svg-icon name="octicon-plus"/>
|
<svg-icon name="octicon-plus"/>
|
||||||
</a>
|
</a>
|
||||||
</h4>
|
</h4>
|
||||||
@ -411,7 +411,7 @@ export default sfc; // activate the IDE's Vue plugin
|
|||||||
</div>
|
</div>
|
||||||
<div v-if="repos.length" class="ui attached table segment tw-rounded-b">
|
<div v-if="repos.length" class="ui attached table segment tw-rounded-b">
|
||||||
<ul class="repo-owner-name-list">
|
<ul class="repo-owner-name-list">
|
||||||
<li class="tw-flex tw-content-center gt-py-3" v-for="repo, index in repos" :class="{'active': index === activeIndex}" :key="repo.id">
|
<li class="tw-flex tw-items-center gt-py-3" v-for="repo, index in repos" :class="{'active': index === activeIndex}" :key="repo.id">
|
||||||
<a class="repo-list-link muted" :href="repo.link">
|
<a class="repo-list-link muted" :href="repo.link">
|
||||||
<svg-icon :name="repoIcon(repo)" :size="16" class-name="repo-list-icon"/>
|
<svg-icon :name="repoIcon(repo)" :size="16" class-name="repo-list-icon"/>
|
||||||
<div class="text truncate">{{ repo.full_name }}</div>
|
<div class="text truncate">{{ repo.full_name }}</div>
|
||||||
@ -419,7 +419,7 @@ export default sfc; // activate the IDE's Vue plugin
|
|||||||
<svg-icon name="octicon-archive" :size="16"/>
|
<svg-icon name="octicon-archive" :size="16"/>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<a class="tw-flex tw-content-center" v-if="repo.latest_commit_status_state" :href="repo.latest_commit_status_state_link" :data-tooltip-content="repo.locale_latest_commit_status_state">
|
<a class="tw-flex tw-items-center" v-if="repo.latest_commit_status_state" :href="repo.latest_commit_status_state_link" :data-tooltip-content="repo.locale_latest_commit_status_state">
|
||||||
<!-- the commit status icon logic is taken from templates/repo/commit_status.tmpl -->
|
<!-- the commit status icon logic is taken from templates/repo/commit_status.tmpl -->
|
||||||
<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"/>
|
<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"/>
|
||||||
</a>
|
</a>
|
||||||
@ -458,18 +458,18 @@ export default sfc; // activate the IDE's Vue plugin
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="!isOrganization" v-show="tab === 'organizations'" class="ui tab active list dashboard-orgs">
|
<div v-if="!isOrganization" v-show="tab === 'organizations'" class="ui tab active list dashboard-orgs">
|
||||||
<h4 class="ui top attached header tw-flex tw-content-center">
|
<h4 class="ui top attached header tw-flex tw-items-center">
|
||||||
<div class="tw-flex-1 tw-flex tw-content-center">
|
<div class="tw-flex-1 tw-flex tw-items-center">
|
||||||
{{ textMyOrgs }}
|
{{ textMyOrgs }}
|
||||||
<span class="ui grey label gt-ml-3">{{ organizationsTotalCount }}</span>
|
<span class="ui grey label gt-ml-3">{{ organizationsTotalCount }}</span>
|
||||||
</div>
|
</div>
|
||||||
<a class="tw-flex tw-content-center muted" v-if="canCreateOrganization" :href="subUrl + '/org/create'" :data-tooltip-content="textNewOrg">
|
<a class="tw-flex tw-items-center muted" v-if="canCreateOrganization" :href="subUrl + '/org/create'" :data-tooltip-content="textNewOrg">
|
||||||
<svg-icon name="octicon-plus"/>
|
<svg-icon name="octicon-plus"/>
|
||||||
</a>
|
</a>
|
||||||
</h4>
|
</h4>
|
||||||
<div v-if="organizations.length" class="ui attached table segment tw-rounded-b">
|
<div v-if="organizations.length" class="ui attached table segment tw-rounded-b">
|
||||||
<ul class="repo-owner-name-list">
|
<ul class="repo-owner-name-list">
|
||||||
<li class="tw-flex tw-content-center gt-py-3" v-for="org in organizations" :key="org.name">
|
<li class="tw-flex tw-items-center gt-py-3" v-for="org in organizations" :key="org.name">
|
||||||
<a class="repo-list-link muted" :href="subUrl + '/' + encodeURIComponent(org.name)">
|
<a class="repo-list-link muted" :href="subUrl + '/' + encodeURIComponent(org.name)">
|
||||||
<svg-icon name="octicon-organization" :size="16" class-name="repo-list-icon"/>
|
<svg-icon name="octicon-organization" :size="16" class-name="repo-list-icon"/>
|
||||||
<div class="text truncate">{{ org.name }}</div>
|
<div class="text truncate">{{ org.name }}</div>
|
||||||
@ -479,7 +479,7 @@ export default sfc; // activate the IDE's Vue plugin
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<div class="text light grey tw-flex tw-content-center gt-ml-3">
|
<div class="text light grey tw-flex tw-items-center gt-ml-3">
|
||||||
{{ org.num_repos }}
|
{{ org.num_repos }}
|
||||||
<svg-icon name="octicon-repo" :size="16" class-name="gt-ml-2 gt-mt-1"/>
|
<svg-icon name="octicon-repo" :size="16" class-name="gt-ml-2 gt-mt-1"/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -38,7 +38,7 @@ export default {
|
|||||||
<template>
|
<template>
|
||||||
<ol class="diff-stats gt-m-0" ref="root" v-if="store.fileListIsVisible">
|
<ol class="diff-stats gt-m-0" ref="root" v-if="store.fileListIsVisible">
|
||||||
<li v-for="file in store.files" :key="file.NameHash">
|
<li v-for="file in store.files" :key="file.NameHash">
|
||||||
<div class="gt-font-semibold tw-flex tw-content-center pull-right">
|
<div class="gt-font-semibold tw-flex tw-items-center pull-right">
|
||||||
<span v-if="file.IsBin" class="gt-ml-1 gt-mr-3">{{ store.binaryFileMessage }}</span>
|
<span v-if="file.IsBin" class="gt-ml-1 gt-mr-3">{{ store.binaryFileMessage }}</span>
|
||||||
{{ file.IsBin ? '' : file.Addition + file.Deletion }}
|
{{ file.IsBin ? '' : file.Addition + file.Deletion }}
|
||||||
<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)">
|
<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)">
|
||||||
@ -50,7 +50,7 @@ export default {
|
|||||||
<a class="file gt-mono" :href="'#diff-' + file.NameHash">{{ file.Name }}</a>
|
<a class="file gt-mono" :href="'#diff-' + file.NameHash">{{ file.Name }}</a>
|
||||||
</li>
|
</li>
|
||||||
<li v-if="store.isIncomplete" class="gt-pt-2">
|
<li v-if="store.isIncomplete" class="gt-pt-2">
|
||||||
<span class="file tw-flex tw-content-center tw-justify-between">{{ store.tooManyFilesMessage }}
|
<span class="file tw-flex tw-items-center tw-justify-between">{{ store.tooManyFilesMessage }}
|
||||||
<a :class="['ui', 'basic', 'tiny', 'button', store.isLoadingNewData ? 'disabled' : '']" @click.stop="loadMoreData">{{ store.showMoreMessage }}</a>
|
<a :class="['ui', 'basic', 'tiny', 'button', store.isLoadingNewData ? 'disabled' : '']" @click.stop="loadMoreData">{{ store.showMoreMessage }}</a>
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
|
@ -246,7 +246,7 @@ export default sfc; // activate IDE's Vue plugin
|
|||||||
<template>
|
<template>
|
||||||
<div class="ui dropdown custom">
|
<div class="ui dropdown custom">
|
||||||
<button class="branch-dropdown-button gt-ellipsis ui basic small compact button tw-flex gt-m-0" @click="menuVisible = !menuVisible" @keyup.enter="menuVisible = !menuVisible">
|
<button class="branch-dropdown-button gt-ellipsis ui basic small compact button tw-flex gt-m-0" @click="menuVisible = !menuVisible" @keyup.enter="menuVisible = !menuVisible">
|
||||||
<span class="text tw-flex tw-content-center gt-mr-2">
|
<span class="text tw-flex tw-items-center gt-mr-2">
|
||||||
<template v-if="release">{{ textReleaseCompare }}</template>
|
<template v-if="release">{{ textReleaseCompare }}</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<svg-icon v-if="isViewTag" name="octicon-tag"/>
|
<svg-icon v-if="isViewTag" name="octicon-tag"/>
|
||||||
|
@ -144,7 +144,7 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div class="ui header tw-flex tw-content-center tw-justify-between">
|
<div class="ui header tw-flex tw-items-center tw-justify-between">
|
||||||
{{ isLoading ? locale.loadingTitle : errorText ? locale.loadingTitleFailed: `Code frequency over the history of ${repoLink.slice(1)}` }}
|
{{ isLoading ? locale.loadingTitle : errorText ? locale.loadingTitleFailed: `Code frequency over the history of ${repoLink.slice(1)}` }}
|
||||||
</div>
|
</div>
|
||||||
<div class="tw-flex ui segment main-graph">
|
<div class="tw-flex ui segment main-graph">
|
||||||
|
@ -303,7 +303,7 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div class="ui header tw-flex tw-content-center tw-justify-between">
|
<div class="ui header tw-flex tw-items-center tw-justify-between">
|
||||||
<div>
|
<div>
|
||||||
<relative-time
|
<relative-time
|
||||||
v-if="xAxisMin > 0"
|
v-if="xAxisMin > 0"
|
||||||
|
@ -121,7 +121,7 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div class="ui header tw-flex tw-content-center tw-justify-between">
|
<div class="ui header tw-flex tw-items-center tw-justify-between">
|
||||||
{{ isLoading ? locale.loadingTitle : errorText ? locale.loadingTitleFailed: "Number of commits in the past year" }}
|
{{ isLoading ? locale.loadingTitle : errorText ? locale.loadingTitleFailed: "Number of commits in the past year" }}
|
||||||
</div>
|
</div>
|
||||||
<div class="tw-flex ui segment main-graph">
|
<div class="tw-flex ui segment main-graph">
|
||||||
|
@ -16,7 +16,7 @@ function showContentHistoryDetail(issueBaseUrl, commentId, historyId, itemTitleH
|
|||||||
$dialog = $(`
|
$dialog = $(`
|
||||||
<div class="ui modal content-history-detail-dialog">
|
<div class="ui modal content-history-detail-dialog">
|
||||||
${svg('octicon-x', 16, 'close icon inside')}
|
${svg('octicon-x', 16, 'close icon inside')}
|
||||||
<div class="header tw-flex tw-content-center tw-justify-between">
|
<div class="header tw-flex tw-items-center tw-justify-between">
|
||||||
<div>${itemTitleHtml}</div>
|
<div>${itemTitleHtml}</div>
|
||||||
<div class="ui dropdown dialog-header-options gt-mr-5 gt-hidden">
|
<div class="ui dropdown dialog-header-options gt-mr-5 gt-hidden">
|
||||||
${i18nTextOptions}
|
${i18nTextOptions}
|
||||||
|
Loading…
Reference in New Issue
Block a user