commit:     852fca3a0175ad0f22d99ec69534a1d358081afb
Author:     Alex Legler <alex <AT> a3li <DOT> li>
AuthorDate: Sun Feb 22 11:02:27 2015 +0000
Commit:     Alex Legler <a3li <AT> gentoo <DOT> org>
CommitDate: Sun Feb 22 11:02:27 2015 +0000
URL:        
http://sources.gentoo.org/gitweb/?p=proj/ag-web.git;a=commit;h=852fca3a

Responsiveness fixes for the headers table

---
 views/message.erb | 69 +++++++++++++++++++++++++++++--------------------------
 1 file changed, 36 insertions(+), 33 deletions(-)

diff --git a/views/message.erb b/views/message.erb
index d9c1c66..74525ca 100644
--- a/views/message.erb
+++ b/views/message.erb
@@ -1,38 +1,41 @@
 <h1 class="first-header">Gentoo Archives: <%= list %></h1>
 
-<table class="table table-condensed ag-header-table">
-  <tr>
-    <th class="ag-header-name-col">From:</th>
-    <td colspan="3"><%= h strip_email_domain(message['_source']['from']) 
%></td>
-  </tr>
-  <tr>
-    <th>To:</th>
-    <td colspan="3"><%= h strip_email_domain(message['_source']['to']) %></td>
-  </tr>
-  <% unless message['_source']['cc'] == nil or message['_source']['cc'] == '' 
%>
-  <tr>
-    <th>Cc:</th>
-    <td colspan="3"><%= h strip_email_domain(message['_source']['cc']) %></td>
-  </tr>
-  <% end %>
-  <tr>
-    <th>Subject:</th>
-    <td colspan="3"><strong><%= h message['_source']['subject'] 
%></strong></td>
-  </tr>
-  <tr>
-    <th>Date:</th>
-    <td><%= date_format message['_source']['date'] %></td>
-    <th class="ag-header-msgid-col">Message-Id:</th>
-    <td><%= message['_source']['raw_message_id'] %></td>
-  </tr>
-  <% unless parent == nil %>
-  <tr>
-    <th>In Reply to:</th>
-    <td colspan="3"><a href="<%= parent['_id'] %>"><%= 
parent['_source']['subject'] %></a> by <%= parent['_source']['from'] %></td>
-  </tr>
-  <% end %>
-</table>
-<!-- Message-Id: <%= message['_source']['raw_message_id'] %> -->
+<div class="table-responsive">
+  <table class="table table-condensed ag-header-table">
+    <tr>
+      <th class="ag-header-name-col">From:</th>
+      <td><%= h strip_email_domain(message['_source']['from']) %></td>
+    </tr>
+    <tr>
+      <th>To:</th>
+      <td><%= h strip_email_domain(message['_source']['to']) %></td>
+    </tr>
+    <% unless message['_source']['cc'] == nil or message['_source']['cc'] == 
'' %>
+    <tr>
+      <th>Cc:</th>
+      <td><%= h strip_email_domain(message['_source']['cc']) %></td>
+    </tr>
+    <% end %>
+    <tr>
+      <th>Subject:</th>
+      <td><strong><%= h message['_source']['subject'] %></strong></td>
+    </tr>
+    <tr>
+      <th>Date:</th>
+      <td><%= date_format message['_source']['date'] %></td>
+    </tr>
+    <tr>
+      <th>Message-Id:</th>
+      <td><tt><%= h message['_source']['raw_message_id'] %></tt></td>
+    </tr>
+    <% unless parent == nil %>
+    <tr>
+      <th>In Reply to:</th>
+      <td colspan="3"><a href="<%= parent['_id'] %>"><%= 
parent['_source']['subject'] %></a> by <%= parent['_source']['from'] %></td>
+    </tr>
+    <% end %>
+  </table>
+</div>
 
 <pre class="ag-message-content">
 <%= linkize(strip_email(message['_source']['content'])) %>

Reply via email to