mailr/themes/olive/views/messages/show.html.erb

44 lines
1.1 KiB
Plaintext
Raw Normal View History

2011-08-02 23:12:17 +02:00
<% content_for :sidebar do %>
2011-09-09 22:10:25 +02:00
<%= content_for_sidebar %>
2011-08-02 23:12:17 +02:00
<% end %>
<% content_for :title do %>
2011-09-09 22:10:25 +02:00
- <%= subject_formatter(@message,:show) %>
2011-08-02 23:12:17 +02:00
<% end %>
<div class="block" id="block-tables">
<div class="secondary-navigation">
<%= raw main_navigation(:show) %>
</div>
<div class="content">
2011-09-05 19:08:22 +02:00
<%= form_tag(messages_ops_single_path)%>
2011-08-24 19:20:13 +02:00
<%= render :partial => 'header' %>
2011-09-05 19:08:22 +02:00
<%= render :partial => 'single_ops' %>
2011-08-24 19:20:13 +02:00
<% if not @attachments.size.zero? %>
<%= render :partial => 'attachments' %>
<% end %>
2011-09-03 13:07:40 +02:00
<% if not @images.size.zero? %>
<%= render :partial => 'images' %>
<% end %>
<% if not @html_part.nil? %>
2011-08-27 22:00:06 +02:00
<%= render :partial => 'html_part' %>
2011-08-24 19:20:13 +02:00
<% else %>
<div class="render_text">
2011-09-03 13:07:40 +02:00
<% if @text_part.nil? %>
2011-08-24 19:20:13 +02:00
<p>
<%= t(:no_content,:scope => :message) %>
</p>
<% else %>
2011-09-03 13:07:40 +02:00
<%= raw content_text_plain_for_render(@text_part) %>
2011-08-24 19:20:13 +02:00
<% end %>
</div>
<% end %>
</form>
2011-08-02 23:12:17 +02:00
</div>
</div>