Skip to content
This repository was archived by the owner on Jan 10, 2021. It is now read-only.

Commit 09b9710

Browse files
authored
Merge pull request #60 from Slugbotics/agavgavi/comment_fix
Agavgavi/comment fix
2 parents affbb95 + 7536dda commit 09b9710

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

components/comment.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ def get_comments(self, id=None):
8181

8282
for comment in comments:
8383
comment['editable'] = comment.get('user_id') == self.auth.current_user.get('id') or user.role == "admin"
84-
comment['img_url'] = Helper.get_user_icon(user["icon"])
84+
comment_creator = self.db(self.db.users.user == comment.get('user_id')).select().first()
85+
comment['img_url'] = Helper.get_user_icon(comment_creator["icon"])
8586

8687
return dict(comments=comments)
8788

templates/admin.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
admin.html - template file for admin page
33
part of Sluggo, a free and open source issue tracker
44
Copyright (c) 2020 Slugbotics - see git repository history for individual committers
5-
5+
66
This Source Code Form is subject to the terms of the Mozilla Public
77
License, v. 2.0. If a copy of the MPL was not distributed with this
88
file, You can obtain one at https://mozilla.org/MPL/2.0/.
@@ -217,6 +217,7 @@
217217
<thead>
218218
<tr>
219219
<th>Name</th>
220+
<th>Email</th>
220221
<th>Tags</th>
221222
<th>Bio</th>
222223
<th>Approve?</th>
@@ -228,6 +229,7 @@
228229
</tr>
229230
<tr v-else v-for="user in users">
230231
<th>{{user.full_name}}</th>
232+
<td>{{user.user_email}}</td>
231233
<td>{{user.tags_list}}</td>
232234
<td>{{user.bio}}</td>
233235
<td>
@@ -248,6 +250,7 @@
248250
<thead>
249251
<tr>
250252
<th>Name</th>
253+
<th>Email</th>
251254
<th>Role</th>
252255
<th>Tags</th>
253256
<th>Bio</th>
@@ -257,6 +260,7 @@
257260
<tbody>
258261
<tr v-for="user in all_users">
259262
<th>{{user.full_name}}</th>
263+
<td>{{user.user_email}}</td>
260264
<th :class="getColor(user._idx)">{{user.role}}</th>
261265
<td>{{user.tags_list}}</td>
262266
<td>{{user.bio}}</td>

0 commit comments

Comments
 (0)