mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Selected_scheduled? helper added
To be used in Schedules#index
This commit is contained in:
parent
29b920d746
commit
33e9c86214
2 changed files with 5 additions and 1 deletions
|
|
@ -366,4 +366,8 @@ module ApplicationHelper
|
|||
end
|
||||
item_class
|
||||
end
|
||||
|
||||
def selected_scheduled?(schedule)
|
||||
(schedule == @selected_schedule) ? 'Yes' : 'No'
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
Schedule
|
||||
= schedule.id
|
||||
%td
|
||||
= (schedule == @selected_schedule) ? 'Yes' : 'No'
|
||||
= selected_scheduled?(schedule)
|
||||
%td
|
||||
.btn-group{role: "group"}
|
||||
= link_to 'Show', admin_conference_schedule_path(@conference.short_title, schedule.id),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue