summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLauris BH <lauris@nix.lv>2017-07-15 17:22:26 +0300
committerLunny Xiao <xiaolunwen@gmail.com>2017-07-15 22:22:26 +0800
commit047a67a90b455a077e8b6f6deaad6b7ec4b50810 (patch)
tree54ab9c38273dfce4294fa6f4b681b62ce24bb81d
parent0b177574c92b2f8c4a4d0d9de01ff1bf5eda06a2 (diff)
downloadgitea-047a67a90b455a077e8b6f6deaad6b7ec4b50810.tar.gz
gitea-047a67a90b455a077e8b6f6deaad6b7ec4b50810.zip
Refactor vue delimeters to use es6 template delimeters (#2171)
-rw-r--r--public/js/index.js2
-rw-r--r--templates/user/dashboard/dashboard.tmpl4
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>