This commit is contained in:
albert
2012-01-13 18:28:01 -05:00
parent 28212516df
commit a3821d0397
5 changed files with 10 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
<%= simple_form_for(dmail) do |f| %>
<%= f.input :to_name, :label => "To" %>
<%= f.input :title %>
<%= f.input :title, :as => :string %>
<%= dtext_field "dmail", "body" %>
<%= f.button :submit, "Send" %>
<%= dtext_preview_button "dmail", "body" %>

View File

@@ -13,7 +13,7 @@
</thead>
<tbody>
<% @dmails.each do |dmail| %>
<tr>
<tr class="read-<%= dmail.is_read? %>">
<td><%= compact_time(dmail.created_at) %></td>
<td><%= link_to dmail.from_name, user_path(dmail.from) %></td>
<td><%= link_to dmail.to_name, user_path(dmail.to) %></td>