Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.

Commit

Permalink
Add vocices count labels for non-auth users.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvislov committed Mar 6, 2013
1 parent 55b1ba3 commit 96e3430
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/views/web/events/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
.btn.btn-no-clickable= t('.already_going')
- else
= link_to t('.i_am_going'), api_user_event_listener_votings_path(event), remote: true, method: :post, class: 'vote-event btn btn-shine'
- else
.btn.btn-no-clickable= t('.they_going')
%span.btn.votings-count
= event.listener_votings.size
-#%h6.grey= event.speaker.about
Expand Down
2 changes: 2 additions & 0 deletions app/views/web/user_events/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
.btn.btn-no-clickable= t('.already_voted')
- else
= link_to t('.vote_this_lecture'), api_user_event_lecture_votings_path(event), remote: true, method: :post, class: 'vote-event btn btn-shine'
-else
.btn.btn-no-clickable= t('.they_voted')
%span.btn.votings-count.btn-no-clickable
= event.lecture_votings.size
-#.social
Expand Down
2 changes: 2 additions & 0 deletions config/locales/ru.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,15 @@ ru:
title: 'Доклады 2.0'
vote_this_lecture: 'Голосовать за доклад'
already_voted: 'Вы проголосовали'
they_voted: 'Проголосовали'
by_lecture_votings_count: 'По количеству голосов'
by_created_at: 'По дате добавления'
sort_by: 'Сортировать'
events:
index:
i_am_going: 'Я пойду!'
already_going: 'Вы пойдете'
they_going: 'Пойдут'

sessions:
form:
Expand Down

0 comments on commit 96e3430

Please sign in to comment.