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
a6781a98
Commit
a6781a98
authored
May 04, 2018
by
Zsolt Benke
Browse files
Added show/edit button to volunteers
parent
8c14b19d
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/views/volunteers/_buttons.html.slim
View file @
a6781a98
...
...
@@ -11,8 +11,10 @@ ul.list-inline
class
:
"btn
btn-acceptance-
#{
@volunteer
.
acceptance
}
"
-
if
policy
(
Volunteer
).
superadmin_privileges?
li
=
button_link
navigation_glyph
(
:journal
),
polymorphic_path
([
@volunteer
,
Journal
]),
title:
'Journal'
-
if
policy
(
Volunteer
).
show?
li
=
button_link
navigation_glyph
(
:show
),
polymorphic_path
(
@volunteer
),
title:
'Anzeigen'
-
if
action_name
==
'edit'
&&
policy
(
@volunteer
).
show?
li
=
button_link
navigation_glyph
(
:show
),
polymorphic_path
(
@volunteer
),
title:
t_action
(
:show
)
-
if
action_name
==
'show'
&&
policy
(
@volunteer
).
edit?
li
=
button_link
navigation_glyph
(
:edit
),
edit_polymorphic_path
(
@volunteer
),
title:
t_action
(
:edit
)
-
if
@volunteer
.
internal_and_started_assignments?
li
=
button_link
navigation_glyph
(
:hours
),
volunteer_hours_path
(
@volunteer
),
title:
t
(
'volunteer_applications.show.hour_reports'
)
-
if
policy
(
Volunteer
).
superadmin_privileges?
&&
@volunteer
.
seeking_clients?
...
...
app/views/volunteers/show.html.slim
View file @
a6781a98
h1
=
@volunteer
.
contact
.
full_name
h1
.m-b-20
=
@volunteer
.
contact
.
full_name
-
if
@volunteer
.
rejected?
-
if
@volunteer
.
rejection_type
.
present?
h4
=
"
#{
t_attr
(
:rejection_type
)
}
:
#{
t
(
"rejection_type.
#{
@volunteer
.
rejection_type
}
"
)
}
"
...
...
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