Sha256: 724b1e759a38d43d96f2e6dc7b6f13bbf43c5f0c99aca1717bd8f8cdff275907

Contents?: true

Size: 1.78 KB

Versions: 20

Compression:

Stored size: 1.78 KB

Contents

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

  <fieldset>
      <p>
        <label for="message_receiver_name" ><strong><%= t('message.receiver') -%>:</strong></label>
        <%= link_to @message.receiver.username, @message.receiver.profile if @message.receiver.try(:profile) -%>
      </p>
      <p>
        <label for="message_sender_name" ><strong><%= t('message.sender') -%>:</strong></label>
        <%= link_to @message.sender.username, @message.sender.profile if @message.sender.try(:profile) -%>
      </p>

      <p>
        <label for="message_sent_at" ><strong><%= t('message.sent_at') -%>:</strong></label>
        <%= l(@message.created_at) -%>
      </p>

      <p>
        <label for="message_subject" ><strong><%= t('activerecord.attributes.message.subject') -%>:</strong></label>
        <%= @message.subject -%>
      </p>

      <p>
        <label for="message_body" ><strong><%= t('activerecord.attributes.message.body') -%>:</strong></label>
        <%= raw auto_link(simple_format(h(@message.body))) -%>
      </p>

  </fieldset>

</div>
</div>

<div id="submenu" class="ui-corner-all ui-widget-content">
  <ul>
    <% if request.referer %>
      <li><%= link_to t('page.back'), :back -%></li>
    <% else %>
      <li><%= link_to t('page.listing', model: t('activerecord.models.message')), messages_path -%></li>
    <% end %>
    <% if policy(Message).create? %>
      <li><%= link_to t('message.reply'), new_message_path(parent_id: @message.id) -%></li>
    <% end %>
    <% if policy(@message).destroy? %>
      <li><%= link_to t('page.destroy'), @message, data: {confirm: t('page.are_you_sure')}, method: :delete -%></li>
    <% end %>
  </ul>
</div>

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
enju_message-0.3.4 app/views/messages/show.html.erb
enju_message-0.3.3 app/views/messages/show.html.erb
enju_message-0.4.0.rc.1 app/views/messages/show.html.erb
enju_message-0.3.2 app/views/messages/show.html.erb
enju_message-0.4.0.beta.2 app/views/messages/show.html.erb
enju_message-0.4.0.beta.1 app/views/messages/show.html.erb
enju_message-0.3.1 app/views/messages/show.html.erb
enju_message-0.3.0 app/views/messages/show.html.erb
enju_message-0.3.0.rc.1 app/views/messages/show.html.erb
enju_message-0.3.0.beta.1 app/views/messages/show.html.erb
enju_message-0.2.4 app/views/messages/show.html.erb
enju_message-0.2.3 app/views/messages/show.html.erb
enju_message-0.2.2 app/views/messages/show.html.erb
enju_message-0.2.1 app/views/messages/show.html.erb
enju_message-0.2.0 app/views/messages/show.html.erb
enju_message-0.2.0.beta.5 app/views/messages/show.html.erb
enju_message-0.2.0.beta.4 app/views/messages/show.html.erb
enju_message-0.2.0.beta.3 app/views/messages/show.html.erb
enju_message-0.2.0.beta.2 app/views/messages/show.html.erb
enju_message-0.2.0.beta.1 app/views/messages/show.html.erb