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

Responsiveness fix #3: Finally nice buttons

---
 public/css/main.css |  5 ++---
 views/message.erb   | 54 ++++++++++++++++++++++++++++++-----------------------
 2 files changed, 33 insertions(+), 26 deletions(-)

diff --git a/public/css/main.css b/public/css/main.css
index f04d4f3..67488de 100644
--- a/public/css/main.css
+++ b/public/css/main.css
@@ -53,9 +53,8 @@
   width: 10em;
 }
 
-.ag-header-msgid-col {
-  width: 10em;
-  border-left: 1px solid #ddd;
+.ag-message-actions {
+  line-height: 2em;
 }
 
 .ag-pager {

diff --git a/views/message.erb b/views/message.erb
index b1b4fee..78823c2 100644
--- a/views/message.erb
+++ b/views/message.erb
@@ -44,37 +44,45 @@
 <% if message['_source']['attachments'] and not 
message['_source']['attachments'].empty? %>
 <h3>Attachments</h3>
 
-<table class="table table-condensed ag-attachment-table">
-  <tr>
-    <th>File name</th>
-    <th>MIME type</th>
-  </tr>
-  <% message['_source']['attachments'].each do |attachment| %>
+<div class="table-responsive">
+  <table class="table table-condensed ag-attachment-table">
     <tr>
-      <td><%= h attachment['filename'] %></td>
-      <td><%= h attachment['mime'] %></td>
+      <th>File name</th>
+      <th>MIME type</th>
     </tr>
-  <% end %>
-</table>
+    <% message['_source']['attachments'].each do |attachment| %>
+      <tr>
+        <td><%= h attachment['filename'] %></td>
+        <td><%= h attachment['mime'] %></td>
+      </tr>
+    <% end %>
+  </table>
+</div>
 <% end %>
 
 <% unless children == nil %>
 <h3>Replies</h3>
 
-<table class="table table-condensed ag-replies-table">
-  <tr>
-    <th>Subject</th>
-    <th>Author</th>
-  </tr>
-  <% children.each do |child| %>
+<div class="table-responsive">
+  <table class="table table-condensed ag-replies-table">
     <tr>
-      <td><a href="<%= child['_id'] %>"><%= h child['_source']['subject'] 
%></a></td>
-      <td><%= h strip_email_domain(child['_source']['from']) %></td>
+      <th>Subject</th>
+      <th>Author</th>
     </tr>
-  <% end %>
-</table>
+    <% children.each do |child| %>
+      <tr>
+        <td><a href="<%= child['_id'] %>"><%= h child['_source']['subject'] 
%></a></td>
+        <td><%= h strip_email_domain(child['_source']['from']) %></td>
+      </tr>
+    <% end %>
+  </table>
+</div>
 <% end %>
 
-<a href="/<%= h list %>/report/<%= message['_id'] %>" class="btn btn-danger 
btn-xs"><span class="fa fa-fw fa-ban"></span> Report Message</a>
-<a href="<%= msgid_to_gmane(message['_source']['raw_message_id']) %>" 
class="btn btn-default btn-xs"><span class="fa fa-fw 
fa-share-square"></span>Find on GMANE</a>
-<a href="<%= msgid_to_marc(message['_source']['raw_message_id']) %>" 
class="btn btn-default btn-xs"><span class="fa fa-fw 
fa-share-square"></span>Find on MARC</a>
\ No newline at end of file
+<div class="ag-message-actions">
+  <a href="/<%= h list %>/report/<%= message['_id'] %>" class="btn btn-danger 
btn-xs"><span class="fa fa-fw fa-ban"></span> Report Message</a>
+  <div class="btn-group btn-group-xs">
+    <a href="<%= msgid_to_gmane(message['_source']['raw_message_id']) %>" 
class="btn btn-default"><span class="fa fa-fw fa-share-square"></span>Find on 
GMANE</a>
+    <a href="<%= msgid_to_marc(message['_source']['raw_message_id']) %>" 
class="btn btn-default"><span class="fa fa-fw fa-share-square"></span>Find on 
MARC</a>
+  </div>
+</div>
\ No newline at end of file

Reply via email to