mirror of
https://github.com/go-gitea/gitea
synced 2025-08-02 15:48:35 +00:00
Make SVG size argument optional (#12814)
Now defaults to 16 on both frontend and backend. Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
<div class="ui secondary pointing tabular top attached borderless stackable menu navbar">
|
||||
<a class="{{if .PageIsExploreRepositories}}active{{end}} item" href="{{AppSubUrl}}/explore/repos">
|
||||
{{svg "octicon-repo" 16}} {{.i18n.Tr "explore.repos"}}
|
||||
{{svg "octicon-repo"}} {{.i18n.Tr "explore.repos"}}
|
||||
</a>
|
||||
<a class="{{if .PageIsExploreUsers}}active{{end}} item" href="{{AppSubUrl}}/explore/users">
|
||||
{{svg "octicon-person" 16}} {{.i18n.Tr "explore.users"}}
|
||||
{{svg "octicon-person"}} {{.i18n.Tr "explore.users"}}
|
||||
</a>
|
||||
<a class="{{if .PageIsExploreOrganizations}}active{{end}} item" href="{{AppSubUrl}}/explore/organizations">
|
||||
{{svg "octicon-organization" 16}} {{.i18n.Tr "explore.organizations"}}
|
||||
{{svg "octicon-organization"}} {{.i18n.Tr "explore.organizations"}}
|
||||
</a>
|
||||
{{if .IsRepoIndexerEnabled}}
|
||||
<a class="{{if .PageIsExploreCode}}active{{end}} item" href="{{AppSubUrl}}/explore/code">
|
||||
{{svg "octicon-code" 16}} {{.i18n.Tr "explore.code"}}
|
||||
{{svg "octicon-code"}} {{.i18n.Tr "explore.code"}}
|
||||
</a>
|
||||
{{end}}
|
||||
</div>
|
||||
|
@@ -12,18 +12,18 @@
|
||||
<span class="header">
|
||||
<a href="{{.HomeLink}}">{{.Name}}</a> {{.FullName}}
|
||||
{{if .Visibility.IsPrivate}}
|
||||
<span class="text gold">{{svg "octicon-lock" 16}}</span>
|
||||
<span class="text gold">{{svg "octicon-lock"}}</span>
|
||||
{{end}}
|
||||
</span>
|
||||
<div class="description">
|
||||
{{if .Location}}
|
||||
{{svg "octicon-location" 16}} {{.Location}}
|
||||
{{svg "octicon-location"}} {{.Location}}
|
||||
{{end}}
|
||||
{{if and .Website}}
|
||||
{{svg "octicon-link" 16}}
|
||||
{{svg "octicon-link"}}
|
||||
<a href="{{.Website}}" rel="nofollow">{{.Website}}</a>
|
||||
{{end}}
|
||||
{{svg "octicon-clock" 16}} {{$.i18n.Tr "user.join_on"}} {{.CreatedUnix.FormatShort}}
|
||||
{{svg "octicon-clock"}} {{$.i18n.Tr "user.join_on"}} {{.CreatedUnix.FormatShort}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -27,16 +27,16 @@
|
||||
{{end}}
|
||||
{{end}}
|
||||
{{if .IsFork}}
|
||||
<span class="middle">{{svg "octicon-repo-forked" 16}}</span>
|
||||
<span class="middle">{{svg "octicon-repo-forked"}}</span>
|
||||
{{else if .IsMirror}}
|
||||
<span class="middle">{{svg "octicon-mirror" 16}}</span>
|
||||
<span class="middle">{{svg "octicon-mirror"}}</span>
|
||||
{{end}}
|
||||
<div class="ui right metas">
|
||||
{{if .PrimaryLanguage }}
|
||||
<span class="text grey"><i class="color-icon" style="background-color: {{.PrimaryLanguage.Color}}"></i>{{ .PrimaryLanguage.Language }}</span>
|
||||
{{end}}
|
||||
<span class="text grey">{{svg "octicon-star" 16}} {{.NumStars}}</span>
|
||||
<span class="text grey">{{svg "octicon-git-branch" 16}} {{.NumForks}}</span>
|
||||
<span class="text grey">{{svg "octicon-star"}} {{.NumStars}}</span>
|
||||
<span class="text grey">{{svg "octicon-git-branch"}} {{.NumForks}}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="description">
|
||||
|
@@ -12,13 +12,13 @@
|
||||
<span class="header"><a href="{{.HomeLink}}">{{.Name}}</a> {{.FullName}}</span>
|
||||
<div class="description">
|
||||
{{if .Location}}
|
||||
{{svg "octicon-location" 16}} {{.Location}}
|
||||
{{svg "octicon-location"}} {{.Location}}
|
||||
{{end}}
|
||||
{{if and $.ShowUserEmail .Email $.IsSigned (not .KeepEmailPrivate)}}
|
||||
{{svg "octicon-mail" 16}}
|
||||
{{svg "octicon-mail"}}
|
||||
<a href="mailto:{{.Email}}" rel="nofollow">{{.Email}}</a>
|
||||
{{end}}
|
||||
{{svg "octicon-clock" 16}} {{$.i18n.Tr "user.join_on"}} {{.CreatedUnix.FormatShort}}
|
||||
{{svg "octicon-clock"}} {{$.i18n.Tr "user.join_on"}} {{.CreatedUnix.FormatShort}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user