summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2019-11-09 23:21:53 +0000
committerGitHub <noreply@github.com>2019-11-09 23:21:53 +0000
commit1b7402bd1dfcf7435c2c2345aab1c43d6b0186ca (patch)
tree47d798b76c407bd84bdb28aea4a486450af685d3 /templates
parentbb04fb55d75242c71a131998565a567e193a3d8c (diff)
downloadgitea-1b7402bd1dfcf7435c2c2345aab1c43d6b0186ca.tar.gz
gitea-1b7402bd1dfcf7435c2c2345aab1c43d6b0186ca.zip
Fix issue with user.fullname (#8902)
Diffstat (limited to 'templates')
-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 5a3d24ab58..bed8eea019 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');