summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2019-11-10 00:06:38 +0000
committerGitHub <noreply@github.com>2019-11-10 00:06:38 +0000
commitb27cac021f6f51c7605b29713f3293cdbcdc85f7 (patch)
tree42b1aa562e50fc86b46b2f5d9c1594c16aad4a79
parentca69ded83ebefbf898a24e4a26c0641cca8d58ad (diff)
downloadgitea-b27cac021f6f51c7605b29713f3293cdbcdc85f7.tar.gz
gitea-b27cac021f6f51c7605b29713f3293cdbcdc85f7.zip
Fix issue with user.fullname (#8903)
-rw-r--r--templates/base/footer.tmpl8
1 files changed, 5 insertions, 3 deletions
diff --git a/templates/base/footer.tmpl b/templates/base/footer.tmpl
index 13718620da..2a4b895dc2 100644
--- a/templates/base/footer.tmpl
+++ b/templates/base/footer.tmpl
@@ -63,11 +63,13 @@
noMatchTemplate: function () { return null },
menuItemTemplate: function (item) {
var user = item.original;
- var itemStr = '<img src="' + user.avatar + '"/><span class="name">' + user.name + '</span>';
+ var item = $('<div/>')
+ item.append($('<img/>', {'src': user.avatar}))
+ item.append($('<span/>', {'class': 'name'}).text(user.name))
if (user.fullname && user.fullname != '') {
- itemStr += '<span class="fullname">' + user.fullname + '</span>';
+ item.append($('<span/>', {'class': 'fullname'}).text(user.fullname))
}
- return itemStr;
+ return item.html();
}
});
var content = document.getElementById('content');