Sha256: 1ef3b637057452569b0b376053ca9007daebe6f2dbb46680ae4b338b0f3a4018

Contents?: true

Size: 1.71 KB

Versions: 3

Compression:

Stored size: 1.71 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 -%>
</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 -%>
</p>

<p>
  <strong><%= t('activerecord.models.library') -%>:</strong>
  <%= link_to @event.library.display_name, @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

3 entries across 3 versions & 1 rubygems

Version Path
enju_event-0.4.0.rc.1 app/views/events/show.html.erb
enju_event-0.4.0.beta.2 app/views/events/show.html.erb
enju_event-0.4.0.beta.1 app/views/events/show.html.erb