Commit aae517b9 authored by Chrysanthi Lagodimou's avatar Chrysanthi Lagodimou
Browse files

fix journal rendering after adding buttons

parent 4ee7c1f4
......@@ -4,15 +4,16 @@
.row
- if policy(Volunteer).supervisor?
.col-xs-12.col-md-3
.col-xs-12
= render 'journals/journal_block', journaled_for: @volunteer
.row
- if policy(Volunteer).seeking_clients? & @volunteer.seeking_clients?
.col-xs-12.col-md-3
.col-xs-12.col-md-4
= button_link t_title(:new, Assignment), new_assignment_path(volunteer_id: @volunteer)
- if @volunteer.assignments.any?
.col-xs-12.col-md-3
.col-xs-12.col-md-4
= button_link t_title(:new, Hour), new_hour_url(volunteer_id: @volunteer)
.col-xs-12.col-md-3
.col-xs-12.col-md-4
= button_link t_title(:index, Hour), volunteer_hours_volunteer_path(@volunteer)
- if policy(Volunteer).checklist?
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment