Skip to content

Commit

Permalink
Merge branch 'release/0.17.0.17'
Browse files Browse the repository at this point in the history
  • Loading branch information
kalashnikovisme committed Apr 3, 2017
2 parents a3a5f03 + fac25f8 commit 2405fe8
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions app/views/web/activity_lines/lider/ya_liders/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,9 @@
%div
- @participants.each do |participant|
= render 'participant_cell', participant: participant
-# if signed_in?
- if @contest.current_stage.participants.map(&:user_id).include?(current_user.id) && params[:token] == Token.where(record_type: 'ActivityLines::Lider::YaLider::Participant', record_id: current_user.current_ya_lider_participant.id).first&.content
%hr
.row
.auth_button_row
- if current_user.current_ya_lider_participant.event.present?
= link_to 'Создать отчёт', new_users_activity_lines_lider_ya_lider_participant_event_path(event_id: current_user.current_ya_lider_participant.event.id, step: 3), class: 'btn btn-branded'
- else
= link_to t('.add_event'), new_users_activity_lines_lider_ya_lider_participant_event_path(step: 1), class: 'btn btn-branded'
-# else
%hr
.row
.auth_button_row
= link_to t('.i_am_participant'), new_session_path(url: activity_lines_lider_ya_lider_path(@contest.contest_number)), class: 'btn btn-branded'
.row
.auth_button_row
= link_to t('.add_event'), new_users_activity_lines_lider_ya_lider_participant_event_path(step: 1), class: 'btn btn-branded'
.row.for_news
.row.plaha
.col-md-6.text.left
Expand Down

0 comments on commit 2405fe8

Please sign in to comment.