Sprankelprachtig aan/afmeldsysteem

_prev_next.html.haml 580B

12345678910111213141516
  1. .row.form-group
  2. .col-xs-12
  3. - if @activity.previous_in_group
  4. = link_to group_activity_path(@group, @activity.previous_in_group), class: 'btn btn-default ellipsize-50' do
  5. %span
  6. %i.fas.fa-arrow-left
  7. %span
  8. = @activity.previous_in_group.name
  9. - if @activity.next_in_group
  10. = link_to group_activity_path(@group, @activity.next_in_group), class: 'btn btn-default ellipsize-50 pull-right' do
  11. %span.pull-right{style: "margin-left: 3px"}
  12. %i.fas.fa-arrow-right
  13. %span
  14. = @activity.next_in_group.name