|
78 | 78 | = link_to release_changesets_path(model), class: 'card__button' do
|
79 | 79 | %span.button.button--small= t('workarea.admin.releases.cards.planned_changes.button')
|
80 | 80 |
|
81 |
| - .grid__cell |
82 |
| - - if model.undoes? |
83 |
| - .card{ class: card_classes(:original, local_assigns[:active]) } |
84 |
| - = link_to original_release_path(model), class: 'card__header' do |
85 |
| - %span.card__header-text= t('workarea.admin.releases.cards.original.title') |
86 |
| - = inline_svg_tag 'workarea/admin/icons/planned_changes.svg', class: 'card__icon' |
87 |
| - |
88 |
| - - if local_assigns[:active].blank? |
89 |
| - .card__body |
90 |
| - .card__empty-note |
91 |
| - %p= t('workarea.admin.releases.cards.original.undoes_html', link: link_to(model.undoes.name, release_path(model.undoes))) |
92 |
| - |
93 |
| - - if model.undoes.publish_at.present? && model.undoes.publish_at.future? |
94 |
| - %p= t('workarea.admin.releases.cards.undo.set_to_publish_html', link: link_to(model.undoes.name, release_path(model.undoes)), at: local_time_ago(model.undoes.publish_at)) |
95 |
| - - elsif model.undoes.published_at.present? |
96 |
| - %p= t('workarea.admin.releases.cards.undo.published_html', link: link_to(model.undoes.name, release_path(model.undoes)), at: local_time_ago(model.undoes.published_at)) |
97 |
| - - else |
98 |
| - %p= t('workarea.admin.releases.cards.undo.unscheduled_html', link: link_to(model.undoes.name, release_path(model.undoes))) |
99 |
| - |
100 |
| - = link_to original_release_path(model), class: 'card__button' do |
101 |
| - %span.button.button--small= t('workarea.admin.releases.cards.original.learn_more') |
102 |
| - |
103 |
| - - else |
104 |
| - .card{ class: card_classes(:undo, local_assigns[:active]) } |
105 |
| - = link_to undo_release_path(model), class: 'card__header' do |
106 |
| - %span.card__header-text= t('workarea.admin.releases.cards.undo.title') |
107 |
| - = inline_svg_tag 'workarea/admin/icons/planned_changes.svg', class: 'card__icon' |
108 |
| - |
109 |
| - - if local_assigns[:active].blank? |
110 |
| - .card__body |
111 |
| - .card__empty-note |
112 |
| - - if model.undo.blank? |
113 |
| - %p= t('workarea.admin.releases.cards.undo.not_setup') |
114 |
| - |
115 |
| - = link_to undo_release_path(model), class: 'card__button' do |
116 |
| - %span.button.button--small= t('workarea.admin.releases.cards.undo.build_an_undo') |
117 |
| - |
118 |
| - - else |
119 |
| - %p= t('workarea.admin.releases.cards.undo.undo_html', link: link_to(model.undo.name, release_path(model.undo)), at: local_time_ago(model.undo.created_at)) |
120 |
| - |
121 |
| - - if model.undo.publish_at.present? && model.undo.publish_at.future? |
122 |
| - %p= t('workarea.admin.releases.cards.undo.set_to_publish_html', link: link_to(model.undo.name, release_path(model.undo)), at: local_time_ago(model.undo.publish_at)) |
123 |
| - - elsif model.undo.published_at.present? |
124 |
| - %p= t('workarea.admin.releases.cards.undo.published_html', link: link_to(model.undo.name, release_path(model.undo)), at: local_time_ago(model.undo.published_at)) |
125 |
| - - else |
126 |
| - %p= t('workarea.admin.releases.cards.undo.unscheduled_html', link: link_to(model.undo.name, release_path(model.undo))) |
127 |
| - |
128 |
| - = link_to undo_release_path(model), class: 'card__button' do |
129 |
| - %span.button.button--small= t('workarea.admin.releases.cards.undo.learn_more') |
130 |
| - |
131 | 81 | .grid__cell
|
132 | 82 | = render 'workarea/admin/comments/card', commentable: model, active: local_assigns[:active]
|
0 commit comments