[csw-devel] SF.net SVN: gar:[20890] csw/mgar/gar/v2/lib

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sun Apr 28 20:22:42 CEST 2013


Revision: 20890
          http://gar.svn.sourceforge.net/gar/?rev=20890&view=rev
Author:   wahwah
Date:     2013-04-28 18:22:39 +0000 (Sun, 28 Apr 2013)
Log Message:
-----------
pkgdb-web: Better maintainers display

It used to be: "j... at opencsw.org", now: "joe at open..."

Modified Paths:
--------------
    csw/mgar/gar/v2/lib/python/models.py
    csw/mgar/gar/v2/lib/web/static/pkgdb.css
    csw/mgar/gar/v2/lib/web/templates/Catalogname.html
    csw/mgar/gar/v2/lib/web/templates/MaintainerList.html

Modified: csw/mgar/gar/v2/lib/python/models.py
===================================================================
--- csw/mgar/gar/v2/lib/python/models.py	2013-04-28 14:35:54 UTC (rev 20889)
+++ csw/mgar/gar/v2/lib/python/models.py	2013-04-28 18:22:39 UTC (rev 20890)
@@ -73,10 +73,11 @@
       email = ["unknown"]
     if len(email) == 2:
       username, domain = email
+      if len(domain) > 4:
+        domain = domain[:4] + u'\u2026'
     else:
       username, domain = email[0], "no domain"
-    username = username[:-3] + "..."
-    return "@".join((username, domain))
+    return u'\u24b6'.join((username, domain))
 
   def __unicode__(self):
     return u"%s <%s>" % (

Modified: csw/mgar/gar/v2/lib/web/static/pkgdb.css
===================================================================
--- csw/mgar/gar/v2/lib/web/static/pkgdb.css	2013-04-28 14:35:54 UTC (rev 20889)
+++ csw/mgar/gar/v2/lib/web/static/pkgdb.css	2013-04-28 18:22:39 UTC (rev 20890)
@@ -5,6 +5,9 @@
 .annotation {
   font-size: 80%;
 }
+.greytext {
+  color: #DDD;
+}
 .overridden, .overridden a, tr.overridden > td {
   color: #DDD;
 }

Modified: csw/mgar/gar/v2/lib/web/templates/Catalogname.html
===================================================================
--- csw/mgar/gar/v2/lib/web/templates/Catalogname.html	2013-04-28 14:35:54 UTC (rev 20889)
+++ csw/mgar/gar/v2/lib/web/templates/Catalogname.html	2013-04-28 18:22:39 UTC (rev 20890)
@@ -15,7 +15,7 @@
 <ul>
 $for pkg in pkgs:
   <li>
-  <a href="../../srv4/$pkg.md5_sum/">$pkg</a>
+  <a href="../../srv4/$pkg.md5_sum/">$pkg</a> by $pkg.maintainer
   </li>
 </ul>
 

Modified: csw/mgar/gar/v2/lib/web/templates/MaintainerList.html
===================================================================
--- csw/mgar/gar/v2/lib/web/templates/MaintainerList.html	2013-04-28 14:35:54 UTC (rev 20889)
+++ csw/mgar/gar/v2/lib/web/templates/MaintainerList.html	2013-04-28 18:22:39 UTC (rev 20890)
@@ -7,14 +7,29 @@
     <link rel="stylesheet" type="text/css" href="/pkgdb-static/pkgdb.css" />
   </head>
   <body>
-    <ul>
+    <table>
+      <tr>
+        <th>user name</th>
+        <th>domain</th>
+        <th>full name</th>
+      </tr>
 $for username, domain, maintainer in maintainers
-  <li>
-  <a href="$maintainer.id/">$username</a>
-  ($domain.replace(".", "!"))
+  <tr>
+  <td>
+  <a href="$maintainer.id/">
+    $username
+  </a>
+  </td>
+  <td>
+  $domain
+  </td>
+  <td>
   $if maintainer.full_name:
     $maintainer.full_name
-  </li>
+  $else:
+    <span class="greytext">(not set)</span>
+  </td>
+  </tr>
 </ul>
 </body>
 </html>

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list