Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
aoz-003
Commits
7de9cac6
Verified
Commit
7de9cac6
authored
Jan 19, 2018
by
Kaspar Vollenweider
👻
Browse files
list archived assignments in volunteer show
parent
12aba8f7
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/views/assignment_logs/_assignment_logs_volunteer_index.html.slim
0 → 100644
View file @
7de9cac6
table
.table.table-striped.assignments-table
thead
tr
th
=
t_model
(
Client
)
th
=
t_attr
(
:period_start
,
Assignment
)
th
=
t_attr
(
:period_end
,
Assignment
)
th
=
t_attr
(
:created_by
)
tbody
-
assignment_logs
.
each
do
|
assignment
|
tr
td
-
if
policy
(
Client
).
show?
=
link_to
assignment
.
client
,
assignment
.
client
-
else
=
assignment
.
client
td
=
l
(
assignment
.
period_start
)
if
assignment
.
period_start
td
=
l
(
assignment
.
period_end
)
if
assignment
.
period_end
td
-
if
policy
(
User
).
show?
&&
assignment
.
creator
.
profile
.
present?
=
link_to
assignment
.
creator
.
full_name
,
profile_path
(
assignment
.
creator
)
-
else
=
assignment
.
creator
.
full_name
app/views/volunteers/show.html.slim
View file @
7de9cac6
...
...
@@ -175,6 +175,10 @@ h3= t('.availability')
h3
#assignments
Begleitungen
=
render
'assignments/client_volunteer_index',
assignments:
@volunteer
.assignments
-
if
@volunteer
.
assignment_logs
.
any?
h3
Alte
Tandems
=
render
'assignment_logs/assignment_logs_volunteer_index',
assignment_logs:
@volunteer
.assignment_logs
-
if
@volunteer
.
group_assignments
.
any?
h3
#assignments
=
t
(
'.group_assignments'
)
=
render
'group_assignments/volunteer_group_assignments'
,
group_assignments:
@volunteer
.
group_assignments
,
editable:
true
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment