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
79c46f7c
Commit
79c46f7c
authored
Oct 12, 2017
by
Chrysanthi Lagodimou
Browse files
show logs at volunteer show
parent
42796b38
Changes
4
Hide whitespace changes
Inline
Side-by-side
app/views/volunteers/_group_assignments.html.slim
View file @
79c46f7c
-
group_assignments
.
each
do
|
group_assignment
|
t
able
.table.table-stripe
d
t
head
t
r
th
=
t_attr
(
:
title
,
GroupOffer
)
th
=
t_attr
(
:
volunteer_rol
e
,
GroupAssignment
)
th
=
t_attr
(
:
start
_date
,
GroupAssignment
)
th
=
t_attr
(
:end_date
,
GroupAssignment
)
th
colspan
=
'5'
tbody
table
.table.table-striped
t
hea
d
t
r
t
h
=
t_attr
(
:title
,
GroupOffer
)
th
=
t_attr
(
:
volunteer_role
,
GroupAssignment
)
th
=
t_attr
(
:
start_dat
e
,
GroupAssignment
)
th
=
t_attr
(
:
end
_date
,
GroupAssignment
)
th
colspan
=
(
editable
=
=
'yes'
?
'6'
:
'2'
)
tbody
-
group_assignments
.
each
do
|
group_assignment
|
tr
td
=
link_to
group_assignment
.
group_offer
.
title
,
group_offer_path
(
group_assignment
.
group_offer
)
-
if
group_assignment
.
responsible
td
=
t_attr
(
:responsible
,
GroupAssignment
)
-
else
td
=
t_attr
(
:member
,
GroupAssignment
)
td
=
l
(
group_assignment
.
start_date
)
td
=
l
(
group_assignment
.
end_date
)
td
=
l
(
group_assignment
.
start_date
)
if
group_assignment
.
start_date
td
=
l
(
group_assignment
.
end_date
)
if
group_assignment
.
end_date
td
=
link_to
t_action
(
:show
),
group_offer_path
(
group_assignment
.
group_offer
)
td
=
link_to
t
(
'download'
),
group_offer_path
(
group_assignment
.
group_offer
,
format: :pdf
)
-
if
policy
(
GroupOffer
).
edit?
td
=
link_to
t_action
(
:edit
),
edit_group_offer_path
(
group_assignment
.
group_offer
)
-
if
policy
(
GroupOffer
).
destroy?
td
=
link_to
t_action
(
:destroy
),
group_offer_path
(
group_assignment
.
group_offer
),
confirm_deleting
(
group_assignment
.
group_offer
)
-
if
policy
(
GroupOffer
).
change_active_state?
td
=
link_to
"
#{
group_assignment
.
group_offer
.
active?
?
t
(
'.deactivate'
)
:
t
(
'.activate'
)
}
"
,
change_active_state_group_offer_path
(group_assignment
.group_offer
),
method:
:put,
remote:
:true
-
if
editable
==
'yes'
-
if
policy
(
GroupOffer
).
edit?
td
=
link_to
t_action
(
:edit
),
edit_group_offer_path
(
group_assignment
.
group_offer
)
-
if
policy
(
GroupOffer
).
destroy?
td
=
link_to
t_action
(
:destroy
),
group_offer_path
(
group_assignment
.
group_offer
),
confirm_deleting
(
group_assignment
.
group_offer
)
-
if
policy
(
GroupOffer
).
change_active_state?
td
=
link_to
"
#{
group_assignment
.
group_offer
.
active?
?
t
(
'.deactivate'
)
:
t
(
'.activate'
)
}
"
,
change_active_state_group_offer_path
(group_assignment
.group_offer
),
method:
:put,
remote:
:true
app/views/volunteers/show.html.slim
View file @
79c46f7c
...
...
@@ -174,7 +174,11 @@ h3= t('.availability')
-
if
@volunteer
.
group_assignments
.
any?
h3
#group_assignments
=
t
(
'.group_assignments'
)
=
render
'group_assignments'
,
group_assignments:
@volunteer
.
group_assignments
=
render
'group_assignments'
,
group_assignments:
@volunteer
.
group_assignments
,
editable:
'yes'
-
if
@volunteer
.
group_assignment_logs
.
any?
h3
#group_assignment_logs
=
t
(
'.old_group_assignments'
)
=
render
'group_assignments'
,
group_assignments:
@volunteer
.
group_assignment_logs
,
editable:
'no'
nav
.navbar.section-navigation
ul
.list-inline
...
...
config/locales/de.yml
View file @
79c46f7c
...
...
@@ -186,6 +186,7 @@ de:
group_assignments
:
Gruppenangebote
hour_reports
:
Stunden Rapporte
new_certificate
:
Nachweis ausstellen
old_group_assignments
:
Gruppenangebote Archive
report_hours
:
Stunden erfassen
show_certificate
:
Nachweis anzeigen
show_certificates
:
Nachweise anzeigen
...
...
config/locales/en.yml
View file @
79c46f7c
...
...
@@ -177,6 +177,7 @@ en:
group_assignments
:
Group offers
hour_reports
:
Hour reports
new_certificate
:
Create certificate
old_group_assignments
:
Group assignments log
report_hours
:
Report hours
show_certificate
:
Show certificate
show_certificates
:
Show certificates
...
...
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