File tree 2 files changed +2
-4
lines changed 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 85
85
<ul class="repo-owner-name-list">
86
86
<li v-for="repo in repos" :class="{'private': repo.private}" v-show="showRepo(repo, reposFilter)">
87
87
<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>
89
89
<strong class="text truncate item-name">${repo.full_name}</strong>
90
90
<i v-if="repo.archived" class="archive icon archived-icon"></i>
91
91
<span class="ui right text light grey">
Original file line number Diff line number Diff line change 1
- const { StaticUrlPrefix } = window . config ;
2
-
3
1
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>` ;
5
3
}
You can’t perform that action at this time.
0 commit comments