Sha256: 6252bf14a960b5cfd06d1b65bc837458758291164005f0d087dd275d14f79ef4

Contents?: true

Size: 1.32 KB

Versions: 3

Compression:

Stored size: 1.32 KB

Contents

<div id="content_detail" class="ui-corner-all ui-widget-content">
  <%- if @library -%>
    <h1 class="title">
      <%= t('calendar.library_calendar', library_name: @library.display_name.localize) -%>
    </h1>
  <%- else -%>
    <h1 class="title">
      <%= t('calendar.calendar') -%>
    </h1>
  <%- end -%>

  <div id="content_list">
  <p id="notice"><%= notice %></p>

    <%- if @library -%>
      <h2 class="resource_title">
        <%= link_to @library.display_name.localize, @library -%>
      </h2>
    <%- else -%>
      <h2 class="resource_title">
        <%= t('event.all_libraries') -%>
      </h2>
    <%- end -%>

    <p>
      <%- if @library -%>
        (<%= link_to 'iCalendar', library_events_path(@library, format: :ics) -%>)
      <%- else -%>
        (<%= link_to 'iCalendar', events_path(format: :ics) -%>)
      <%- end -%>
    </p>

    <%= raw event_calendar %>
  </div>
</div>

<div id="submenu" class="ui-corner-all ui-widget-content">
  <ul>
    <li><%= link_to t('page.listing', model: t('activerecord.models.event')), events_path -%></li>
    <li><%= link_to t('page.show_all'), controller: :calendar, action: :index -%></li>
    <%- @libraries.each do |library| -%>
      <li><%= link_to library.display_name.localize, controller: :calendar, action: :index, library_id: library.name -%></li>
    <%- end -%>
  </ul>
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
enju_event-0.1.17.pre21 app/views/calendar/index.html.erb
enju_event-0.1.17.pre20 app/views/calendar/index.html.erb
enju_event-0.1.17.pre19 app/views/calendar/index.html.erb