diff --git a/app/assets/javascripts/discourse/templates/users.hbs b/app/assets/javascripts/discourse/templates/users.hbs index 3d4ba100125..bca1399a192 100644 --- a/app/assets/javascripts/discourse/templates/users.hbs +++ b/app/assets/javascripts/discourse/templates/users.hbs @@ -36,7 +36,7 @@ {{number it.topics_entered}} {{number it.posts_read}} {{number it.days_visited}} - {{#if showTimeRead}} + {{#if controller.parentController.showTimeRead}} {{unbound it.time_read}} {{/if}} {{/with}} diff --git a/test/javascripts/acceptance/users-test.js.es6 b/test/javascripts/acceptance/users-test.js.es6 index 8ae9cfb28fe..b517a8e872c 100644 --- a/test/javascripts/acceptance/users-test.js.es6 +++ b/test/javascripts/acceptance/users-test.js.es6 @@ -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"); + }); +});