summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--public/assets/js/lib/views/users/users.js3
-rw-r--r--views/pages/users.ejs5
2 files changed, 6 insertions, 2 deletions
diff --git a/public/assets/js/lib/views/users/users.js b/public/assets/js/lib/views/users/users.js
index cabf77c..cebc6f9 100644
--- a/public/assets/js/lib/views/users/users.js
+++ b/public/assets/js/lib/views/users/users.js
@@ -53,11 +53,12 @@ var UsersView = View.extend({
var commentCount = stats.comments ? hush_null(stats.comments, 'c') : ['','']
var firstseen_datetime = verbose_date(user.firstseen)
var lastseen = get_age(user.lastseen)
- var avatar = "https://s3.amazonaws.com/i.asdf.us/bucky/profile/" + user.username + ".jpg"
+ var avatar = profile_image(user.username)
var t = this.template
.replace(/{{username}}/g, sanitizeHTML(user.username))
.replace(/{{id}}/g, user.id)
.replace(/{{avatar}}/g, user.avatar)
+ .replace(/{{location}}/g, user.location)
.replace(/{{realname}}/g, sanitizeHTML(user.realname))
.replace(/{{firstseen_date}}/g, firstseen_datetime[0])
.replace(/{{firstseen_time}}/g, firstseen_datetime[1])
diff --git a/views/pages/users.ejs b/views/pages/users.ejs
index bc8684f..2c45321 100644
--- a/views/pages/users.ejs
+++ b/views/pages/users.ejs
@@ -23,6 +23,9 @@
<div class='realname'>
{{realname}}
</div>
+ <div class="location">
+ {{location}}
+ </div>
<div class="date {{firstseen_date_class}}">
joined {{firstseen_date}} <small>{{firstseen_time}}</small>
</div>
@@ -48,7 +51,7 @@
<style>
.user_row {
display: flex;
- flex-direction: row;
+ flex-flow: row wrap;
align-items: center;
margin-top: 10px;
}