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

View File

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

View File

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