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">
          &times;
        </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

Version Path
social_stream-2.2.2 events/app/views/events/index.html.erb
social_stream-events-2.2.1 app/views/events/index.html.erb
social_stream-2.2.1 events/app/views/events/index.html.erb
social_stream-2.2.0 events/app/views/events/index.html.erb
social_stream-events-2.2.0 app/views/events/index.html.erb
social_stream-2.1.1 events/app/views/events/index.html.erb
social_stream-2.1.0 events/app/views/events/index.html.erb
social_stream-events-2.1.0 app/views/events/index.html.erb
social_stream-2.0.4 events/app/views/events/index.html.erb
social_stream-events-2.0.2 app/views/events/index.html.erb
social_stream-2.0.3 events/app/views/events/index.html.erb
social_stream-2.0.2 events/app/views/events/index.html.erb
social_stream-events-2.0.1 app/views/events/index.html.erb
social_stream-2.0.1 events/app/views/events/index.html.erb
social_stream-2.0.0 events/app/views/events/index.html.erb
social_stream-events-2.0.0 app/views/events/index.html.erb
social_stream-2.0.0.beta3 events/app/views/events/index.html.erb
social_stream-events-2.0.0.beta3 app/views/events/index.html.erb
social_stream-2.0.0.beta2 events/app/views/events/index.html.erb
social_stream-events-2.0.0.beta2 app/views/events/index.html.erb