app/views/workarea/admin/releases/show.html.haml in workarea-admin-3.5.17 vs app/views/workarea/admin/releases/show.html.haml in workarea-admin-3.5.18
- old
+ new
@@ -19,23 +19,23 @@
= link_to t('workarea.admin.actions.delete'), release_path(@release), class: 'workflow-bar__button workflow-bar__button--delete', data: { method: 'delete', confirm: t('workarea.admin.actions.delete_confirmation') }
.grid__cell.grid__cell--80
.grid.grid--auto.grid--right
- if !@release.has_changes?
.grid__cell
- = link_to t('workarea.admin.releases.show.visit_storefront_to_preview'), '#no-changes-to-preview-info', disabled: 'disabled', data: { tooltip: '' }, class: 'workflow-bar__button workflow-bar__button--update'
+ = link_to t('workarea.admin.releases.show.visit_storefront_to_preview'), '#no-changes-to-preview-info', disabled: 'disabled', data: { tooltip: '' }, class: 'workflow-bar__button workflow-bar__button--update workflow-bar__button--disabled'
#no-changes-to-preview-info.tooltip-content
%p= t('workarea.admin.releases.show.no_changes_to_preview')
.grid__cell
- = link_to t('workarea.admin.releases.show.publish_now'), '#no-changes-to-publish-info', disabled: 'disabled', data: { tooltip: '' }, class: 'workflow-bar__button workflow-bar__button--update'
+ = link_to t('workarea.admin.releases.show.publish_now'), '#no-changes-to-publish-info', disabled: 'disabled', data: { tooltip: '' }, class: 'workflow-bar__button workflow-bar__button--update workflow-bar__button--disabled'
#no-changes-to-publish-info.tooltip-content
%p= t('workarea.admin.releases.show.no_changes_to_publish')
- else
.grid__cell
- if @release.published? && !@release.scheduled?
- = link_to t('workarea.admin.releases.show.visit_storefront_to_preview'), '#cannot-preview-info', disabled: 'disabled', data: { tooltip: '' }, class: 'workflow-bar__button workflow-bar__button--update'
+ = link_to t('workarea.admin.releases.show.visit_storefront_to_preview'), '#cannot-preview-info', disabled: 'disabled', data: { tooltip: '' }, class: 'workflow-bar__button workflow-bar__button--update workflow-bar__button--disabled'
#cannot-preview-info.tooltip-content
%p= t('workarea.admin.releases.show.unscheduled_republish_preview_info')
- elsif current_release.try(:id) == @release.id
= link_to t('workarea.admin.releases.show.visit_storefront_to_preview'), storefront.root_path, class: 'workflow-bar__button workflow-bar__button--update'
- else
@@ -48,8 +48,8 @@
- publish_text = @release.published? ? t('workarea.admin.releases.show.republish_now') : t('workarea.admin.releases.show.publish_now')
- if current_user.can_publish_now?
= form_tag publish_release_path(@release), method: :patch do
= button_tag publish_text, value: 'publish', class: 'workflow-bar__button workflow-bar__button--update'
- else
- = link_to publish_text, '#cannot-publish-info', disabled: 'disabled', data: { tooltip: '' }, class: 'workflow-bar__button workflow-bar__button--update'
+ = link_to publish_text, '#cannot-publish-info', disabled: 'disabled', data: { tooltip: '' }, class: 'workflow-bar__button workflow-bar__button--update workflow-bar__button--disabled'
#cannot-publish-info.tooltip-content
%p= t('workarea.admin.releases.show.user_cannot_publish_info')