From e268acec232d3bafc6d0f2d810646bf6e02d7335 Mon Sep 17 00:00:00 2001 From: Carlos Coelho Date: Mon, 14 Mar 2016 16:55:22 -0300 Subject: [PATCH] Added alert to withdrawn events Signed-off-by: Carlos Coelho --- app/views/admin/conference/show.html.haml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/views/admin/conference/show.html.haml b/app/views/admin/conference/show.html.haml index 7ce1c408..5e25a7af 100644 --- a/app/views/admin/conference/show.html.haml +++ b/app/views/admin/conference/show.html.haml @@ -1,3 +1,11 @@ +- if !@withdrawn_events.empty? + .alert.alert-warning.alert-dismissible{role: 'alert'} + %button.close{data: {dismiss: 'alert'}, aria: {label: 'Close'}, type: 'button'} + %span{aria: {hidden: 'true'}} + × + Sadly #{pluralize(@withdrawn_events.count, 'event')} #{'was'.pluralize(@withdrawn_events.count)} withdrawn. + = link_to 'Click here', admin_conference_program_events_path(@conference.short_title) + %h1 %span.fa.fa-tachometer Dashboard for #{@conference.title}