This repository was archived by the owner on Jan 10, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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/.
217217 < thead >
218218 < tr >
219219 < th > Name</ th >
220+ < th > Email</ th >
220221 < th > Tags</ th >
221222 < th > Bio</ th >
222223 < th > Approve?</ th >
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 >
248250 < thead >
249251 < tr >
250252 < th > Name</ th >
253+ < th > Email</ th >
251254 < th > Role</ th >
252255 < th > Tags</ th >
253256 < th > Bio</ th >
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 >
You can’t perform that action at this time.
0 commit comments