| 
				
			 | 
			
			
				@@ -0,0 +1,180 @@ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1
			 | 
			
			
				+.row 
			 | 
		
	
		
			
			| 
				
			 | 
			
				2
			 | 
			
			
				+  .col-md-9 
			 | 
		
	
		
			
			| 
				
			 | 
			
				3
			 | 
			
			
				+    .panel.panel-default 
			 | 
		
	
		
			
			| 
				
			 | 
			
				4
			 | 
			
			
				+      .panel-heading 
			 | 
		
	
		
			
			| 
				
			 | 
			
				5
			 | 
			
			
				+        = @activity.public_name 
			 | 
		
	
		
			
			| 
				
			 | 
			
				6
			 | 
			
			
				+        - if @activity.may_change?(current_person) 
			 | 
		
	
		
			
			| 
				
			 | 
			
				7
			 | 
			
			
				+          = link_to edit_group_activity_path(@group, @activity), class: 'pull-right' do 
			 | 
		
	
		
			
			| 
				
			 | 
			
				8
			 | 
			
			
				+            %i.fa.fa-pencil 
			 | 
		
	
		
			
			| 
				
			 | 
			
				9
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				10
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				11
			 | 
			
			
				+      %table.table 
			 | 
		
	
		
			
			| 
				
			 | 
			
				12
			 | 
			
			
				+        %tr 
			 | 
		
	
		
			
			| 
				
			 | 
			
				13
			 | 
			
			
				+          %td 
			 | 
		
	
		
			
			| 
				
			 | 
			
				14
			 | 
			
			
				+            Organizers: 
			 | 
		
	
		
			
			| 
				
			 | 
			
				15
			 | 
			
			
				+          %td 
			 | 
		
	
		
			
			| 
				
			 | 
			
				16
			 | 
			
			
				+            = @organizers 
			 | 
		
	
		
			
			| 
				
			 | 
			
				17
			 | 
			
			
				+        %tr 
			 | 
		
	
		
			
			| 
				
			 | 
			
				18
			 | 
			
			
				+          %td 
			 | 
		
	
		
			
			| 
				
			 | 
			
				19
			 | 
			
			
				+            Description: 
			 | 
		
	
		
			
			| 
				
			 | 
			
				20
			 | 
			
			
				+          %td 
			 | 
		
	
		
			
			| 
				
			 | 
			
				21
			 | 
			
			
				+            = @activity.description 
			 | 
		
	
		
			
			| 
				
			 | 
			
				22
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				23
			 | 
			
			
				+        %tr 
			 | 
		
	
		
			
			| 
				
			 | 
			
				24
			 | 
			
			
				+          %td 
			 | 
		
	
		
			
			| 
				
			 | 
			
				25
			 | 
			
			
				+            Location: 
			 | 
		
	
		
			
			| 
				
			 | 
			
				26
			 | 
			
			
				+          %td 
			 | 
		
	
		
			
			| 
				
			 | 
			
				27
			 | 
			
			
				+            = @activity.location 
			 | 
		
	
		
			
			| 
				
			 | 
			
				28
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				29
			 | 
			
			
				+        %tr 
			 | 
		
	
		
			
			| 
				
			 | 
			
				30
			 | 
			
			
				+          %td 
			 | 
		
	
		
			
			| 
				
			 | 
			
				31
			 | 
			
			
				+            When: 
			 | 
		
	
		
			
			| 
				
			 | 
			
				32
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				33
			 | 
			
			
				+          %td 
			 | 
		
	
		
			
			| 
				
			 | 
			
				34
			 | 
			
			
				+            = @activity.start 
			 | 
		
	
		
			
			| 
				
			 | 
			
				35
			 | 
			
			
				+            \- 
			 | 
		
	
		
			
			| 
				
			 | 
			
				36
			 | 
			
			
				+            = @activity.end 
			 | 
		
	
		
			
			| 
				
			 | 
			
				37
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				38
			 | 
			
			
				+        %tr 
			 | 
		
	
		
			
			| 
				
			 | 
			
				39
			 | 
			
			
				+          %td 
			 | 
		
	
		
			
			| 
				
			 | 
			
				40
			 | 
			
			
				+            Deadline: 
			 | 
		
	
		
			
			| 
				
			 | 
			
				41
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				42
			 | 
			
			
				+          %td 
			 | 
		
	
		
			
			| 
				
			 | 
			
				43
			 | 
			
			
				+            = @activity.deadline 
			 | 
		
	
		
			
			| 
				
			 | 
			
				44
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				45
			 | 
			
			
				+  - if @ownparticipant 
			 | 
		
	
		
			
			| 
				
			 | 
			
				46
			 | 
			
			
				+    .col-md-3 
			 | 
		
	
		
			
			| 
				
			 | 
			
				47
			 | 
			
			
				+      .panel.panel-default 
			 | 
		
	
		
			
			| 
				
			 | 
			
				48
			 | 
			
			
				+        .panel-heading 
			 | 
		
	
		
			
			| 
				
			 | 
			
				49
			 | 
			
			
				+          Your response 
			 | 
		
	
		
			
			| 
				
			 | 
			
				50
			 | 
			
			
				+        .panel-body 
			 | 
		
	
		
			
			| 
				
			 | 
			
				51
			 | 
			
			
				+          = render partial: "activities/wide_presence_buttons", locals: {activity: @activity, person: @ownparticipant.person, state: @ownparticipant.attending} 
			 | 
		
	
		
			
			| 
				
			 | 
			
				52
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				53
			 | 
			
			
				+          -#.btn-group.btn-group-justified 
			 | 
		
	
		
			
			| 
				
			 | 
			
				54
			 | 
			
			
				+            -#.btn-group 
			 | 
		
	
		
			
			| 
				
			 | 
			
				55
			 | 
			
			
				+              -#%button.btn.btn-success 
			 | 
		
	
		
			
			| 
				
			 | 
			
				56
			 | 
			
			
				+                -#Present 
			 | 
		
	
		
			
			| 
				
			 | 
			
				57
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				58
			 | 
			
			
				+            -#.btn-group 
			 | 
		
	
		
			
			| 
				
			 | 
			
				59
			 | 
			
			
				+              -#%button.btn.btn-danger 
			 | 
		
	
		
			
			| 
				
			 | 
			
				60
			 | 
			
			
				+                -#Absent 
			 | 
		
	
		
			
			| 
				
			 | 
			
				61
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				62
			 | 
			
			
				+          = editable @ownparticipant, 
			 | 
		
	
		
			
			| 
				
			 | 
			
				63
			 | 
			
			
				+            :notes, 
			 | 
		
	
		
			
			| 
				
			 | 
			
				64
			 | 
			
			
				+            url: presence_group_activity_path(@activity.group, @activity, person_id: @ownparticipant.person_id), 
			 | 
		
	
		
			
			| 
				
			 | 
			
				65
			 | 
			
			
				+            title: "Notes", 
			 | 
		
	
		
			
			| 
				
			 | 
			
				66
			 | 
			
			
				+            value: "", 
			 | 
		
	
		
			
			| 
				
			 | 
			
				67
			 | 
			
			
				+            emptytext: "Add notes..." 
			 | 
		
	
		
			
			| 
				
			 | 
			
				68
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				69
			 | 
			
			
				+.hidden-xs 
			 | 
		
	
		
			
			| 
				
			 | 
			
				70
			 | 
			
			
				+  %h2 
			 | 
		
	
		
			
			| 
				
			 | 
			
				71
			 | 
			
			
				+    = @num_participants 
			 | 
		
	
		
			
			| 
				
			 | 
			
				72
			 | 
			
			
				+    participants 
			 | 
		
	
		
			
			| 
				
			 | 
			
				73
			 | 
			
			
				+    = render partial: "state_counts", locals: {counts: @counts} 
			 | 
		
	
		
			
			| 
				
			 | 
			
				74
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				75
			 | 
			
			
				+  %table.table.table-bordered 
			 | 
		
	
		
			
			| 
				
			 | 
			
				76
			 | 
			
			
				+    - @participants.each do |p| 
			 | 
		
	
		
			
			| 
				
			 | 
			
				77
			 | 
			
			
				+      %tr{class: p.row_class, data: {person_id: p.person.id, activity_id: @activity.id}} 
			 | 
		
	
		
			
			| 
				
			 | 
			
				78
			 | 
			
			
				+        %td 
			 | 
		
	
		
			
			| 
				
			 | 
			
				79
			 | 
			
			
				+          = p.person.full_name 
			 | 
		
	
		
			
			| 
				
			 | 
			
				80
			 | 
			
			
				+          - if p.is_organizer 
			 | 
		
	
		
			
			| 
				
			 | 
			
				81
			 | 
			
			
				+            %i.fa.fa-star-o 
			 | 
		
	
		
			
			| 
				
			 | 
			
				82
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				83
			 | 
			
			
				+        %td 
			 | 
		
	
		
			
			| 
				
			 | 
			
				84
			 | 
			
			
				+          = editable p, :notes, url: presence_group_activity_path(@activity.group, @activity, person_id: p.person_id), title: "Notes", value: p.notes, emptytext: "--" 
			 | 
		
	
		
			
			| 
				
			 | 
			
				85
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				86
			 | 
			
			
				+        %td 
			 | 
		
	
		
			
			| 
				
			 | 
			
				87
			 | 
			
			
				+          = render partial: "activities/presence_buttons", locals: {activity: @activity, person: p.person, state: p.attending} 
			 | 
		
	
		
			
			| 
				
			 | 
			
				88
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				89
			 | 
			
			
				+.hidden-sm.hidden-md.hidden-lg 
			 | 
		
	
		
			
			| 
				
			 | 
			
				90
			 | 
			
			
				+  .panel.panel-default.panel-success 
			 | 
		
	
		
			
			| 
				
			 | 
			
				91
			 | 
			
			
				+    .panel-heading 
			 | 
		
	
		
			
			| 
				
			 | 
			
				92
			 | 
			
			
				+      -#%button.btn.btn-default.btn-sm{data: {toggle: 'collapse', target: '#present-collapse'}} 
			 | 
		
	
		
			
			| 
				
			 | 
			
				93
			 | 
			
			
				+        -#%i.fa.fa-arrows-v 
			 | 
		
	
		
			
			| 
				
			 | 
			
				94
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				95
			 | 
			
			
				+      %a{role: 'button', href: '#present-collapse', data: {toggle: 'collapse'}, 'aria-expanded': 'false'} 
			 | 
		
	
		
			
			| 
				
			 | 
			
				96
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				97
			 | 
			
			
				+        %span.sv-show-collapsed 
			 | 
		
	
		
			
			| 
				
			 | 
			
				98
			 | 
			
			
				+          %i.fa.fa-angle-down 
			 | 
		
	
		
			
			| 
				
			 | 
			
				99
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				100
			 | 
			
			
				+        %span.sv-show-expanded 
			 | 
		
	
		
			
			| 
				
			 | 
			
				101
			 | 
			
			
				+          %i.fa.fa-angle-up 
			 | 
		
	
		
			
			| 
				
			 | 
			
				102
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				103
			 | 
			
			
				+        Present 
			 | 
		
	
		
			
			| 
				
			 | 
			
				104
			 | 
			
			
				+        %span.badge 
			 | 
		
	
		
			
			| 
				
			 | 
			
				105
			 | 
			
			
				+          = @counts[true] 
			 | 
		
	
		
			
			| 
				
			 | 
			
				106
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				107
			 | 
			
			
				+    %table.table.collapse#present-collapse 
			 | 
		
	
		
			
			| 
				
			 | 
			
				108
			 | 
			
			
				+      %tbody 
			 | 
		
	
		
			
			| 
				
			 | 
			
				109
			 | 
			
			
				+        - @participants.where(attending: true).each do |p| 
			 | 
		
	
		
			
			| 
				
			 | 
			
				110
			 | 
			
			
				+          %tr{data: {person_id: p.person.id, activity_id: @activity.id}} 
			 | 
		
	
		
			
			| 
				
			 | 
			
				111
			 | 
			
			
				+            %td 
			 | 
		
	
		
			
			| 
				
			 | 
			
				112
			 | 
			
			
				+              = p.person.full_name 
			 | 
		
	
		
			
			| 
				
			 | 
			
				113
			 | 
			
			
				+              - if p.is_organizer 
			 | 
		
	
		
			
			| 
				
			 | 
			
				114
			 | 
			
			
				+                %i.fa.fa-star-o 
			 | 
		
	
		
			
			| 
				
			 | 
			
				115
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				116
			 | 
			
			
				+            %td 
			 | 
		
	
		
			
			| 
				
			 | 
			
				117
			 | 
			
			
				+              = render partial: "activities/presence_buttons", locals: {activity: @activity, person: p.person, state: p.attending} 
			 | 
		
	
		
			
			| 
				
			 | 
			
				118
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				119
			 | 
			
			
				+          %tr{data: {person_id: p.person_id, activity_id: @activity.id}} 
			 | 
		
	
		
			
			| 
				
			 | 
			
				120
			 | 
			
			
				+            %td{colspan: "2"} 
			 | 
		
	
		
			
			| 
				
			 | 
			
				121
			 | 
			
			
				+              = editable p, :notes, url: presence_group_activity_path(@activity.group, @activity, person_id: p.person_id), title: "Notes", value: p.notes, emptytext: "--" 
			 | 
		
	
		
			
			| 
				
			 | 
			
				122
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				123
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				124
			 | 
			
			
				+  .panel.panel-default 
			 | 
		
	
		
			
			| 
				
			 | 
			
				125
			 | 
			
			
				+    .panel-heading 
			 | 
		
	
		
			
			| 
				
			 | 
			
				126
			 | 
			
			
				+      %a{role: 'button', href: '#unknown-collapse', data: {toggle: 'collapse'}, 'aria-expanded': 'false'} 
			 | 
		
	
		
			
			| 
				
			 | 
			
				127
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				128
			 | 
			
			
				+        %span.sv-show-collapsed 
			 | 
		
	
		
			
			| 
				
			 | 
			
				129
			 | 
			
			
				+          %i.fa.fa-angle-down 
			 | 
		
	
		
			
			| 
				
			 | 
			
				130
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				131
			 | 
			
			
				+        %span.sv-show-expanded 
			 | 
		
	
		
			
			| 
				
			 | 
			
				132
			 | 
			
			
				+          %i.fa.fa-angle-up 
			 | 
		
	
		
			
			| 
				
			 | 
			
				133
			 | 
			
			
				+        No reaction 
			 | 
		
	
		
			
			| 
				
			 | 
			
				134
			 | 
			
			
				+        %span.badge 
			 | 
		
	
		
			
			| 
				
			 | 
			
				135
			 | 
			
			
				+          = @counts[nil] 
			 | 
		
	
		
			
			| 
				
			 | 
			
				136
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				137
			 | 
			
			
				+    %table.table.collapse#unknown-collapse 
			 | 
		
	
		
			
			| 
				
			 | 
			
				138
			 | 
			
			
				+      %tbody 
			 | 
		
	
		
			
			| 
				
			 | 
			
				139
			 | 
			
			
				+        - @participants.where(attending: nil).each do |p| 
			 | 
		
	
		
			
			| 
				
			 | 
			
				140
			 | 
			
			
				+          %tr{data: {person_id: p.person.id, activity_id: @activity.id}} 
			 | 
		
	
		
			
			| 
				
			 | 
			
				141
			 | 
			
			
				+            %td 
			 | 
		
	
		
			
			| 
				
			 | 
			
				142
			 | 
			
			
				+              = p.person.full_name 
			 | 
		
	
		
			
			| 
				
			 | 
			
				143
			 | 
			
			
				+              - if p.is_organizer 
			 | 
		
	
		
			
			| 
				
			 | 
			
				144
			 | 
			
			
				+                %i.fa.fa-star-o 
			 | 
		
	
		
			
			| 
				
			 | 
			
				145
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				146
			 | 
			
			
				+            %td 
			 | 
		
	
		
			
			| 
				
			 | 
			
				147
			 | 
			
			
				+              = render partial: "activities/presence_buttons", locals: {activity: @activity, person: p.person, state: p.attending} 
			 | 
		
	
		
			
			| 
				
			 | 
			
				148
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				149
			 | 
			
			
				+          %tr{data: {person_id: p.person_id, activity_id: @activity.id}} 
			 | 
		
	
		
			
			| 
				
			 | 
			
				150
			 | 
			
			
				+            %td{colspan: "2"} 
			 | 
		
	
		
			
			| 
				
			 | 
			
				151
			 | 
			
			
				+              = editable p, :notes, url: presence_group_activity_path(@activity.group, @activity, person_id: p.person_id), title: "Notes", value: p.notes, emptytext: "--" 
			 | 
		
	
		
			
			| 
				
			 | 
			
				152
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				153
			 | 
			
			
				+  .panel.panel-default.panel-danger 
			 | 
		
	
		
			
			| 
				
			 | 
			
				154
			 | 
			
			
				+    .panel-heading 
			 | 
		
	
		
			
			| 
				
			 | 
			
				155
			 | 
			
			
				+      %a{role: 'button', href: '#absent-collapse', data: {toggle: 'collapse'}, 'aria-expanded': 'false'} 
			 | 
		
	
		
			
			| 
				
			 | 
			
				156
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				157
			 | 
			
			
				+        %span.sv-show-collapsed 
			 | 
		
	
		
			
			| 
				
			 | 
			
				158
			 | 
			
			
				+          %i.fa.fa-angle-down 
			 | 
		
	
		
			
			| 
				
			 | 
			
				159
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				160
			 | 
			
			
				+        %span.sv-show-expanded 
			 | 
		
	
		
			
			| 
				
			 | 
			
				161
			 | 
			
			
				+          %i.fa.fa-angle-up 
			 | 
		
	
		
			
			| 
				
			 | 
			
				162
			 | 
			
			
				+        Absent 
			 | 
		
	
		
			
			| 
				
			 | 
			
				163
			 | 
			
			
				+        %span.badge 
			 | 
		
	
		
			
			| 
				
			 | 
			
				164
			 | 
			
			
				+          = @counts[false] 
			 | 
		
	
		
			
			| 
				
			 | 
			
				165
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				166
			 | 
			
			
				+    %table.table.collapse#absent-collapse 
			 | 
		
	
		
			
			| 
				
			 | 
			
				167
			 | 
			
			
				+      %tbody 
			 | 
		
	
		
			
			| 
				
			 | 
			
				168
			 | 
			
			
				+        - @participants.where(attending: false).each do |p| 
			 | 
		
	
		
			
			| 
				
			 | 
			
				169
			 | 
			
			
				+          %tr{data: {person_id: p.person.id, activity_id: @activity.id}} 
			 | 
		
	
		
			
			| 
				
			 | 
			
				170
			 | 
			
			
				+            %td 
			 | 
		
	
		
			
			| 
				
			 | 
			
				171
			 | 
			
			
				+              = p.person.full_name 
			 | 
		
	
		
			
			| 
				
			 | 
			
				172
			 | 
			
			
				+              - if p.is_organizer 
			 | 
		
	
		
			
			| 
				
			 | 
			
				173
			 | 
			
			
				+                %i.fa.fa-star-o 
			 | 
		
	
		
			
			| 
				
			 | 
			
				174
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				175
			 | 
			
			
				+            %td 
			 | 
		
	
		
			
			| 
				
			 | 
			
				176
			 | 
			
			
				+              = render partial: "activities/presence_buttons", locals: {activity: @activity, person: p.person, state: p.attending} 
			 | 
		
	
		
			
			| 
				
			 | 
			
				177
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				178
			 | 
			
			
				+          %tr{data: {person_id: p.person_id, activity_id: @activity.id}} 
			 | 
		
	
		
			
			| 
				
			 | 
			
				179
			 | 
			
			
				+            %td{colspan: "2"} 
			 | 
		
	
		
			
			| 
				
			 | 
			
				180
			 | 
			
			
				+              = editable p, :notes, url: presence_group_activity_path(@activity.group, @activity, person_id: p.person_id), title: "Notes", value: p.notes, emptytext: "--" 
			 |