about summary refs log tree commit diff
path: root/app/views/admin/announcements/edit.html.haml
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2020-01-27 11:05:33 +0100
committerGitHub <noreply@github.com>2020-01-27 11:05:33 +0100
commit663ea84b08162578cd06b54bfb998072b2bef8b9 (patch)
treeadb4e2701655dd2d62140f101ebb1815e399d1ff /app/views/admin/announcements/edit.html.haml
parent4363d06986bb2df1bb15db54df41ddf1d9682afb (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.haml2
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