This commit is contained in:
Nicolas Bally 2015-01-21 19:01:09 +01:00
parent 6febd47f2c
commit 20321d5660

View File

@ -4,9 +4,10 @@
%td{:style => "width:100px;"}
=forum_topic.forum_messages.count - 1
%br
vu
= forum_topic.forum_user_topic_vieweds.count
fois
-views = forum_topic.forum_user_topic_vieweds.count
=views
=views > 1 ? "vues" : "vue"
-#views = forum_topic.forum_user_topic_vieweds.select("DISTINCT forum_user_id").count
%td{:style => "width:160px;"}