summaryrefslogtreecommitdiff
path: root/app/views/pms/index.html.erb
diff options
context:
space:
mode:
authorguntasgrewal <guntasgrewal@gmail.com>2014-04-28 19:47:54 -0400
committerguntasgrewal <guntasgrewal@gmail.com>2014-04-28 19:47:54 -0400
commita81ca51690e81444ecb87435ef29195b1e017f68 (patch)
tree44ef09088041e25451ac2264524ffb9cf838916e /app/views/pms/index.html.erb
parent1288b00d612d5969bfdde5b572cb7b6004b0cb66 (diff)
parent96fc595c1aefac65b20d931ee0efc6e7033a499d (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.erb15
1 files changed, 8 insertions, 7 deletions
diff --git a/app/views/pms/index.html.erb b/app/views/pms/index.html.erb
index fec6db2..c823efb 100644
--- a/app/views/pms/index.html.erb
+++ b/app/views/pms/index.html.erb
@@ -97,14 +97,12 @@
<table>
<col width="150">
- <col width="250">
- <col width="300">
+ <col width="650">
<tbody>
<%# if conversations.reject { |c| c.is_read?(current_user) || (c.receipts_for current_user).last.message.sender == current_user }.empty? %>
<tr>
<tr>
<td><b>With</b></td>
- <td><b>Subject</b></td>
<td><b>Body</b></td>
</tr>
<% conversations.each do |conversation| %>
@@ -112,7 +110,7 @@
<% if conversation.is_read?(current_user) || receipts.last.message.sender == current_user %>
<% message = receipts.last.message %>
<tr>
- <% if conversation.subject == "Pay Attention!" %>
+ <% if conversation.subject == "Pay Attention!" && message.sender != current_user %>
<td>
<% people = conversation.participants %>
<% people.each do |person| %>
@@ -121,8 +119,7 @@
<% end %>
<% end %>
</td>
- <td><%= truncate(conversation.subject, length: 30) %></td>
- <td><%= truncate(message.body, length: 42) %></td>
+ <td><%= truncate(message.body, length: 80) %></td>
<td><%= link_to 'View', @pms.find_by(conversation: conversation) %></td>
<% end %>
</tr>
@@ -133,4 +130,8 @@
<% #end %>
</tbody>
-</table> \ No newline at end of file
+</table>
+
+<br>
+<br>
+<br> \ No newline at end of file