Sha256: 3a6513916c543e352e455c6021393d523edb5d84c6e6ed455ce48ae364d5826e

Contents?: true

Size: 1.74 KB

Versions: 16

Compression:

Stored size: 1.74 KB

Contents

<div id="content_detail" class="ui-corner-all ui-widget-content">
<h1 class="title"><%= t('page.showing', model: t('activerecord.models.event')) -%></h1>
<div id="content_list">
<p id="notice"><%= notice %></p>

<h2 class="resource_title">
  <%= @event.display_name.localize -%>
</h2>

<p>
  <strong><%= t('activerecord.attributes.event.name') -%>:</strong>
  <%= @event.name %>
</p>

<p>
  <strong><%= t('activerecord.models.event_category') -%>:</strong>
  <%= @event.event_category.display_name.localize -%>
</p>

<p>
  <strong><%= t('activerecord.models.library') -%>:</strong>
  <%= link_to @event.library.display_name.localize, @event.library -%>
</p>

<p>
  <strong><%= t('activerecord.attributes.event.start_at') -%>:</strong>
  <% if @event.all_day %>
    <%= l(@event.start_at, format: :only_date) -%>
  <% else %>
    <%= l(@event.start_at) -%>
  <% end %>
</p>

<p>
  <strong><%= t('activerecord.attributes.event.end_at') -%>:</strong>
  <% if @event.all_day %>
    <%= l(@event.end_at, format: :only_date) -%>
  <% else %>
    <%= l(@event.end_at) -%>
  <% end %>
</p>

<p>
  <strong><%= t('activerecord.attributes.event.all_day') -%>:</strong>
  <%= localized_boolean(@event.all_day) %>
</p>

<p>
  <strong><%= t('activerecord.attributes.event.note') -%>:</strong>
  <%= raw auto_link(simple_format(h(@event.note))) -%>
</p>

</div>
</div>

<div id="submenu" class="ui-corner-all ui-widget-content">
  <ul>
    <%- if policy(@event).update? -%>
      <li><%= link_to t('page.edit'), edit_event_path(@event) -%></li>
    <% end %>
    <% if policy(@event).destroy? %>
      <li><%= link_to t('page.destroy'), @event, data: {confirm: t('page.are_you_sure')}, method: :delete -%></li>
    <% end %>
    <li><%= back_to_index(flash[:page_info]) -%></li>
  </ul>
</div>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
enju_event-0.3.5 app/views/events/show.html.erb
enju_event-0.3.4 app/views/events/show.html.erb
enju_event-0.3.3 app/views/events/show.html.erb
enju_event-0.3.2 app/views/events/show.html.erb
enju_event-0.3.1 app/views/events/show.html.erb
enju_event-0.3.0 app/views/events/show.html.erb
enju_event-0.3.0.rc.1 app/views/events/show.html.erb
enju_event-0.3.0.beta.1 app/views/events/show.html.erb
enju_event-0.2.3 app/views/events/show.html.erb
enju_event-0.2.2 app/views/events/show.html.erb
enju_event-0.2.1 app/views/events/show.html.erb
enju_event-0.2.0 app/views/events/show.html.erb
enju_event-0.2.0.beta.4 app/views/events/show.html.erb
enju_event-0.2.0.beta.3 app/views/events/show.html.erb
enju_event-0.2.0.beta.2 app/views/events/show.html.erb
enju_event-0.2.0.beta.1 app/views/events/show.html.erb