Skip to content

Commit 20f3831

Browse files
indicate sponsored time slots on time slot index (#297)
1 parent 435181c commit 20f3831

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

app/decorators/staff/time_slot_decorator.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def time_slot_id
2020

2121
def row_data_time_sortable(buttons: false)
2222
row = [object.conference_day, object.start_time, object.end_time, linked_title,
23-
display_presenter, object.room_name, display_track_name]
23+
display_presenter, object.room_name, display_sponsor_star, display_track_name]
2424
row << action_links if buttons
2525
row
2626
end
@@ -142,6 +142,10 @@ def sponsored?
142142
object.sponsor.present?
143143
end
144144

145+
def display_sponsor_star
146+
h.content_tag(:span, "", class: "glyphicon glyphicon-star") if sponsored?
147+
end
148+
145149
def preview_css
146150
'preview' unless object.persisted?
147151
end

app/views/staff/time_slots/_time_slots.html.haml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
%th Title
4444
%th Presenter
4545
%th Room
46+
%th Sponsor
4647
%th Track
4748
%th.actions Actions
4849
%tbody

0 commit comments

Comments
 (0)