summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--public/assets/css/bucky.css5
-rw-r--r--public/assets/js/lib/views/profile/profile.js10
-rw-r--r--views/partials/hootbox.ejs2
3 files changed, 9 insertions, 8 deletions
diff --git a/public/assets/css/bucky.css b/public/assets/css/bucky.css
index 9be7f20..b74e204 100644
--- a/public/assets/css/bucky.css
+++ b/public/assets/css/bucky.css
@@ -171,6 +171,11 @@ table, tr {
background-size: cover;
background-position: center center;
}
+#hoots .avatar a {
+ display: block;
+ width: 100%;
+ height: 100%;
+}
#hoots td:nth-child(2){
text-align: left;
padding: 5px;
diff --git a/public/assets/js/lib/views/profile/profile.js b/public/assets/js/lib/views/profile/profile.js
index 34c8fba..d8bc535 100644
--- a/public/assets/js/lib/views/profile/profile.js
+++ b/public/assets/js/lib/views/profile/profile.js
@@ -34,13 +34,9 @@ var ProfileView = View.extend({
$table.append(t)
})
- var fields = "message".split(" ").map((key) => {
- if (! user[key]) return;
- var t = this.template.replace(/{{key}}/, " ")
- .replace(/{{value}}/, '<a href="/mail/compose/' + username + '">send ' + username + ' a message</a>')
- $table.append(t)
- })
-
+ var t = this.template.replace(/{{key}}/, "&nbsp;")
+ .replace(/{{value}}/, '<a href="/mail/compose/' + username + '">send ' + username + ' a message</a>')
+ $table.append(t)
},
})
diff --git a/views/partials/hootbox.ejs b/views/partials/hootbox.ejs
index d32ff8f..0f6fce4 100644
--- a/views/partials/hootbox.ejs
+++ b/views/partials/hootbox.ejs
@@ -7,7 +7,7 @@
<table id="hoots">
<script class="template" type="text/html">
<tr>
- <td style="background-image:url(/data/profile/{{username}}.jpg)"><a href="/profile/{{username}}"><div></div></a></td>
+ <td class="avatar" style="background-image:url(/data/profile/{{username}}.jpg)"><a href="/profile/{{username}}"></a></td>
<td>
{{comment}}
</td>