diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2020-01-27 11:05:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-27 11:05:33 +0100 |
commit | 663ea84b08162578cd06b54bfb998072b2bef8b9 (patch) | |
tree | adb4e2701655dd2d62140f101ebb1815e399d1ff /app/views/admin/announcements/edit.html.haml | |
parent | 4363d06986bb2df1bb15db54df41ddf1d9682afb (diff) |
Add publish/unpublish controls to announcements in admin UI (#12967)
Diffstat (limited to 'app/views/admin/announcements/edit.html.haml')
-rw-r--r-- | app/views/admin/announcements/edit.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/admin/announcements/edit.html.haml b/app/views/admin/announcements/edit.html.haml index c5c605e93..5f56db5e7 100644 --- a/app/views/admin/announcements/edit.html.haml +++ b/app/views/admin/announcements/edit.html.haml @@ -14,7 +14,7 @@ .fields-group = f.input :text, wrapper: :with_block_label - - if @announcement.scheduled_at.present? && !@announcement.published? + - unless @announcement.published? .fields-group = f.input :scheduled_at, include_blank: true, wrapper: :with_block_label |