diff options
author | silverwind <me@silverwind.io> | 2020-07-13 01:48:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-13 02:48:48 +0300 |
commit | 48ad76c25e6ff103901f347c3b53f80b483498c4 (patch) | |
tree | 5d81592453f75b5b5b2b9a8a41137151600efb06 /templates/user/dashboard/repolist.tmpl | |
parent | a60f506dd7217b6a6c7ea6934e308c91cd9dabac (diff) | |
download | gitea-48ad76c25e6ff103901f347c3b53f80b483498c4.tar.gz gitea-48ad76c25e6ff103901f347c3b53f80b483498c4.zip |
Fix repolist icons (#12228)
Fixes: https://github.com/go-gitea/gitea/issues/12226
Diffstat (limited to 'templates/user/dashboard/repolist.tmpl')
-rw-r--r-- | templates/user/dashboard/repolist.tmpl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/user/dashboard/repolist.tmpl b/templates/user/dashboard/repolist.tmpl index 4bae23ab1b..ca055e9d87 100644 --- a/templates/user/dashboard/repolist.tmpl +++ b/templates/user/dashboard/repolist.tmpl @@ -61,15 +61,15 @@ <a @click="togglePrivateFilter()"> <div class="ui checkbox" id="privateFilterCheckbox" title="{{.i18n.Tr "home.show_both_private_public"}}" v-if="privateFilter === 'both'"> <input type="checkbox"> - <label><svg class="svg octicon-lock" width="16" height="16" aria-hidden="true"><use xlink:href="#octicon-lock" /></svg>{{.i18n.Tr "home.show_private"}}</label> + <label>{{svg "octicon-lock" 16}}{{.i18n.Tr "home.show_private"}}</label> </div> <div class="ui checkbox" id="privateFilterCheckbox" title="{{.i18n.Tr "home.show_only_public"}}" v-if="privateFilter === 'public'"> <input type="checkbox"> - <label><svg class="svg octicon-lock" width="16" height="16" aria-hidden="true"><use xlink:href="#octicon-lock" /></svg>{{.i18n.Tr "home.show_private"}}</label> + <label>{{svg "octicon-lock" 16}}</svg>{{.i18n.Tr "home.show_private"}}</label> </div> <div class="ui checkbox" id="privateFilterCheckbox" title="{{.i18n.Tr "home.show_only_private"}}" v-if="privateFilter === 'private'"> <input type="checkbox"> - <label><svg class="svg octicon-lock" width="16" height="16" aria-hidden="true"><use xlink:href="#octicon-lock" /></svg>{{.i18n.Tr "home.show_private"}}</label> + <label>{{svg "octicon-lock" 16}}</svg>{{.i18n.Tr "home.show_private"}}</label> </div> </a> </div> @@ -103,7 +103,7 @@ <ul class="repo-owner-name-list"> <li v-for="repo in repos" :class="{'private': repo.private || repo.internal}"> <a :href="suburl + '/' + repo.full_name"> - <svg :class="'svg ' + repoClass(repo)" width="16" height="16" aria-hidden="true"><use :xlink:href="'#' + repoClass(repo)" /></svg> + <component v-bind:is="repoIcon(repo)" size="16"></component> <strong class="text truncate item-name">${repo.full_name}</strong> <i v-if="repo.archived" class="archive icon archived-icon"></i> <span class="ui right text light grey"> |