[darcs-users] darcsweb 0.15

VMiklos vmiklos at frugalware.org
Wed Mar 8 09:14:22 UTC 2006


On Tue, Mar 07, 2006 at 11:41:54PM -0300, Alberto Bertogli <albertogli at telpin.com.ar> wrote:
> As usual, please let me know of any suggestion, bug or comment.

i've just made a quick hack to make the name of the authors a link to
their cia profiles. i don't know python, so of course as-is it's not
accepptable, but maybe it would be a good idea to add a config variable
to enable this:

$ diff -u darcsweb.cgi.orig darcsweb.cgi
--- darcsweb.cgi.orig   2006-02-27 18:13:48.000000000 +0100
+++ darcsweb.cgi        2006-02-27 18:18:46.000000000 +0100
@@ -1054,7 +1054,7 @@

                print """
   <td><i>%(age)s</i></td>
-  <td>%(author)s</td>
+  <td><a
href="http://cia.navi.cx/stats/author/%(href)s">%(author)s</a></td>
   <td>
     <a class="list" title="%(fullname)s"
href="%(myrname)s;a=commit;h=%(hash)s">
       <b>%(name)s</b>
@@ -1066,6 +1066,7 @@
   </td>
                """ % {
                        'age': how_old(p.local_date),
+                       'href': p.author,
                        'author': shorten_str(p.shortauthor, 26),
                        'myrname': config.myreponame,
                        'hash': p.hash,

comments?

udv / greetings,
VMiklos

-- 
Developer of Frugalware Linux, to make things frugal - http://frugalware.org




More information about the darcs-users mailing list