Verified Commit 437d98e8 authored by Kaspar Vollenweider's avatar Kaspar Vollenweider 👻
Browse files

fix: wrong indent on beenden button and wrong use of terminatable?

- Beenden button could have ended up inside deactivate link
- deactivate link conditional could have prevented beenden display
- now fixed terminateable? method caused system test to fail, because
  it was working propperly now, so the link wasn't displayed, when it w
  was supposed to be
parent dcebcd66
......@@ -55,9 +55,9 @@ table.table.table-striped
= button_link navigation_glyph(offer.active? ? :deactivate : :activate),
change_active_state_group_offer_path(offer), method: :put,
title: (offer.active? ? 'Deaktivieren' : 'Aktivieren')
- if policy(offer).initiate_termination? && offer.terminatable?
= button_link navigation_glyph(:terminate),
initiate_termination_group_offer_path(offer), title: 'Beenden'
- if policy(offer).initiate_termination?
= button_link navigation_glyph(:terminate),
initiate_termination_group_offer_path(offer), title: 'Beenden'
td.button-acceptance= assignment_status_badge(offer)
td= offer.title
td
......
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