diff options
author | Alex Legler <alex@a3li.li> | 2015-02-23 21:58:52 +0100 |
---|---|---|
committer | Alex Legler <alex@a3li.li> | 2015-02-23 21:58:52 +0100 |
commit | 496ba5a82637b8f023846f53d6c219d3e18259ad (patch) | |
tree | fef8a7a46c25cda84df262beec5880e529a1f0f3 /views | |
parent | All dates are UTC now, strip timezone (diff) | |
download | frontend-496ba5a82637b8f023846f53d6c219d3e18259ad.tar.gz frontend-496ba5a82637b8f023846f53d6c219d3e18259ad.tar.bz2 frontend-496ba5a82637b8f023846f53d6c219d3e18259ad.zip |
Various UI bit fixes for new storage format
Diffstat (limited to 'views')
-rw-r--r-- | views/layout.erb | 3 | ||||
-rw-r--r-- | views/listmonth.erb | 2 | ||||
-rw-r--r-- | views/message.erb | 10 | ||||
-rw-r--r-- | views/report.erb | 6 |
4 files changed, 11 insertions, 10 deletions
diff --git a/views/layout.erb b/views/layout.erb index 67a7e8b..e3bb34c 100644 --- a/views/layout.erb +++ b/views/layout.erb @@ -93,7 +93,8 @@ <div class="row"> <div class="col-xs-12 col-md-offset-2 col-md-7"> <p class="spacer"> - All contents reflect the opinion of the author, not the Gentoo project or the Gentoo Foundation. + All times displayed are UTC (GMT+0).<br> + Contents reflect the opinion of the author, not the Gentoo project or the Gentoo Foundation. </p> </div> <div class="col-xs-12 col-md-3"> diff --git a/views/listmonth.erb b/views/listmonth.erb index 485df49..76a2244 100644 --- a/views/listmonth.erb +++ b/views/listmonth.erb @@ -23,7 +23,7 @@ <tr> <td><a href="../../message/<%= message['_id'] %>"><%= h message['_source']['subject'] %></a></td> <td><%= h message['_source']['from_realname'] %></td> - <td><%= date_format message['_source']['date'] %></td> + <td><span class="ag-date"><%= date_format message['_source']['date'] %></span></td> </tr> <% end %> </table> diff --git a/views/message.erb b/views/message.erb index 78823c2..ee700fd 100644 --- a/views/message.erb +++ b/views/message.erb @@ -4,16 +4,16 @@ <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><%= h strip_email_headers(message['_source']['from']).first %></td> </tr> <tr> <th>To:</th> - <td><%= h strip_email_domain(message['_source']['to']) %></td> + <td><%= h strip_email_headers(message['_source']['to']).join ', ' %></td> </tr> - <% unless message['_source']['cc'] == nil or message['_source']['cc'] == '' %> + <% unless message['_source']['cc'] == nil or message['_source']['cc'] == [] %> <tr> <th>Cc:</th> - <td><%= h strip_email_domain(message['_source']['cc']) %></td> + <td><%= h strip_email_headers(message['_source']['cc']).join ', ' %></td> </tr> <% end %> <tr> @@ -72,7 +72,7 @@ <% 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> + <td><%= h strip_email_headers(child['_source']['from']).first %></td> </tr> <% end %> </table> diff --git a/views/report.erb b/views/report.erb index 559dc23..13a8cf4 100644 --- a/views/report.erb +++ b/views/report.erb @@ -11,15 +11,15 @@ </tr> <tr> <th class="ag-header-name-col">From:</th> - <td><%= h strip_email_domain(message['_source']['from']) %></td> + <td><%= h strip_email_headers(message['_source']['from']).first %></td> </tr> <tr> <th>To:</th> - <td><%= h strip_email_domain(message['_source']['to']) %></td> + <td><%= h strip_email_headers(message['_source']['to']).join ', ' %></td> </tr> <tr> <th>Cc:</th> - <td><%= h strip_email_domain(message['_source']['cc']) %></td> + <td><%= h strip_email_headers(message['_source']['cc']).join ', ' %></td> </tr> <tr> <th>Subject:</th> |