app/views/events/index.html.haml in artfully_ose-1.2.0 vs app/views/events/index.html.haml in artfully_ose-1.3.0.pre1
- old
+ new
@@ -17,10 +17,11 @@
%button{:type => "submit", :class=>"btn"}
Search
.span4
.pull-right
- = link_to "Create Event", new_event_path, :class => "btn btn-primary"
+ -if current_user.can? :create, Event
+ = link_to "Create Event", new_event_path, :class => "btn btn-primary"
.row
.span8.offset2
= render :partial => 'list', :locals => { :events => @events }
\ No newline at end of file