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

tokarchuk/v1.17
Lauris BH 7 years ago committed by Lunny Xiao
parent 0b177574c9
commit 047a67a90b
  1. 2
      public/js/index.js
  2. 4
      templates/user/dashboard/dashboard.tmpl

@ -1649,7 +1649,7 @@ function initDashboardSearch() {
} }
new Vue({ new Vue({
delimiters: ['<%', '%>'], delimiters: ['${', '}'],
el: el, el: el,
data: { data: {

@ -33,9 +33,9 @@
<li v-for="repo in repos" :class="{'private': repo.private}"> <li v-for="repo in repos" :class="{'private': repo.private}">
<a :href="'{{AppSubUrl}}/' + repo.full_name"> <a :href="'{{AppSubUrl}}/' + repo.full_name">
<i :class="repoClass(repo)"></i> <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"> <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> </span>
</a> </a>
</li> </li>

Loading…
Cancel
Save