summaryrefslogtreecommitdiff
path: root/app/views/pms/index.html.erb
diff options
context:
space:
mode:
authortkimia <tkimia@purdue.edu>2014-04-24 19:22:14 -0400
committertkimia <tkimia@purdue.edu>2014-04-24 19:22:14 -0400
commit9788bda30fd076215c720c49ebf8b6ae2303930d (patch)
treee6573686b929ff95dde8a0e31947aeabd1704c62 /app/views/pms/index.html.erb
parent7de35332168374c176915cfeced61acc11f0ec8e (diff)
parent379cf06b33c672e01845c9c826ce58f8517059bd (diff)
Merge branch 'master' of https://github.com/LukeShu/leaguer
Diffstat (limited to 'app/views/pms/index.html.erb')
-rw-r--r--app/views/pms/index.html.erb70
1 files changed, 0 insertions, 70 deletions
diff --git a/app/views/pms/index.html.erb b/app/views/pms/index.html.erb
index ee31e08..b5f4884 100644
--- a/app/views/pms/index.html.erb
+++ b/app/views/pms/index.html.erb
@@ -68,73 +68,3 @@
<br>
<%= link_to 'New Pm', new_pm_path %>
-<h1>Conversations</h1>
-
-<table>
- <tbody>
- <tr>
- <td><h3>Inbox<h3></td>
- </tr>
- <tr>
- <% conversations = current_user.mailbox.inbox %>
- <% if !conversations.empty? %>
- <%# require 'pp' %>
- <%= conversations.class %>
- <tr>
- <td><b>From</b></td>
- <td><b>Subject</b></td>
- <td><b>Body</b></td>
- </tr>
- <% conversations.each do |conversation| %>
- <% receipts = conversation.receipts_for current_user %>
- <% receipts.each do |receipt| %>
- <% message = receipt.message %>
- <tr>
- <td><%= conversation.last_sender.user_name %></td>
- <td><%= message.subject %></td>
- <td><%= message.body %></td>
- <td><%# link_to 'Show', @pm.where(conversation: conversation) %></td>
- </tr>
- <% end %>
- <% end %>
-
- <% else %>
- <td><p> No Messages </p></td>
- <% end %>
- </tr>
-
- <tr>
- <td><h3>Outbox<h3></td>
- </tr>
- <tr>
- <% conversations = current_user.mailbox.sentbox %>
- <% if !conversations.empty? %>
- <tr>
- <td><b>To</b></td>
- <td><b>Subject</b></td>
- <td><b>Body</b></td>
- </tr>
- <% conversations.each do |conversation| %>
- <% receipts = conversation.receipts_for current_user %>
- <% receipts.each do |receipt| %>
- <% message = receipt.message %>
- <tr>
- <td>Doesn't work</td>
- <td><%= message.subject %></td>
- <td><%= message.body %></td>
- <td><%# link_to 'Show', conversation %></td>
- </tr>
- <% end %>
- <% end %>
-
- <% else %>
- <td><p> No Messages </p></td>
- <% end %>
- </tr>
-
- </tbody>
-</table>
-
-<br>
-
-<%= link_to 'New Pm', new_pm_path %>