commit:     77572687eee4183849b567e8f29609c616177007
Author:     Alex Legler <alex <AT> a3li <DOT> li>
AuthorDate: Sat Jul  2 20:14:57 2016 +0000
Commit:     Alex Legler <a3li <AT> gentoo <DOT> org>
CommitDate: Sat Jul  2 20:15:33 2016 +0000
URL:        https://gitweb.gentoo.org/sites/www.git/commit/?id=77572687

Rework news item page

 * Mention the items only concern the main repo
 * Syntax fixes
 * Remove incomplete authors list from overview table (#587534)

 _plugins/news.rb              |  3 +--
 support/news-items/index.html | 14 ++++++--------
 2 files changed, 7 insertions(+), 10 deletions(-)

diff --git a/_plugins/news.rb b/_plugins/news.rb
index a90c435..2e2fde7 100644
--- a/_plugins/news.rb
+++ b/_plugins/news.rb
@@ -38,11 +38,10 @@ module Gentoo
 
       File.readlines(File.join(@base, NewsGenerator::NEWS_DIR, path, 
"#{name}.en.txt")).each do |line|
         @title = $1 if line =~ /Title: (.*)$/
-        @author = $1 if line =~ /Author: (.*)$/
         @date = $1 if line =~ /Posted: (.*)$/
       end
 
-      site.data['newsitems'] << { 'title' => @title, 'author' => @author, 
'date' => @date, 'url' => data['permalink'] }
+      site.data['newsitems'] << { 'title' => @title, 'date' => @date, 'url' => 
data['permalink'] }
 
       data['title'] = @title
     end

diff --git a/support/news-items/index.html b/support/news-items/index.html
index 396aec7..5cf8701 100644
--- a/support/news-items/index.html
+++ b/support/news-items/index.html
@@ -14,7 +14,7 @@ nav2-show: true
 <div class="alert alert-info">
   <strong>Which items affect me?</strong>
   <p>
-  This page lists <strong>all</strong> available news items, but sometimes 
items don't affect you because you don't have the relevant package installed,
+  This page lists <strong>all</strong> available news items for the official 
Gentoo package repository, but sometimes items don't affect you because you 
don't have the relevant package installed,
   or use a different architecture.
   <br>
   The <kbd>emerge</kbd> command notifies you after each operation if there are 
news items affecting your configuration:
@@ -33,17 +33,15 @@ nav2-show: true
 
 <h2>Published News Items</h2>
 
-<table class="table table-striped">
+<table class="table table-condensed table-striped">
   <tr>
-    <th>Title</th>
-    <th>Author</th>
     <th>Date</th>
+    <th>Title</th>
   </tr>
   {% for entry in site.data.newsitems %}
     <tr>
-    <td><a href="{{ entry.url}}">{{ entry.title | xml_escape }}</a></td>
-    <td>{{ entry.author | xml_escape }}</td>
-    <td>{{ entry.date | xml_escape }}</td>
+      <td>{{ entry.date | xml_escape }}</td>
+      <td><a href="{{ entry.url }}">{{ entry.title | xml_escape }}</a></td>
     </tr>
   {% endfor %}
-</table>
\ No newline at end of file
+</table>

Reply via email to