FIX: time read column was empty in user directory

This commit is contained in:
Régis Hanol 2015-06-12 12:40:07 +02:00
parent 189cb3ff12
commit 34a0389ff3
2 changed files with 8 additions and 1 deletions
app/assets/javascripts/discourse/templates
test/javascripts/acceptance

View file

@ -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}}

View file

@ -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");
});
});