finished dmails and favorites functional tests
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
<h1>Edit Message</h1>
|
||||
<%= render "form", :locals => {:dmail => @dmail} %>
|
||||
<%= render :partial => "form", :locals => {:dmail => @dmail} %>
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
<tbody>
|
||||
<% @dmails.each do |dmail| %>
|
||||
<% if params[:folder] == "sent" %>
|
||||
<%= render "sent", :locals => {:dmail => dmail} %>
|
||||
<%= render :partial => "sent", :locals => {:dmail => dmail} %>
|
||||
<% else %>
|
||||
<%= render "received", :locals => {:dmail => dmail} %>
|
||||
<%= render :partial => "received", :locals => {:dmail => dmail} %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</tbody>
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
<h1>New Message</h1>
|
||||
<%= render "form", :locals => {:dmail => @dmail} %>
|
||||
<%= render :partial => "form", :locals => {:dmail => @dmail} %>
|
||||
|
||||
12
app/views/dmails/show.html.erb
Normal file
12
app/views/dmails/show.html.erb
Normal file
@@ -0,0 +1,12 @@
|
||||
<div class="dmails">
|
||||
<div class="show">
|
||||
<div class="dmail">
|
||||
<h1><%= @dmail.title %></h1>
|
||||
<%= format_text(@dmail.body) %>
|
||||
<p>
|
||||
<%= link_to "Respond", new_dmail_path(:respond_to_id => @dmail) %>
|
||||
| <%= link_to "Forward", new_dmail_path(:respond_to_id => @dmail, :forward => true) %>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user