Skip to content

Commit

Permalink
Display course variant on Course#show
Browse files Browse the repository at this point in the history
  • Loading branch information
mpugach committed Mar 5, 2023
1 parent 7d6a7a6 commit 6d67511
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
15 changes: 13 additions & 2 deletions app/views/courses/show.html.haml
Expand Up @@ -13,10 +13,21 @@
= link_to_destroy(policy(@course).destroy?, course_path(@course))

.col-xs-12.col-sm-8.col-sm-offset-2.vert-offset-top-1
%h5
= t('.course_description')
.col-xs-12.col-sm-8.col-sm-offset-2
= @course.description

.col-xs-12.col-sm-8.col-sm-offset-2.vert-offset-top-1
= t('.class_schedules_count')
%h5
= t('.course_variant')
.col-xs-12.col-sm-8.col-sm-offset-2
= @course.variant

.col-xs-12.col-sm-8.col-sm-offset-2.vert-offset-top-1
%h5
= t('.class_schedules_count')
.col-xs-12.col-sm-8.col-sm-offset-2
= @class_schedules_count

- if @course.teacher_profiles.any?
Expand Down Expand Up @@ -80,4 +91,4 @@
- if policy(examination).tap { |p| break p.edit? || p.destroy? }
%td.col-xs-2.col-sm-3.col-md-2.text-right
= link_to_edit(policy(examination).edit?, edit_course_examination_path(@course, examination))
= link_to_destroy(policy(examination).destroy?, course_examination_path(@course, examination))
= link_to_destroy(policy(examination).destroy?, course_examination_path(@course, examination))
2 changes: 2 additions & 0 deletions config/locales/general.ru.yml
Expand Up @@ -129,6 +129,8 @@ ru:
max_result: 'Макс.'
min_result: 'Мин.'
passing_score: 'Проходной'
course_description: 'Описание'
course_variant: 'Вариант'
crops:
crop_image:
title: 'Кадрирование изображения'
Expand Down
2 changes: 2 additions & 0 deletions config/locales/general.uk.yml
Expand Up @@ -129,6 +129,8 @@ uk:
max_result: 'Макс.'
min_result: 'Мін.'
passing_score: 'Прохідний'
course_description: 'Опис'
course_variant: 'Варіант'
crops:
crop_image:
title: 'Кадрування зображення'
Expand Down

0 comments on commit 6d67511

Please sign in to comment.