mailr/themes/olive/views/messages/show.html.erb
Wojciech Todryk 52b4c63ddb devel
2011-08-26 22:59:43 +02:00

44 lines
1.2 KiB
Plaintext
Executable file

<% content_for :sidebar do %>
<%= render :partial => 'folders/list' %>
<% end %>
<% content_for :title do %>
- <%= @message.subject %>
<% end %>
<div class="block" id="block-tables">
<div class="secondary-navigation">
<%= raw main_navigation(:show) %>
</div>
<div class="content">
<%= form_tag(messages_msgops_path)%>
<%= render :partial => 'header' %>
<%= render :partial => 'msg_ops' %>
<% if not @attachments.size.zero? %>
<%= render :partial => 'attachments' %>
<% end %>
<% if not @render_rich.nil? %>
<%= render :partial => 'body' ,:object => @render_body %>
<% else %>
<div class="render_text">
<span><%= t(:content,:scope=>:message) %></span>
<% if @render_as_text.size.zero? %>
<p>
<%= t(:no_content,:scope => :message) %>
</p>
<% else %>
<% @render_as_text.each do |r| %>
<%= raw content_text_plain_for_render(r) %>
<% end %>
<% end %>
</div>
<% end %>
</form>
</div>
</div>