Add vote results to speaker profiles

This commit is contained in:
Petko Bordjukov 2016-10-11 03:31:39 +03:00
parent d56dddb90a
commit 257793651e
3 changed files with 13 additions and 0 deletions

View File

@ -50,6 +50,8 @@
tr tr
th th
= Event.human_attribute_name :title = Event.human_attribute_name :title
th.text-center
= Event.human_attribute_name :rank
th th
= Event.human_attribute_name :conference = Event.human_attribute_name :conference
th th
@ -60,6 +62,10 @@
- speaker.events_participated_in.where.not(id: @event.id).order(created_at: :desc).each do |event| - speaker.events_participated_in.where.not(id: @event.id).order(created_at: :desc).each do |event|
tr tr
td = event.title td = event.title
td.text-center
- if event.conference.has_vote_results?
.large
.label.label-info = event.rank
td = event.conference.title td = event.conference.title
td td
span class="label label-lg label-#{proposition_status_class(event.status)}" span class="label label-lg label-#{proposition_status_class(event.status)}"

View File

@ -37,6 +37,8 @@
tr tr
th th
= Event.human_attribute_name :title = Event.human_attribute_name :title
th.text-center
= Event.human_attribute_name :rank
th th
= Event.human_attribute_name :conference = Event.human_attribute_name :conference
th th
@ -47,6 +49,10 @@
- @user.events_participated_in.order(created_at: :desc).each do |event| - @user.events_participated_in.order(created_at: :desc).each do |event|
tr tr
td = event.title td = event.title
td.text-center
- if event.conference.has_vote_results?
.large
.label.label-info = event.rank
td = event.conference.title td = event.conference.title
td td
span class="label label-lg label-#{proposition_status_class(event.status)}" span class="label label-lg label-#{proposition_status_class(event.status)}"

View File

@ -124,6 +124,7 @@ bg:
subtitle: "Подзаглавие" subtitle: "Подзаглавие"
title: "Заглавие" title: "Заглавие"
track: "Поток от лекции" track: "Поток от лекции"
rank: "Класиране"
user: "Лектор" user: "Лектор"
participants: "Участници" participants: "Участници"
event_type: event_type: