|
|
@@ -4,29 +4,29 @@
|
|
4
|
4
|
.col-md-12
|
|
5
|
5
|
.panel.panel-default
|
|
6
|
6
|
.panel-heading
|
|
7
|
|
- Need response
|
|
|
7
|
+ = t 'activities.state.need_response'
|
|
8
|
8
|
|
|
9
|
9
|
.panel-body
|
|
10
|
10
|
%table.table.table-bordered
|
|
11
|
11
|
%thead
|
|
12
|
12
|
%tr
|
|
13
|
13
|
%th
|
|
14
|
|
- Name
|
|
|
14
|
+ = t 'activities.attrs.name'
|
|
15
|
15
|
%th
|
|
16
|
|
- Group
|
|
|
16
|
+ = t 'activities.attrs.group'
|
|
17
|
17
|
%th
|
|
18
|
|
- When
|
|
|
18
|
+ = t 'activities.attrs.when'
|
|
19
|
19
|
%th
|
|
20
|
|
- Where
|
|
|
20
|
+ = t 'activities.attrs.where'
|
|
21
|
21
|
%th
|
|
22
|
|
- Actions
|
|
|
22
|
+ = t 'activities.attrs.actions'
|
|
23
|
23
|
|
|
24
|
24
|
%tbody
|
|
25
|
25
|
- @need_response.each do |p|
|
|
26
|
26
|
- e = p.activity
|
|
27
|
27
|
%tr{class: p.row_class, data: {activity_id: e.id, person_id: current_person.id}}
|
|
28
|
28
|
%td
|
|
29
|
|
- = e.public_name
|
|
|
29
|
+ = e.name
|
|
30
|
30
|
%td
|
|
31
|
31
|
= e.group.name
|
|
32
|
32
|
%td
|
|
|
@@ -39,7 +39,7 @@
|
|
39
|
39
|
.col-md-6
|
|
40
|
40
|
.panel.panel-default
|
|
41
|
41
|
.panel-heading
|
|
42
|
|
- Groups
|
|
|
42
|
+ = t 'groups.singular'
|
|
43
|
43
|
|
|
44
|
44
|
.panel-body
|
|
45
|
45
|
%table.table.table-bordered
|
|
|
@@ -53,7 +53,7 @@
|
|
53
|
53
|
.col-md-6
|
|
54
|
54
|
.panel.panel-default
|
|
55
|
55
|
.panel-heading
|
|
56
|
|
- Organized by you
|
|
|
56
|
+ = t 'dashboard.organized_you'
|
|
57
|
57
|
|
|
58
|
58
|
.panel-body
|
|
59
|
59
|
%table.table.table-striped.table-bordered
|
|
|
@@ -63,14 +63,14 @@
|
|
63
|
63
|
%tr
|
|
64
|
64
|
%td
|
|
65
|
65
|
= link_to group_activity_url(a.group, a) do
|
|
66
|
|
- = a.public_name
|
|
|
66
|
+ = a.name
|
|
67
|
67
|
= render partial: "activities/state_counts", locals: {counts: a.state_counts}
|
|
68
|
68
|
|
|
69
|
69
|
.row
|
|
70
|
70
|
.col-md-12
|
|
71
|
71
|
.panel.panel-default
|
|
72
|
72
|
.panel-heading
|
|
73
|
|
- Your activities
|
|
|
73
|
+ = t 'dashboard.participant_you'
|
|
74
|
74
|
|
|
75
|
75
|
.panel-body
|
|
76
|
76
|
%table.table.table-striped
|
|
|
@@ -79,8 +79,8 @@
|
|
79
|
79
|
- e = p.activity
|
|
80
|
80
|
%tr{class: p.row_class, data: {activity_id: e.id, person_id: current_person.id}}
|
|
81
|
81
|
%td
|
|
82
|
|
- = e.public_name
|
|
|
82
|
+ = e.name
|
|
83
|
83
|
%td
|
|
84
|
84
|
= render partial: "activities/presence_buttons", locals: {activity: e, person: current_person, state: p.attending}
|
|
85
|
85
|
%td
|
|
86
|
|
- = editable p, :notes, url: presence_group_activity_path(e.group, e, person_id: current_person.id), title: "Notes", value: p.notes, emptytext: 'Notes'
|
|
|
86
|
+ = editable p, :notes, url: presence_group_activity_path(e.group, e, person_id: current_person.id), title: t('activities.participant.notes'), value: p.notes, emptytext: t('activities.participant.add_notes')
|