forked from openSUSE/osem
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathshow.html.haml
More file actions
82 lines (77 loc) · 1.98 KB
/
show.html.haml
File metadata and controls
82 lines (77 loc) · 1.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
.row
.col-md-12
.page-header
%h1 Program
- if @program
.row
.col-md-12
%dl.dl-horizontal
- if @cfp
%dt
Start Date:
%dd#start_date
= @cfp.start_date.strftime('%A, %B %-d. %Y')
%dt
End Date:
%dd#end_date
= @cfp.end_date.strftime('%A, %B %-d. %Y')
%dt
Days Left:
%dd
= pluralize(@cfp.remaining_days, 'day')
%dt
Event types:
%dd
= event_types(@conference)
%dt
Tracks:
%dd
= tracks(@conference)
%dt
Difficulty Levels:
%dd
= difficulty_levels(@conference)
%dt
Languages
%dd
= @program.languages
%dt
Public Schedule
%dd#schedule_public
- if @program.schedule_public
Yes
- else
No
%dt
Schedule changeable?
%dd#schedule_changes
- if @program.schedule_fluid
Yes
- else
No
%dt
Schedule interval
%dd
= @program.schedule_interval
minutes
%h3 Voting Options
%hr
%dt
Rating Levels
%dd#rating
= @program.rating
%dt Blind Voting
%dd#blind_voting
= @program.blind_voting
%dt Voting Start Date
%dd= format_datetime(@program.voting_start_date)
%dt Voting End Date
%dd= format_datetime(@program.voting_end_date)
.row
.col-md-12.text-right
- if can? :edit, @program
= link_to edit_admin_conference_program_path(@conference.short_title), class: 'btn btn-primary' do
Edit
- if can? :destroy, @program
= link_to admin_conference_program_path(@conference.short_title), method: 'delete', class: 'btn btn-danger', data: { confirm: 'Are you sure you want to delete this program?' } do
Delete