Browse Source

Refactor vue delimeters to use es6 template delimeters (#2171)

tags/v1.21.12.1
Lauris BH Lunny Xiao 8 years ago
parent
commit
047a67a90b
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      public/js/index.js
  2. +2
    -2
      templates/user/dashboard/dashboard.tmpl

+ 1
- 1
public/js/index.js View File

@@ -1649,7 +1649,7 @@ function initDashboardSearch() {
}

new Vue({
delimiters: ['<%', '%>'],
delimiters: ['${', '}'],
el: el,

data: {


+ 2
- 2
templates/user/dashboard/dashboard.tmpl View File

@@ -33,9 +33,9 @@
<li v-for="repo in repos" :class="{'private': repo.private}">
<a :href="'{{AppSubUrl}}/' + repo.full_name">
<i :class="repoClass(repo)"></i>
<strong class="text truncate item-name"><% repo.full_name %></strong>
<strong class="text truncate item-name">${ repo.full_name }</strong>
<span class="ui right text light grey">
<% repo.stars_count %> <i class="octicon octicon-star rear"></i>
${ repo.stars_count } <i class="octicon octicon-star rear"></i>
</span>
</a>
</li>


Loading…
Cancel
Save