[game-data-packager] 01/01: HTML: add links to indivudal .yaml files in git

Alexandre Detiste detiste-guest at moszumanska.debian.org
Sun Oct 25 08:58:20 UTC 2015


This is an automated email from the git hooks/post-receive script.

detiste-guest pushed a commit to branch master
in repository game-data-packager.

commit 1f5ab0e01cf03be05574f72b050743372e36eae9
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date:   Sun Oct 25 09:57:50 2015 +0100

    HTML: add links to indivudal .yaml files in git
---
 tools/babel.py | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/tools/babel.py b/tools/babel.py
index 22cb7ee..44e0ae2 100755
--- a/tools/babel.py
+++ b/tools/babel.py
@@ -82,7 +82,7 @@ with open('debian/TODO', 'r', encoding='utf8') as missing:
         elif line == '':
             pass
         else:
-            stats = dict()
+            stats = {'todo': True}
             genres[genre] = genres.get(genre, 0) + 1
             stats['genre'] = genre
             shortname = ''
@@ -141,6 +141,7 @@ for lang in langs_order:
 html.write('''<table border=1 cellspacing=0>
 <tr>
 <td colspan=2>&nbsp</td>
+<td>yaml</td>
 '''
 )
 for lang in langs_order:
@@ -173,6 +174,13 @@ for game in games:
     else:
         html.write(game['longname'])
     html.write('</td>')
+
+    if 'todo' in game:
+        html.write('<td> </td>')
+    else:
+        html.write('<td><a href="http://anonscm.debian.org/cgit/pkg-games/game-data-packager.git/tree/data/%s.yaml">'
+                   '<img src="gear.png"></a></td>' % game['shortname'])
+
     for lang in langs_order:
         count = game.get(lang,None)
         if lang in ('total', 'en') and count == None:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git



More information about the Pkg-games-commits mailing list