mailr/themes/olive/views/messages/show.html.erb
Wojciech Todryk 7879dd49a2 devel
2011-09-09 22:10:25 +02:00

44 lines
1.1 KiB
Plaintext
Executable file

<% content_for :sidebar do %>
<%= content_for_sidebar %>
<% end %>
<% content_for :title do %>
- <%= subject_formatter(@message,:show) %>
<% end %>
<div class="block" id="block-tables">
<div class="secondary-navigation">
<%= raw main_navigation(:show) %>
</div>
<div class="content">
<%= form_tag(messages_ops_single_path)%>
<%= render :partial => 'header' %>
<%= render :partial => 'single_ops' %>
<% if not @attachments.size.zero? %>
<%= render :partial => 'attachments' %>
<% end %>
<% if not @images.size.zero? %>
<%= render :partial => 'images' %>
<% end %>
<% if not @html_part.nil? %>
<%= render :partial => 'html_part' %>
<% else %>
<div class="render_text">
<% if @text_part.nil? %>
<p>
<%= t(:no_content,:scope => :message) %>
</p>
<% else %>
<%= raw content_text_plain_for_render(@text_part) %>
<% end %>
</div>
<% end %>
</form>
</div>
</div>