From: "Alex Legler" <a3li@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/ag-web:master commit in: public/css/, views/
Date: Sun, 22 Feb 2015 11:11:21 +0000 (UTC) [thread overview]
Message-ID: <1424603458.20e4eafc838f3cb68850e9e903a2eee2b78107f6.a3li@gentoo> (raw)
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
next reply other threads:[~2015-02-22 11:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-22 11:11 Alex Legler [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-02-22 0:20 [gentoo-commits] proj/ag-web:master commit in: public/css/, views/ Alex Legler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1424603458.20e4eafc838f3cb68850e9e903a2eee2b78107f6.a3li@gentoo \
--to=a3li@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox