mirror of
https://github.com/go-gitea/gitea.git
synced 2025-12-13 06:09:50 +01:00
Misc icon tweaks
This commit is contained in:
parent
ede7f1a069
commit
c982031b15
@ -54,7 +54,7 @@
|
|||||||
<td>
|
<td>
|
||||||
<a href="{{.HomeLink}}">{{if and DefaultShowFullName .FullName}}{{.FullName}} ({{.Name}}){{else}}{{.Name}}{{end}}</a>
|
<a href="{{.HomeLink}}">{{if and DefaultShowFullName .FullName}}{{.FullName}} ({{.Name}}){{else}}{{.Name}}{{end}}</a>
|
||||||
{{if .Visibility.IsPrivate}}
|
{{if .Visibility.IsPrivate}}
|
||||||
<span class="text gold">{{svg "octicon-lock"}}</span>
|
{{svg "octicon-lock"}}
|
||||||
{{end}}
|
{{end}}
|
||||||
{{if eq .Type 3}}{{/* Reserved organization */}}
|
{{if eq .Type 3}}{{/* Reserved organization */}}
|
||||||
<span class="ui mini label">{{ctx.Locale.Tr "admin.users.reserved"}}</span>
|
<span class="ui mini label">{{ctx.Locale.Tr "admin.users.reserved"}}</span>
|
||||||
|
|||||||
@ -58,7 +58,7 @@
|
|||||||
<td>
|
<td>
|
||||||
<a href="{{.Owner.HomeLink}}">{{.Owner.Name}}</a>
|
<a href="{{.Owner.HomeLink}}">{{.Owner.Name}}</a>
|
||||||
{{if .Owner.Visibility.IsPrivate}}
|
{{if .Owner.Visibility.IsPrivate}}
|
||||||
<span class="text gold">{{svg "octicon-lock"}}</span>
|
{{svg "octicon-lock"}}
|
||||||
{{end}}
|
{{end}}
|
||||||
</td>
|
</td>
|
||||||
<td>{{.Package.Type.Name}}</td>
|
<td>{{.Package.Type.Name}}</td>
|
||||||
|
|||||||
@ -49,7 +49,7 @@
|
|||||||
<td>
|
<td>
|
||||||
<a class="tw-break-anywhere" href="{{.Owner.HomeLink}}">{{.Owner.Name}}</a>
|
<a class="tw-break-anywhere" href="{{.Owner.HomeLink}}">{{.Owner.Name}}</a>
|
||||||
{{if .Owner.Visibility.IsPrivate}}
|
{{if .Owner.Visibility.IsPrivate}}
|
||||||
<span class="text gold">{{svg "octicon-lock"}}</span>
|
{{svg "octicon-lock"}}
|
||||||
{{end}}
|
{{end}}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
|
|||||||
@ -5,6 +5,8 @@
|
|||||||
{{svg "octicon-mirror" 24}}
|
{{svg "octicon-mirror" 24}}
|
||||||
{{else if $.IsFork}}
|
{{else if $.IsFork}}
|
||||||
{{svg "octicon-repo-forked" 24}}
|
{{svg "octicon-repo-forked" 24}}
|
||||||
|
{{else if $.IsPrivate}}
|
||||||
|
{{svg "octicon-repo-locked" 24}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{svg "octicon-repo" 24}}
|
{{svg "octicon-repo" 24}}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|||||||
@ -59,11 +59,11 @@
|
|||||||
<div class="ui attached segment horizontal segments">
|
<div class="ui attached segment horizontal segments">
|
||||||
{{if .Permission.CanRead ctx.Consts.RepoUnitTypePullRequests}}
|
{{if .Permission.CanRead ctx.Consts.RepoUnitTypePullRequests}}
|
||||||
<a href="#merged-pull-requests" class="ui attached segment text center">
|
<a href="#merged-pull-requests" class="ui attached segment text center">
|
||||||
<span class="text purple">{{svg "octicon-git-pull-request"}}</span> <strong>{{.Activity.MergedPRCount}}</strong><br>
|
<span class="text purple">{{svg "octicon-git-merge"}}</span> <strong>{{.Activity.MergedPRCount}}</strong><br>
|
||||||
{{ctx.Locale.TrN .Activity.MergedPRCount "repo.activity.merged_prs_count_1" "repo.activity.merged_prs_count_n"}}
|
{{ctx.Locale.TrN .Activity.MergedPRCount "repo.activity.merged_prs_count_1" "repo.activity.merged_prs_count_n"}}
|
||||||
</a>
|
</a>
|
||||||
<a href="#proposed-pull-requests" class="ui attached segment text center">
|
<a href="#proposed-pull-requests" class="ui attached segment text center">
|
||||||
<span class="text green">{{svg "octicon-git-branch"}}</span> <strong>{{.Activity.OpenedPRCount}}</strong><br>
|
<span class="text green">{{svg "octicon-git-pull-request"}}</span> <strong>{{.Activity.OpenedPRCount}}</strong><br>
|
||||||
{{ctx.Locale.TrN .Activity.OpenedPRCount "repo.activity.opened_prs_count_1" "repo.activity.opened_prs_count_n"}}
|
{{ctx.Locale.TrN .Activity.OpenedPRCount "repo.activity.opened_prs_count_1" "repo.activity.opened_prs_count_n"}}
|
||||||
</a>
|
</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|||||||
@ -48,7 +48,7 @@
|
|||||||
</a>
|
</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
<a class="flex-text-inline" href="{{.Link}}/forks">
|
<a class="flex-text-inline" href="{{.Link}}/forks">
|
||||||
<span class="tw-contents" aria-label="{{ctx.Locale.Tr "repo.forks"}}">{{svg "octicon-git-branch" 16}}</span>
|
<span class="tw-contents" aria-label="{{ctx.Locale.Tr "repo.forks"}}">{{svg "octicon-repo-forked" 16}}</span>
|
||||||
<span {{if ge .NumForks 1000}}data-tooltip-content="{{.NumForks}}"{{end}}>{{CountFmt .NumForks}}</span>
|
<span {{if ge .NumForks 1000}}data-tooltip-content="{{.NumForks}}"{{end}}>{{CountFmt .NumForks}}</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -13,7 +13,7 @@
|
|||||||
<div class="content">
|
<div class="content">
|
||||||
{{if $repo}}
|
{{if $repo}}
|
||||||
{{if $repo.IsPrivate}}
|
{{if $repo.IsPrivate}}
|
||||||
<span class="text gold icon">{{svg "octicon-lock"}}</span>
|
<span class="icon">{{svg "octicon-repo-locked"}}</span>
|
||||||
{{else if $repo.IsFork}}
|
{{else if $repo.IsFork}}
|
||||||
<span class="icon">{{svg "octicon-repo-forked"}}</span>
|
<span class="icon">{{svg "octicon-repo-forked"}}</span>
|
||||||
{{else if $repo.IsMirror}}
|
{{else if $repo.IsMirror}}
|
||||||
@ -86,7 +86,7 @@
|
|||||||
<div class="item">
|
<div class="item">
|
||||||
<div class="content flex-text-block">
|
<div class="content flex-text-block">
|
||||||
{{if .IsPrivate}}
|
{{if .IsPrivate}}
|
||||||
{{svg "octicon-lock" 16 "text gold"}}
|
{{svg "octicon-lock"}}
|
||||||
{{else if .IsFork}}
|
{{else if .IsFork}}
|
||||||
{{svg "octicon-repo-forked"}}
|
{{svg "octicon-repo-forked"}}
|
||||||
{{else if .IsMirror}}
|
{{else if .IsMirror}}
|
||||||
|
|||||||
@ -584,10 +584,6 @@ img.ui.avatar,
|
|||||||
color: var(--color-grey-light) !important;
|
color: var(--color-grey-light) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.text.gold {
|
|
||||||
color: var(--color-gold) !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.text.small {
|
.text.small {
|
||||||
font-size: 0.75em;
|
font-size: 0.75em;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -146,7 +146,6 @@ gitea-theme-meta-info {
|
|||||||
/* other colors */
|
/* other colors */
|
||||||
--color-grey: #384149;
|
--color-grey: #384149;
|
||||||
--color-grey-light: #818f9e;
|
--color-grey-light: #818f9e;
|
||||||
--color-gold: #b1983b;
|
|
||||||
--color-white: #ffffff;
|
--color-white: #ffffff;
|
||||||
--color-diff-added-linenum-bg: #274227;
|
--color-diff-added-linenum-bg: #274227;
|
||||||
--color-diff-added-row-bg: #203224;
|
--color-diff-added-row-bg: #203224;
|
||||||
|
|||||||
@ -146,7 +146,6 @@ gitea-theme-meta-info {
|
|||||||
/* other colors */
|
/* other colors */
|
||||||
--color-grey: #697077;
|
--color-grey: #697077;
|
||||||
--color-grey-light: #7c838a;
|
--color-grey-light: #7c838a;
|
||||||
--color-gold: #a1882b;
|
|
||||||
--color-white: #ffffff;
|
--color-white: #ffffff;
|
||||||
--color-diff-added-linenum-bg: #d1f8d9;
|
--color-diff-added-linenum-bg: #d1f8d9;
|
||||||
--color-diff-added-row-bg: #e6ffed;
|
--color-diff-added-row-bg: #e6ffed;
|
||||||
|
|||||||
@ -291,7 +291,7 @@ export default defineComponent({
|
|||||||
} else if (repo.template) {
|
} else if (repo.template) {
|
||||||
return `octicon-repo-template`;
|
return `octicon-repo-template`;
|
||||||
} else if (repo.private) {
|
} else if (repo.private) {
|
||||||
return 'octicon-lock';
|
return 'octicon-repo-locked';
|
||||||
} else if (repo.internal) {
|
} else if (repo.internal) {
|
||||||
return 'octicon-repo';
|
return 'octicon-repo';
|
||||||
}
|
}
|
||||||
@ -391,7 +391,7 @@ export default defineComponent({
|
|||||||
<div class="ui checkbox" ref="checkboxPrivateFilter" :title="checkboxPrivateFilterTitle">
|
<div class="ui checkbox" ref="checkboxPrivateFilter" :title="checkboxPrivateFilterTitle">
|
||||||
<input type="checkbox" class="tw-pointer-events-none" v-bind.prop="checkboxPrivateFilterProps">
|
<input type="checkbox" class="tw-pointer-events-none" v-bind.prop="checkboxPrivateFilterProps">
|
||||||
<label>
|
<label>
|
||||||
<svg-icon name="octicon-lock" :size="16" class="tw-mr-1"/>
|
<svg-icon name="octicon-repo-locked" :size="16" class="tw-mr-1"/>
|
||||||
{{ textShowPrivate }}
|
{{ textShowPrivate }}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -63,6 +63,7 @@ import octiconProject from '../../public/assets/img/svg/octicon-project.svg';
|
|||||||
import octiconQuote from '../../public/assets/img/svg/octicon-quote.svg';
|
import octiconQuote from '../../public/assets/img/svg/octicon-quote.svg';
|
||||||
import octiconRepo from '../../public/assets/img/svg/octicon-repo.svg';
|
import octiconRepo from '../../public/assets/img/svg/octicon-repo.svg';
|
||||||
import octiconRepoForked from '../../public/assets/img/svg/octicon-repo-forked.svg';
|
import octiconRepoForked from '../../public/assets/img/svg/octicon-repo-forked.svg';
|
||||||
|
import octiconRepoLocked from '../../public/assets/img/svg/octicon-repo-locked.svg';
|
||||||
import octiconRepoTemplate from '../../public/assets/img/svg/octicon-repo-template.svg';
|
import octiconRepoTemplate from '../../public/assets/img/svg/octicon-repo-template.svg';
|
||||||
import octiconRss from '../../public/assets/img/svg/octicon-rss.svg';
|
import octiconRss from '../../public/assets/img/svg/octicon-rss.svg';
|
||||||
import octiconScreenFull from '../../public/assets/img/svg/octicon-screen-full.svg';
|
import octiconScreenFull from '../../public/assets/img/svg/octicon-screen-full.svg';
|
||||||
@ -144,6 +145,7 @@ const svgs = {
|
|||||||
'octicon-quote': octiconQuote,
|
'octicon-quote': octiconQuote,
|
||||||
'octicon-repo': octiconRepo,
|
'octicon-repo': octiconRepo,
|
||||||
'octicon-repo-forked': octiconRepoForked,
|
'octicon-repo-forked': octiconRepoForked,
|
||||||
|
'octicon-repo-locked': octiconRepoLocked,
|
||||||
'octicon-repo-template': octiconRepoTemplate,
|
'octicon-repo-template': octiconRepoTemplate,
|
||||||
'octicon-rss': octiconRss,
|
'octicon-rss': octiconRss,
|
||||||
'octicon-screen-full': octiconScreenFull,
|
'octicon-screen-full': octiconScreenFull,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user