Do not show diffculty level in the progress checker
This commit is contained in:
parent
e542bda8ef
commit
1658046a19
2 changed files with 5 additions and 4 deletions
|
|
@ -273,7 +273,7 @@ class Event < ApplicationRecord
|
||||||
biographies: speakers.all? { |speaker| !speaker.biography.blank? },
|
biographies: speakers.all? { |speaker| !speaker.biography.blank? },
|
||||||
subtitle: !subtitle.blank?,
|
subtitle: !subtitle.blank?,
|
||||||
track: (!track.blank? unless program.tracks.empty?),
|
track: (!track.blank? unless program.tracks.empty?),
|
||||||
difficulty_level: !difficulty_level.blank?,
|
difficulty_level: (difficulty_level.present? unless program.difficulty_levels.empty?),
|
||||||
title: true,
|
title: true,
|
||||||
abstract: true
|
abstract: true
|
||||||
}.with_indifferent_access
|
}.with_indifferent_access
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,7 @@
|
||||||
%li{'class'=>class_for_todo(progress_status['track'])}
|
%li{'class'=>class_for_todo(progress_status['track'])}
|
||||||
%span{'class'=>icon_for_todo(progress_status['track'])}
|
%span{'class'=>icon_for_todo(progress_status['track'])}
|
||||||
= link_to 'Add a track', edit_conference_program_proposal_path(event.program.conference.short_title, event)
|
= link_to 'Add a track', edit_conference_program_proposal_path(event.program.conference.short_title, event)
|
||||||
|
- unless progress_status[:difficulty_level].nil?
|
||||||
%li{'class'=>class_for_todo(progress_status['difficulty_level'])}
|
%li{'class'=>class_for_todo(progress_status['difficulty_level'])}
|
||||||
%span{'class'=>icon_for_todo(progress_status['difficulty_level'])}
|
%span{'class'=>icon_for_todo(progress_status['difficulty_level'])}
|
||||||
= link_to 'Add a difficulty level', edit_conference_program_proposal_path(event.program.conference.short_title, event)
|
= link_to 'Add a difficulty level', edit_conference_program_proposal_path(event.program.conference.short_title, event)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue