Skip to content

Commit

Permalink
Hints for course description and variant
Browse files Browse the repository at this point in the history
  • Loading branch information
mpugach committed Mar 6, 2023
1 parent 4306b56 commit b0b6ac2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/helpers/application_helper.rb
Expand Up @@ -44,8 +44,9 @@ def thumb_with_pop(person)
def inline_info(text)
return unless text

tag(
content_tag(
:i,
'',
class: %w[fa fa-info-circle popover-enable text-info inline-info],
aria: { hidden: 'true' },
data: { toggle: :popover, content: text }
Expand Down
2 changes: 2 additions & 0 deletions app/views/courses/show.html.haml
Expand Up @@ -15,12 +15,14 @@
.col-xs-12.col-sm-8.col-sm-offset-2.vert-offset-top-1
%h5
= t('.course_description')
= inline_info(t('.course_description_help'))
.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
%h5
= t('.course_variant')
= inline_info(t('.course_variant_help'))
.col-xs-12.col-sm-8.col-sm-offset-2
= @course.variant

Expand Down
2 changes: 2 additions & 0 deletions config/locales/general.ru.yml
Expand Up @@ -135,6 +135,8 @@ ru:
course_variant: 'Вариант'
total_examination_results_count: 'Общее количество сданных зачетных работ'
results_per_examination: 'Количество сданных зачетных работ'
course_description_help: 'Может отображаться студентам'
course_variant_help: 'Отображается только администраторам, чтобы отличать очень похожие предметы'
crops:
crop_image:
title: 'Кадрирование изображения'
Expand Down
2 changes: 2 additions & 0 deletions config/locales/general.uk.yml
Expand Up @@ -135,6 +135,8 @@ uk:
course_variant: 'Варіант'
total_examination_results_count: 'Загальна кількість зданих залікових робіт'
results_per_examination: 'Кількість зданих залікових робіт'
course_description_help: 'Може відображатися студентам'
course_variant_help: 'Відображається тільки адміністраторам, щоб відрізняти дуже схожі предмети'
crops:
crop_image:
title: 'Кадрування зображення'
Expand Down

0 comments on commit b0b6ac2

Please sign in to comment.