From 047a67a90b455a077e8b6f6deaad6b7ec4b50810 Mon Sep 17 00:00:00 2001 From: Lauris BH <lauris@nix.lv> Date: Sat, 15 Jul 2017 17:22:26 +0300 Subject: [PATCH] Refactor vue delimeters to use es6 template delimeters (#2171) --- public/js/index.js | 2 +- templates/user/dashboard/dashboard.tmpl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/js/index.js b/public/js/index.js index 25915bc2ab..f6da4125be 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -1649,7 +1649,7 @@ function initDashboardSearch() { } new Vue({ - delimiters: ['<%', '%>'], + delimiters: ['${', '}'], el: el, data: { diff --git a/templates/user/dashboard/dashboard.tmpl b/templates/user/dashboard/dashboard.tmpl index 7a444c17d2..48d6966e18 100644 --- a/templates/user/dashboard/dashboard.tmpl +++ b/templates/user/dashboard/dashboard.tmpl @@ -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>