Skip to content

Commit d3f6183

Browse files
authored
Fix JS and Vue (#10328)
Signed-off-by: jolheiser <[email protected]>
1 parent 8380166 commit d3f6183

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

templates/user/dashboard/dashboard.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
<ul class="repo-owner-name-list">
8686
<li v-for="repo in repos" :class="{'private': repo.private}" v-show="showRepo(repo, reposFilter)">
8787
<a :href="suburl + '/' + repo.full_name">
88-
<svg :class="'svg ' + repoClass(repo)" width="16" height="16" aria-hidden="true"><use :xlink:href="staticPrefix + '/img/svg/icons.svg#' + repoClass(repo)" /></svg>
88+
<svg :class="'svg ' + repoClass(repo)" width="16" height="16" aria-hidden="true"><use :xlink:href="'#' + repoClass(repo)" /></svg>
8989
<strong class="text truncate item-name">${repo.full_name}</strong>
9090
<i v-if="repo.archived" class="archive icon archived-icon"></i>
9191
<span class="ui right text light grey">

web_src/js/utils.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
const { StaticUrlPrefix } = window.config;
2-
31
export function svg(name, size) {
4-
return `<svg class="svg ${name}" width="${size}" height="${size}" aria-hidden="true"><use xlink:href="${StaticUrlPrefix}/img/svg/icons.svg#${name}"/></svg>`;
2+
return `<svg class="svg ${name}" width="${size}" height="${size}" aria-hidden="true"><use xlink:href="#${name}"/></svg>`;
53
}

0 commit comments

Comments
 (0)