Counting messages
This commit is contained in:
parent
58df3c3a75
commit
1c1942063b
1 changed files with 2 additions and 1 deletions
|
@ -8,7 +8,8 @@
|
||||||
%div.carret-down
|
%div.carret-down
|
||||||
MESSAGES
|
MESSAGES
|
||||||
%div.col-lg-2.col-md-2.count
|
%div.col-lg-2.col-md-2.count
|
||||||
2 messages
|
- message_count = @facade.commentaires.count
|
||||||
|
= (message_count == 1) ? "1 message" : "#{message_count} messages"
|
||||||
%div.body
|
%div.body
|
||||||
|
|
||||||
.default_data_block
|
.default_data_block
|
||||||
|
|
Loading…
Reference in a new issue