Skip to content

Commit

Permalink
Merge branch 'release/0.16'
Browse files Browse the repository at this point in the history
  • Loading branch information
kalashnikovisme committed Mar 26, 2017
2 parents 2fa4a1f + ab2cf63 commit 834f4b4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion app/views/web/activity_lines/lider/ya_liders/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@
%hr
.row
.auth_button_row
= link_to t('.participants'), '#', class: 'btn btn-branded'
- if signed_in?
- if @contest.current_stage.participants.map(&:user_id).include?(current_user.id)
= link_to t('.add_event'), '#', class: 'btn btn-branded'
- else
= link_to t('.i_am_participant'), new_session_path(url: activity_lines_lider_ya_lider_path(@contest.contest_number)), class: 'btn btn-branded'
.row.for_news
.row.plaha
.col-md-6.text.left
Expand Down
2 changes: 2 additions & 0 deletions config/locales/ru/ru.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ ru:
ya_liders:
show:
participants: Участники конкурса
i_am_participant: Я участник конкурса
add_event: Анонсировать мероприятие
sessions:
new:
title: Авторизация
Expand Down
2 changes: 1 addition & 1 deletion lib/concerns/duration_managment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ def begin_before_end_date
end
end
def during?
begin_date < DateTime.now && end_date > DateTime.now
begin_date < DateTime.current && end_date > DateTime.current
end
end

0 comments on commit 834f4b4

Please sign in to comment.