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;"} %td{:style => "width:100px;"}
=forum_topic.forum_messages.count - 1 =forum_topic.forum_messages.count - 1
%br %br
vu -views = forum_topic.forum_user_topic_vieweds.count
= forum_topic.forum_user_topic_vieweds.count =views
fois =views > 1 ? "vues" : "vue"
-#views = forum_topic.forum_user_topic_vieweds.select("DISTINCT forum_user_id").count -#views = forum_topic.forum_user_topic_vieweds.select("DISTINCT forum_user_id").count
%td{:style => "width:160px;"} %td{:style => "width:160px;"}