* [gentoo-commits] proj/ag-web:master commit in: views/
@ 2015-02-21 23:34 Robin H. Johnson
0 siblings, 0 replies; 19+ messages in thread
From: Robin H. Johnson @ 2015-02-21 23:34 UTC (permalink / raw
To: gentoo-commits
commit: 33668a2c535e2baa9e73238bb1e5fc6ab733e39f
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 21 23:34:28 2015 +0000
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sat Feb 21 23:34:28 2015 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/ag-web.git;a=commit;h=33668a2c
Make good use of message-id.
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
---
views/message.erb | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/views/message.erb b/views/message.erb
index 59d2499..be7df4d 100644
--- a/views/message.erb
+++ b/views/message.erb
@@ -27,6 +27,10 @@
<td><a href="<%= parent['_id'] %>"><%= parent['_source']['subject'] %></a> by <%= parent['_source']['from'] %></td>
</tr>
<% end %>
+ <tr>
+ <th>Message-Id:</th>
+ <td><%= message['_source']['raw_message_id'] %></td>
+ </tr>
</table>
<!-- Message-Id: <%= message['_source']['raw_message_id'] %> -->
@@ -68,4 +72,7 @@
</table>
<% end %>
-<a href="/<%= h list %>/report/<%= message['_id'] %>" class="btn btn-danger btn-xs"><span class="fa fa-ban"></span> Report Message</a>
\ No newline at end of file
+<a href="/<%= h list %>/report/<%= message['_id'] %>" class="btn btn-danger btn-xs"><span class="fa fa-ban"></span> Report Message</a>
+
+<a href="https://news.gmane.org/find-root.php?message_id=<%= url_encode(message['_source']['raw_message_id']) =%>" class="btn btn-xs"><span class="fa"></span>Find on GMANE</a>
+
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [gentoo-commits] proj/ag-web:master commit in: views/
@ 2015-02-21 23:39 Robin H. Johnson
0 siblings, 0 replies; 19+ messages in thread
From: Robin H. Johnson @ 2015-02-21 23:39 UTC (permalink / raw
To: gentoo-commits
commit: a8fff91e3d5ca70233b763071f00937c9c8e4c9d
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 21 23:39:45 2015 +0000
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sat Feb 21 23:39:45 2015 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/ag-web.git;a=commit;h=a8fff91e
No trailing = on erb.
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
---
views/message.erb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/views/message.erb b/views/message.erb
index be7df4d..9a0cf18 100644
--- a/views/message.erb
+++ b/views/message.erb
@@ -74,5 +74,5 @@
<a href="/<%= h list %>/report/<%= message['_id'] %>" class="btn btn-danger btn-xs"><span class="fa fa-ban"></span> Report Message</a>
-<a href="https://news.gmane.org/find-root.php?message_id=<%= url_encode(message['_source']['raw_message_id']) =%>" class="btn btn-xs"><span class="fa"></span>Find on GMANE</a>
+<a href="https://news.gmane.org/find-root.php?message_id=<%= url_encode(message['_source']['raw_message_id']) %>" class="btn btn-xs"><span class="fa"></span>Find on GMANE</a>
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [gentoo-commits] proj/ag-web:master commit in: views/
@ 2015-02-21 23:41 Robin H. Johnson
0 siblings, 0 replies; 19+ messages in thread
From: Robin H. Johnson @ 2015-02-21 23:41 UTC (permalink / raw
To: gentoo-commits
commit: 484a7ee22d8b4294d34129d0b12cd659b2be4286
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 21 23:41:36 2015 +0000
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sat Feb 21 23:41:36 2015 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/ag-web.git;a=commit;h=484a7ee2
How about using function names that match markup functions...
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
---
views/message.erb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/views/message.erb b/views/message.erb
index 9a0cf18..cc75d91 100644
--- a/views/message.erb
+++ b/views/message.erb
@@ -74,5 +74,5 @@
<a href="/<%= h list %>/report/<%= message['_id'] %>" class="btn btn-danger btn-xs"><span class="fa fa-ban"></span> Report Message</a>
-<a href="https://news.gmane.org/find-root.php?message_id=<%= url_encode(message['_source']['raw_message_id']) %>" class="btn btn-xs"><span class="fa"></span>Find on GMANE</a>
+<a href="https://news.gmane.org/find-root.php?message_id=<%= u(message['_source']['raw_message_id']) %>" class="btn btn-xs"><span class="fa"></span>Find on GMANE</a>
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [gentoo-commits] proj/ag-web:master commit in: views/
@ 2015-02-21 23:49 Robin H. Johnson
0 siblings, 0 replies; 19+ messages in thread
From: Robin H. Johnson @ 2015-02-21 23:49 UTC (permalink / raw
To: gentoo-commits
commit: 6ce8491845f3bf5a10be8dd9fab64679c2b8f889
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 21 23:49:22 2015 +0000
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sat Feb 21 23:49:22 2015 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/ag-web.git;a=commit;h=6ce84918
GMANE https seems offline.
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
---
views/message.erb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/views/message.erb b/views/message.erb
index cc75d91..789e2d1 100644
--- a/views/message.erb
+++ b/views/message.erb
@@ -74,5 +74,5 @@
<a href="/<%= h list %>/report/<%= message['_id'] %>" class="btn btn-danger btn-xs"><span class="fa fa-ban"></span> Report Message</a>
-<a href="https://news.gmane.org/find-root.php?message_id=<%= u(message['_source']['raw_message_id']) %>" class="btn btn-xs"><span class="fa"></span>Find on GMANE</a>
+<a href="http://news.gmane.org/find-root.php?message_id=<%= u(message['_source']['raw_message_id']) %>" class="btn btn-xs"><span class="fa"></span>Find on GMANE</a>
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [gentoo-commits] proj/ag-web:master commit in: views/
@ 2015-02-21 23:57 Alex Legler
0 siblings, 0 replies; 19+ messages in thread
From: Alex Legler @ 2015-02-21 23:57 UTC (permalink / raw
To: gentoo-commits
commit: 34977bb3ac3da7c95bf8acb8148a788419adc9f8
Author: Alex Legler <alex <AT> a3li <DOT> li>
AuthorDate: Sat Feb 21 23:56:57 2015 +0000
Commit: Alex Legler <a3li <AT> gentoo <DOT> org>
CommitDate: Sat Feb 21 23:56:57 2015 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/ag-web.git;a=commit;h=34977bb3
Style message action buttons
---
views/message.erb | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/views/message.erb b/views/message.erb
index 789e2d1..c3ee987 100644
--- a/views/message.erb
+++ b/views/message.erb
@@ -72,7 +72,7 @@
</table>
<% end %>
-<a href="/<%= h list %>/report/<%= message['_id'] %>" class="btn btn-danger btn-xs"><span class="fa fa-ban"></span> Report Message</a>
-
-<a href="http://news.gmane.org/find-root.php?message_id=<%= u(message['_source']['raw_message_id']) %>" class="btn btn-xs"><span class="fa"></span>Find on GMANE</a>
-
+<div class="btn-group btn-group-xs" role="group" aria-label="Message Actions">
+ <a href="/<%= h list %>/report/<%= message['_id'] %>" class="btn btn-danger"><span class="fa fa-fw fa-ban"></span> Report Message</a>
+ <a href="http://news.gmane.org/find-root.php?message_id=<%= u(message['_source']['raw_message_id']) %>" class="btn btn-default"><span class="fa fa-fw fa-share-square"></span>Find on GMANE</a>
+</div>
\ No newline at end of file
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [gentoo-commits] proj/ag-web:master commit in: views/
@ 2015-02-22 0:00 Alex Legler
0 siblings, 0 replies; 19+ messages in thread
From: Alex Legler @ 2015-02-22 0:00 UTC (permalink / raw
To: gentoo-commits
commit: 416dec280acb094e40338fe6198b682e71659ba8
Author: Alex Legler <alex <AT> a3li <DOT> li>
AuthorDate: Sat Feb 21 23:59:59 2015 +0000
Commit: Alex Legler <a3li <AT> gentoo <DOT> org>
CommitDate: Sat Feb 21 23:59:59 2015 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/ag-web.git;a=commit;h=416dec28
Limit pages shown in pagination
---
| 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
--git a/views/pagination.erb b/views/pagination.erb
index 7d7be9c..9b85ec9 100644
--- a/views/pagination.erb
+++ b/views/pagination.erb
@@ -12,9 +12,15 @@
</a>
<% end %>
</li>
- <% (1..max_pages).each do |page| %>
+ <% min = [1, current_page - 5].max ; max = [max_pages, current_page + 5].min %>
+ <% if min > 10 %>
+ <li><a href="1">1</a></li>
+ <% end %>
+ <% (min..max).each do |page| %>
<li <% if page == current_page %><%= 'class="active"' %><% end %>><a href="<%= page %>"><%= page %></a></li>
<% end %>
+ <% if (max_pages - max) > 10 %>
+ <li><a href="<%= max_pages %>"><%= max_pages %></a></li>
<% if current_page == max_pages %>
<li class="disabled">
<a href="#" aria-label="Next">
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [gentoo-commits] proj/ag-web:master commit in: views/
@ 2015-02-22 0:01 Alex Legler
0 siblings, 0 replies; 19+ messages in thread
From: Alex Legler @ 2015-02-22 0:01 UTC (permalink / raw
To: gentoo-commits
commit: 6a5810db065cdc99c10c13e263ccdfd16f4e2471
Author: Alex Legler <alex <AT> a3li <DOT> li>
AuthorDate: Sun Feb 22 00:01:22 2015 +0000
Commit: Alex Legler <a3li <AT> gentoo <DOT> org>
CommitDate: Sun Feb 22 00:01:22 2015 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/ag-web.git;a=commit;h=6a5810db
erb fix
---
| 1 +
1 file changed, 1 insertion(+)
--git a/views/pagination.erb b/views/pagination.erb
index 9b85ec9..5b1b3c5 100644
--- a/views/pagination.erb
+++ b/views/pagination.erb
@@ -21,6 +21,7 @@
<% end %>
<% if (max_pages - max) > 10 %>
<li><a href="<%= max_pages %>"><%= max_pages %></a></li>
+ <% end %>
<% if current_page == max_pages %>
<li class="disabled">
<a href="#" aria-label="Next">
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [gentoo-commits] proj/ag-web:master commit in: views/
@ 2015-02-22 0:03 Alex Legler
0 siblings, 0 replies; 19+ messages in thread
From: Alex Legler @ 2015-02-22 0:03 UTC (permalink / raw
To: gentoo-commits
commit: 2199b57209ccc37b0dc0a9ed4f42e68bd244e567
Author: Alex Legler <alex <AT> a3li <DOT> li>
AuthorDate: Sun Feb 22 00:03:07 2015 +0000
Commit: Alex Legler <a3li <AT> gentoo <DOT> org>
CommitDate: Sun Feb 22 00:03:07 2015 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/ag-web.git;a=commit;h=2199b572
less pages, add ... item
---
| 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
--git a/views/pagination.erb b/views/pagination.erb
index 5b1b3c5..68d1a6b 100644
--- a/views/pagination.erb
+++ b/views/pagination.erb
@@ -12,14 +12,16 @@
</a>
<% end %>
</li>
- <% min = [1, current_page - 5].max ; max = [max_pages, current_page + 5].min %>
+ <% min = [1, current_page - 3].max ; max = [max_pages, current_page + 3].min %>
<% if min > 10 %>
<li><a href="1">1</a></li>
+ <li class="disabled"><a href="#">…</a></li>
<% end %>
<% (min..max).each do |page| %>
<li <% if page == current_page %><%= 'class="active"' %><% end %>><a href="<%= page %>"><%= page %></a></li>
<% end %>
<% if (max_pages - max) > 10 %>
+ <li class="disabled"><a href="#">…</a></li>
<li><a href="<%= max_pages %>"><%= max_pages %></a></li>
<% end %>
<% if current_page == max_pages %>
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [gentoo-commits] proj/ag-web:master commit in: views/
@ 2015-02-22 0:04 Alex Legler
0 siblings, 0 replies; 19+ messages in thread
From: Alex Legler @ 2015-02-22 0:04 UTC (permalink / raw
To: gentoo-commits
commit: 62e98a914e6110b50f1c88a5af1a23d3c0f6fcd6
Author: Alex Legler <alex <AT> a3li <DOT> li>
AuthorDate: Sun Feb 22 00:04:16 2015 +0000
Commit: Alex Legler <a3li <AT> gentoo <DOT> org>
CommitDate: Sun Feb 22 00:04:16 2015 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/ag-web.git;a=commit;h=62e98a91
more pagination tuning
---
| 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--git a/views/pagination.erb b/views/pagination.erb
index 68d1a6b..af43309 100644
--- a/views/pagination.erb
+++ b/views/pagination.erb
@@ -13,14 +13,14 @@
<% end %>
</li>
<% min = [1, current_page - 3].max ; max = [max_pages, current_page + 3].min %>
- <% if min > 10 %>
+ <% if min > 3 %>
<li><a href="1">1</a></li>
<li class="disabled"><a href="#">…</a></li>
<% end %>
<% (min..max).each do |page| %>
<li <% if page == current_page %><%= 'class="active"' %><% end %>><a href="<%= page %>"><%= page %></a></li>
<% end %>
- <% if (max_pages - max) > 10 %>
+ <% if (max_pages - max) > 3 %>
<li class="disabled"><a href="#">…</a></li>
<li><a href="<%= max_pages %>"><%= max_pages %></a></li>
<% end %>
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [gentoo-commits] proj/ag-web:master commit in: views/
@ 2015-02-22 0:14 Alex Legler
0 siblings, 0 replies; 19+ messages in thread
From: Alex Legler @ 2015-02-22 0:14 UTC (permalink / raw
To: gentoo-commits
commit: b8a7be58d4285a54798a946acd48df547fabc7cf
Author: Alex Legler <alex <AT> a3li <DOT> li>
AuthorDate: Sun Feb 22 00:13:52 2015 +0000
Commit: Alex Legler <a3li <AT> gentoo <DOT> org>
CommitDate: Sun Feb 22 00:13:52 2015 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/ag-web.git;a=commit;h=b8a7be58
compact the headers table a bit
---
views/message.erb | 16 +++++++---------
1 file changed, 7 insertions(+), 9 deletions(-)
diff --git a/views/message.erb b/views/message.erb
index c3ee987..b0f32a8 100644
--- a/views/message.erb
+++ b/views/message.erb
@@ -3,34 +3,32 @@
<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>
+ <td colspan="3"><%= h strip_email_domain(message['_source']['from']) %></td>
</tr>
<tr>
<th>To:</th>
- <td><%= h strip_email_domain(message['_source']['to']) %></td>
+ <td colspan="3"><%= h strip_email_domain(message['_source']['to']) %></td>
</tr>
<tr>
<th>Cc:</th>
- <td><%= h strip_email_domain(message['_source']['cc']) %></td>
+ <td colspan="3"><%= h strip_email_domain(message['_source']['cc']) %></td>
</tr>
<tr>
<th>Subject:</th>
- <td><strong><%= h message['_source']['subject'] %></strong></td>
+ <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-name-col">Message-Id:</th>
+ <td><%= message['_source']['raw_message_id'] %></td>
</tr>
<% unless parent == nil %>
<tr>
<th>In Reply to:</th>
- <td><a href="<%= parent['_id'] %>"><%= parent['_source']['subject'] %></a> by <%= parent['_source']['from'] %></td>
+ <td colspan="3"><a href="<%= parent['_id'] %>"><%= parent['_source']['subject'] %></a> by <%= parent['_source']['from'] %></td>
</tr>
<% end %>
- <tr>
- <th>Message-Id:</th>
- <td><%= message['_source']['raw_message_id'] %></td>
- </tr>
</table>
<!-- Message-Id: <%= message['_source']['raw_message_id'] %> -->
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [gentoo-commits] proj/ag-web:master commit in: views/
@ 2015-02-22 0:15 Alex Legler
0 siblings, 0 replies; 19+ messages in thread
From: Alex Legler @ 2015-02-22 0:15 UTC (permalink / raw
To: gentoo-commits
commit: b4349612cb3a0481d66645c1f60dad81e89f607e
Author: Alex Legler <alex <AT> a3li <DOT> li>
AuthorDate: Sun Feb 22 00:15:37 2015 +0000
Commit: Alex Legler <a3li <AT> gentoo <DOT> org>
CommitDate: Sun Feb 22 00:15:37 2015 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/ag-web.git;a=commit;h=b4349612
CC nil?
---
views/message.erb | 2 ++
1 file changed, 2 insertions(+)
diff --git a/views/message.erb b/views/message.erb
index b0f32a8..181f532 100644
--- a/views/message.erb
+++ b/views/message.erb
@@ -9,10 +9,12 @@
<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>
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [gentoo-commits] proj/ag-web:master commit in: views/
@ 2015-02-22 4:38 Robin H. Johnson
0 siblings, 0 replies; 19+ messages in thread
From: Robin H. Johnson @ 2015-02-22 4:38 UTC (permalink / raw
To: gentoo-commits
commit: c83b0bd2b30111043ba96b296a76b50abd8dfd9d
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 22 04:38:22 2015 +0000
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sun Feb 22 04:38:22 2015 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/ag-web.git;a=commit;h=c83b0bd2
Include a count of mails.
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
---
views/index.erb | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/views/index.erb b/views/index.erb
index 4d68cc7..77eda4c 100644
--- a/views/index.erb
+++ b/views/index.erb
@@ -24,8 +24,15 @@
<div class="row">
<div class="col-xs-12 col-md-6">
<div class="list-group">
- <% $config['frozen_lists'].each do |list| %>
- <a href="<%= h list %>/" class="list-group-item"><span class="fa fa-fw fa-archive"></span> <%= h list %></a>
+ <% $config['frozen_lists'].each do |list|
+ begin
+ months = get_month_listing(list)
+ count = months['hits']['total'] + ' mails'
+ rescue => e
+ count = 'mail count unavailable'
+ end
+ %>
+ <a href="<%= h list %>/" class="list-group-item"><span class="fa fa-fw fa-archive"></span> <%= h list %> (<%= count %>)</a>
<% end %>
</div>
</div>
@@ -36,4 +43,4 @@
Archives are provided for future reference.
</div>
</div>
-</div>
\ No newline at end of file
+</div>
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [gentoo-commits] proj/ag-web:master commit in: views/
@ 2015-02-22 11:02 Alex Legler
0 siblings, 0 replies; 19+ messages in thread
From: Alex Legler @ 2015-02-22 11:02 UTC (permalink / raw
To: gentoo-commits
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'])) %>
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [gentoo-commits] proj/ag-web:master commit in: views/
@ 2015-02-22 11:05 Alex Legler
0 siblings, 0 replies; 19+ messages in thread
From: Alex Legler @ 2015-02-22 11:05 UTC (permalink / raw
To: gentoo-commits
commit: 60aca1405d6471a0026a74abaadc7ae23ed7a028
Author: Alex Legler <alex <AT> a3li <DOT> li>
AuthorDate: Sun Feb 22 11:05:33 2015 +0000
Commit: Alex Legler <a3li <AT> gentoo <DOT> org>
CommitDate: Sun Feb 22 11:05:33 2015 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/ag-web.git;a=commit;h=60aca140
Repsonsivness fix 2: Undo the button group
---
views/message.erb | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/views/message.erb b/views/message.erb
index 74525ca..b1b4fee 100644
--- a/views/message.erb
+++ b/views/message.erb
@@ -75,8 +75,6 @@
</table>
<% end %>
-<div class="btn-group btn-group-xs" role="group" aria-label="Message Actions">
- <a href="/<%= h list %>/report/<%= message['_id'] %>" class="btn btn-danger"><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"><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>
+<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
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [gentoo-commits] proj/ag-web:master commit in: views/
@ 2015-02-23 23:55 Alex Legler
0 siblings, 0 replies; 19+ messages in thread
From: Alex Legler @ 2015-02-23 23:55 UTC (permalink / raw
To: gentoo-commits
commit: 14cafac14c4d411591c846a0f8d5914fa9972414
Author: Alex Legler <alex <AT> a3li <DOT> li>
AuthorDate: Mon Feb 23 23:53:59 2015 +0000
Commit: Alex Legler <a3li <AT> gentoo <DOT> org>
CommitDate: Mon Feb 23 23:53:59 2015 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/ag-web.git;a=commit;h=14cafac1
Properly escape displaynames
---
views/listmonth.erb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/views/listmonth.erb b/views/listmonth.erb
index 76a2244..9f137f0 100644
--- a/views/listmonth.erb
+++ b/views/listmonth.erb
@@ -22,7 +22,7 @@
<% results['hits']['hits'].each do |message| %>
<tr>
<td><a href="../../message/<%= message['_id'] %>"><%= h message['_source']['subject'] %></a></td>
- <td><%= h message['_source']['from_realname'] %></td>
+ <td><%= h strip_email_headers(message['_source']['from_realname']).first %></td>
<td><span class="ag-date"><%= date_format message['_source']['date'] %></span></td>
</tr>
<% end %>
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [gentoo-commits] proj/ag-web:master commit in: views/
@ 2015-02-25 10:47 Alex Legler
0 siblings, 0 replies; 19+ messages in thread
From: Alex Legler @ 2015-02-25 10:47 UTC (permalink / raw
To: gentoo-commits
commit: 77fb95e5f90138216f4a37fa545409695932711f
Author: Alex Legler <alex <AT> a3li <DOT> li>
AuthorDate: Wed Feb 25 10:46:58 2015 +0000
Commit: Alex Legler <a3li <AT> gentoo <DOT> org>
CommitDate: Wed Feb 25 10:46:58 2015 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/ag-web.git;a=commit;h=77fb95e5
Escape addresses on the front page
---
views/indexentry.erb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/views/indexentry.erb b/views/indexentry.erb
index ba6a2cf..4c8edec 100644
--- a/views/indexentry.erb
+++ b/views/indexentry.erb
@@ -21,7 +21,7 @@
<% MostRecentMessagesCache.instance[list].each do |message| %>
<tr>
<td><a href="/<%= list %>/message/<%= message['_id'] %>"><%= h message['_source']['subject'] %></a></td>
- <td><%= h message['_source']['from_realname'] %></td>
+ <td><%= h strip_email_headers(message['_source']['from_realname']).first %></td>
</tr>
<% end %>
</table>
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [gentoo-commits] proj/ag-web:master commit in: views/
@ 2015-02-25 21:44 Alex Legler
0 siblings, 0 replies; 19+ messages in thread
From: Alex Legler @ 2015-02-25 21:44 UTC (permalink / raw
To: gentoo-commits
commit: 8e0d92ff895ff71d20e40743ac9349f33f3c553b
Author: Alex Legler <alex <AT> a3li <DOT> li>
AuthorDate: Wed Feb 25 21:44:15 2015 +0000
Commit: Alex Legler <a3li <AT> gentoo <DOT> org>
CommitDate: Wed Feb 25 21:44:15 2015 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/ag-web.git;a=commit;h=8e0d92ff
site_notice
---
views/index.erb | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/views/index.erb b/views/index.erb
index 0ca71c9..b5d2908 100644
--- a/views/index.erb
+++ b/views/index.erb
@@ -1,5 +1,11 @@
<h1 class="first-header">Gentoo Mailing List Archives</h1>
+<% if $config['site_notice'] %>
+<div class="alert alert-info">
+<%= $config['site_notice'] %>
+</div>
+<% end %>
+
<p class="lead">
Here you can find the archives of our most important mailing lists.
</p>
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [gentoo-commits] proj/ag-web:master commit in: views/
@ 2015-02-25 21:44 Alex Legler
0 siblings, 0 replies; 19+ messages in thread
From: Alex Legler @ 2015-02-25 21:44 UTC (permalink / raw
To: gentoo-commits
commit: d0df386eb94e95a11e8bdc0d5a2d9e22a9919443
Author: Alex Legler <alex <AT> a3li <DOT> li>
AuthorDate: Wed Feb 25 21:44:06 2015 +0000
Commit: Alex Legler <a3li <AT> gentoo <DOT> org>
CommitDate: Wed Feb 25 21:44:06 2015 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/ag-web.git;a=commit;h=d0df386e
basic description
---
views/layout.erb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/views/layout.erb b/views/layout.erb
index e3bb34c..9a25690 100644
--- a/views/layout.erb
+++ b/views/layout.erb
@@ -5,7 +5,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#54487a">
- <meta name="description" content="">
+ <meta name="description" content="The Gentoo Mailing List Archives">
<link href="https://1b9a50f4f9de4348cd9f-e703bc50ba0aa66772a874f8c7698be7.ssl.cf5.rackcdn.com/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="https://1b9a50f4f9de4348cd9f-e703bc50ba0aa66772a874f8c7698be7.ssl.cf5.rackcdn.com/tyrian.min.css" rel="stylesheet" media="screen">
<link href="/css/main.css" rel="stylesheet" media="screen">
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [gentoo-commits] proj/ag-web:master commit in: views/
@ 2015-02-26 13:12 Alex Legler
0 siblings, 0 replies; 19+ messages in thread
From: Alex Legler @ 2015-02-26 13:12 UTC (permalink / raw
To: gentoo-commits
commit: 81b24a7edfad968f499ec025fe9e179a33eebd41
Author: Alex Legler <alex <AT> a3li <DOT> li>
AuthorDate: Thu Feb 26 13:12:23 2015 +0000
Commit: Alex Legler <a3li <AT> gentoo <DOT> org>
CommitDate: Thu Feb 26 13:12:23 2015 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/ag-web.git;a=commit;h=81b24a7e
Use protocol-relative URI for the favicon
Fixes bug 541424 by chithanh
---
views/layout.erb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/views/layout.erb b/views/layout.erb
index 9a25690..fef26fa 100644
--- a/views/layout.erb
+++ b/views/layout.erb
@@ -9,7 +9,7 @@
<link href="https://1b9a50f4f9de4348cd9f-e703bc50ba0aa66772a874f8c7698be7.ssl.cf5.rackcdn.com/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="https://1b9a50f4f9de4348cd9f-e703bc50ba0aa66772a874f8c7698be7.ssl.cf5.rackcdn.com/tyrian.min.css" rel="stylesheet" media="screen">
<link href="/css/main.css" rel="stylesheet" media="screen">
- <link rel="icon" href="http://www.gentoo.org/favicon.ico" type="image/x-icon">
+ <link rel="icon" href="//www.gentoo.org/favicon.ico" type="image/x-icon">
</head>
<body>
<header>
^ permalink raw reply related [flat|nested] 19+ messages in thread
end of thread, other threads:[~2015-02-26 13:12 UTC | newest]
Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-23 23:55 [gentoo-commits] proj/ag-web:master commit in: views/ Alex Legler
-- strict thread matches above, loose matches on Subject: below --
2015-02-26 13:12 Alex Legler
2015-02-25 21:44 Alex Legler
2015-02-25 21:44 Alex Legler
2015-02-25 10:47 Alex Legler
2015-02-22 11:05 Alex Legler
2015-02-22 11:02 Alex Legler
2015-02-22 4:38 Robin H. Johnson
2015-02-22 0:15 Alex Legler
2015-02-22 0:14 Alex Legler
2015-02-22 0:04 Alex Legler
2015-02-22 0:03 Alex Legler
2015-02-22 0:01 Alex Legler
2015-02-22 0:00 Alex Legler
2015-02-21 23:57 Alex Legler
2015-02-21 23:49 Robin H. Johnson
2015-02-21 23:41 Robin H. Johnson
2015-02-21 23:39 Robin H. Johnson
2015-02-21 23:34 Robin H. Johnson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox