summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-11-12 15:20:31 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-11-12 15:20:31 +0200
commit13a66040300241caf234726bfc72ca90ef4c34fd (patch)
tree799265bbd29218323deb09a82bf56ee50533c140 /app/views
parentc5b667351abcda4b5ac134873007a0ce47976e88 (diff)
downloadgitlab-ce-13a66040300241caf234726bfc72ca90ef4c34fd.tar.gz
Ability to remvoe broadcast messages
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views')
-rw-r--r--app/views/admin/broadcast_messages/index.html.haml7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/views/admin/broadcast_messages/index.html.haml b/app/views/admin/broadcast_messages/index.html.haml
index 22f7b71912c..fc750a4be77 100644
--- a/app/views/admin/broadcast_messages/index.html.haml
+++ b/app/views/admin/broadcast_messages/index.html.haml
@@ -25,7 +25,7 @@
= f.submit "Add broadcast message", class: "btn btn-create"
-if @broadcast_messages.any?
- %ul.bordered-list
+ %ul.bordered-list.broadcast-messages
- @broadcast_messages.each do |broadcast_message|
%li
.pull-right
@@ -36,6 +36,11 @@
- if broadcast_message.ends_at
%strong
#{broadcast_message.ends_at.to_s(:short)}
+ &nbsp;
+ = link_to [:admin, broadcast_message], method: :delete, remote: true, class: 'remove-row btn btn-tiny' do
+ %i.icon-remove.cred
+
.message= broadcast_message.message
+
= paginate @broadcast_messages