mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-22 04:45:46 -04:00
FIX: time read column was empty in user directory
This commit is contained in:
parent
189cb3ff12
commit
34a0389ff3
2 changed files with 8 additions and 1 deletions
|
@ -36,7 +36,7 @@
|
|||
<td>{{number it.topics_entered}}</td>
|
||||
<td>{{number it.posts_read}}</td>
|
||||
<td>{{number it.days_visited}}</td>
|
||||
{{#if showTimeRead}}
|
||||
{{#if controller.parentController.showTimeRead}}
|
||||
<td><span class='time-read'>{{unbound it.time_read}}</span></td>
|
||||
{{/if}}
|
||||
{{/with}}
|
||||
|
|
|
@ -7,3 +7,10 @@ test("Visit Page", function() {
|
|||
ok(exists('.directory table tr'), "has a list of users");
|
||||
});
|
||||
});
|
||||
|
||||
test("Visit All Time", function() {
|
||||
visit("/users?period=all");
|
||||
andThen(() => {
|
||||
ok(exists('.time-read'), "has time read column");
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue