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
c53f48b0
Commit
c53f48b0
authored
Feb 28, 2018
by
Tugce Nur Tas
Browse files
add collapse partial for volunteers events
parent
18f0abab
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/views/events/_volunteer_events.html.slim
0 → 100644
View file @
c53f48b0
button
.btn.btn-default
(
data-toggle
=
'collapse'
data-target
=
'#events'
type
=
'button'
aria-expanded
=
'false'
aria-controls
=
'events'
)
=
'Veranstaltungen'
hr
#events
.collapse
.table-responsive
table
.table
thead
th
Art
th
Datum
th
Zeit
th
Titel
th
Departement
th
tbody
-
events
.
each
do
|
event
|
tr
td
=
t
(
".
#{
event
.
kind
}
"
)
if
event
.
kind
td
=
l
(
event
.
date
.
to_date
)
if
event
.
date
td
=
"
#{
(
event
.
start_time
.
strftime
(
'%H:%M'
))
}
- "
if
event
.
start_time
=
"
#{
(
event
.
end_time
.
strftime
(
'%H:%M'
))
}
"
if
event
.
end_time
td
=
event
.
title
if
event
.
title
td
=
event
.
department
.
contact
.
last_name
if
event
.
department
td
.index-action-cell.hidden-print
span
=
link_to
t_action
(
:show
),
event_path
(
event
)
app/views/volunteers/show.html.slim
View file @
c53f48b0
...
...
@@ -192,6 +192,10 @@ h2.small= t('.availability')
h2
.small
=
t
(
'.old_group_assignments'
)
=
render
'group_assignments/volunteer_group_assignments_logs'
,
group_assignment_logs:
@volunteer
.
group_assignment_logs
-
if
@volunteer
.
events
.
any?
h3
#events
Veranstaltungen
=
render
'events/volunteer_events',
events:
@volunteer
.events
nav
.navbar.section-navigation
ul
.list-inline
li
=
button_link
current_user
.
volunteer?
?
t
(
'edit_profile'
)
:
t_title
(
:edit
),
edit_volunteer_path
(
@volunteer
)
...
...
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