-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
85 additions
and
6 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
app/assets/stylesheets/web/activity_lines/lider/application.css.sass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
app/controllers/web/activity_lines/lider/ya_lider/application_controller.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
class Web::ActivityLines::Lider::YaLider::ApplicationController < Web::ActivityLines::Lider::ApplicationController | ||
end |
14 changes: 14 additions & 0 deletions
14
app/controllers/web/activity_lines/lider/ya_lider/stages_controller.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
class Web::ActivityLines::Lider::YaLider::StagesController < Web::ActivityLines::Lider::YaLider::ApplicationController | ||
def show | ||
stage = ActivityLines::Lider::YaLider::Stage.find(params[:id]) | ||
@contest = stage.contest.decorate | ||
@stage = stage.decorate | ||
@current_participants = if params[:search].present? | ||
::ActivityLines::Lider::YaLider::Participant.where( | ||
id: (stage.participants.search_everywhere(params[:search]).map(&:id) & stage.current_participants.map(&:id))).decorate | ||
else | ||
stage.current_participants | ||
end | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,4 +34,5 @@ def contest_attributes | |
end | ||
|
||
delegate :municipality, to: :user | ||
delegate :short_name, to: :user | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
app/views/layouts/web/activity_lines/lider/shared/_footer.html.haml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
%footer | ||
%br | ||
.row | ||
.col-md-1.logo | ||
= link_to "http://ulmic.ru" do | ||
= image_tag 'apps/logo-mic-square.png' | ||
.col-md-4 | ||
© | ||
= copyright_notice_year_range 2013 | ||
= t('organization.short_name') | ||
%br | ||
= link_to 'http://ulmic.ru', 'http://ulmic.ru', target: '_blank' | ||
%br | ||
= link_to t('ul_lider.application.developers'), 'https://github.com/ulmic', target: '_blank' | ||
%br | ||
= link_to t('ul_lider.application.github_link'), 'https://github.com/ulmic/ul-lider', target: '_blank' | ||
.col-md-3.col-md-offset-3 | ||
= link_to configus.it_projects.ul_lider.chrome_extension.url, target: "_blank" do | ||
= image_tag 'activity_lines/lider/ya_lider/availale_in_chrome_web_store.png', class: :store_logo |
9 changes: 9 additions & 0 deletions
9
app/views/web/activity_lines/lider/ya_lider/participants/_list.html.haml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
- model_class = ActivityLines::Lider::YaLider::Participant | ||
%table.table.table-striped.table-condensed.table-hover | ||
%tbody | ||
- activity_lines_lider_ya_lider_participants.each do |participant| | ||
%tr.link{ data: { href: admin_activity_lines_lider_ya_lider_participant_path(participant) }, class: state_color(participant) } | ||
%td{ width: '67px' } | ||
= image_tag participant.small_avatar | ||
%td | ||
= participant.short_name |
6 changes: 6 additions & 0 deletions
6
app/views/web/activity_lines/lider/ya_lider/stages/show.html.haml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
- title @stage.full_title | ||
.page-header | ||
%h1 | ||
= @stage.full_title | ||
.row | ||
= render 'web/activity_lines/lider/ya_lider/participants/list', activity_lines_lider_ya_lider_participants: @current_participants, for_partial: :stage_show |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
ru: | ||
ul_lider: | ||
contest: | ||
partners: | ||
new_civilization_short_title: Новая цивилизация | ||
ministry_of_education: Министерство образования Ульяновской области | ||
application: | ||
developers: Разработчики ИТ-проектов МИЦ | ||
github_link: Этот проект на Github |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
test/controllers/web/activity_lines/lider/ya_lider/application_controller_test.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
require 'test_helper' | ||
|
||
class Web::ActivityLines::Lider::YaLider::ApplicationControllerTest < ActionController::TestCase | ||
# test "the truth" do | ||
# assert true | ||
# end | ||
end |
7 changes: 7 additions & 0 deletions
7
test/controllers/web/activity_lines/lider/ya_lider/stages_controller_test.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
require 'test_helper' | ||
|
||
class Web::ActivityLines::Lider::YaLider::StagesControllerTest < ActionController::TestCase | ||
# test "the truth" do | ||
# assert true | ||
# end | ||
end |