app/views/events/_header.html.haml in artfully_ose-1.2.0 vs app/views/events/_header.html.haml in artfully_ose-1.3.0.pre1
- old
+ new
@@ -3,9 +3,9 @@
%h1= @event.name
%h3.subtitle= @event.subtitle if @event.subtitle.present?
.span4#event-header-logo-container
-if @event.image?
=image_tag(@event.image.url(:thumb), :id => 'event-header-logo', :width => 75, :height => 75)
- -else
+ -elsif (current_user.can? :manage, Event)
.no-image.pull-right
#text
=link_to 'Add image', image_event_path(@event)
\ No newline at end of file