Sha256: 1b05ea5ffcbf3a1fdff2959af949c807aa2c06cf23d0e84ec2570536e7e96179
Contents?: true
Size: 1.04 KB
Versions: 20
Compression:
Stored size: 1.04 KB
Contents
<% content_for :title do %> <%= profile_or_current_subject.name + ": " + t('event.calendar') %> <% end %> <section id="events"> <%= render partial: 'toolbar/profile', locals: { subject: profile_or_current_subject } %> <div id="calendar" class="table-striped" data-events_path="<%= polymorphic_path [profile_or_current_subject, Event.new] %>" data-date="<%= params[:date] %>" data-view="<%= params[:view] %>" <%= 'data-can-create="true"' if can?(:create, new_post(profile_or_current_subject)) %>></div> <% if can? :create, new_post(profile_or_current_subject) %> <div id="calendar_form" class="modal hide fade"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true"> × </button> <h3> <%= t('event.new.title') %> </h3> </div> <div class="modal-body"> <%= render partial: 'new' %> </div> </div> <% end %> </section> <%= javascript_tag do %> $(function(){ SocialStream.FullCalendar.show(); }); <% end %>
Version data entries
20 entries across 20 versions & 2 rubygems