[Blends-commit] [SCM] website branch, master, updated. 371e51c7ea81704f0a5dc9af44b84693e8b193f3

Ole Streicher debian at liska.ath.cx
Tue Dec 8 13:51:27 UTC 2015


The following commit has been merged in the master branch:
commit 371e51c7ea81704f0a5dc9af44b84693e8b193f3
Author: Ole Streicher <debian at liska.ath.cx>
Date:   Tue Dec 8 14:48:43 2015 +0100

    Further importvements: centered screenshots, alternating table row background

diff --git a/webtools/templates/packages.xhtml b/webtools/templates/packages.xhtml
index cd0baf3..f5abe3f 100644
--- a/webtools/templates/packages.xhtml
+++ b/webtools/templates/packages.xhtml
@@ -36,13 +36,23 @@ a.tooltip:hover span{
     border:1px solid #DCA;
     background:#fffAF0;
 }
+.centered {
+  position: fixed !important;
+  top: 50%;
+  left: 50%;
+  transform: translate(-50%, -50%);
+}
+
+table {
+    padding-bottom: 1.5em;
+}
 
-#splash { // overwrite "splash" id setting for "splash" package in debian-astro
-    background-image: none;
+tr:first-child td.fullwidth {
+   border-top-style: none;
 }
 
 .pkgdesc-full {
-    background:#f8f8ff;
+    background-image: none !important;// overwrite "splash" id setting for "splash" package in debian-astro
 }
 .pkgdesc-full td {
     border-top-style: none;
@@ -93,6 +103,9 @@ a.tooltip:hover span{
 .pkgdesc-short a:hover:not(:link):not(:visited) {
     color: grey;
 }
+tr.alternate-color {
+    background-color: #eee;
+}
 ul.desc-inline {
     padding: 0;
     margin: 0;
@@ -202,7 +215,7 @@ function show_fulldesc(hash) {
 	<table width="90%">
 	  <py:for each="pstatus in dependencies[task]">
 	    <tr>
-	      <td colspan="3" style="border-top-style: none;">
+	      <td colspan="3" class="fullwidth">
 		<h2>
 		  <a id="${pstatus}-debs" name="${pstatus}-debs"/>
 		  ${headline[pstatus]}
@@ -224,8 +237,9 @@ function show_fulldesc(hash) {
 	      <th>Version</th>
 	      <th>Description</th>
 	    </tr>
-	    <py:for each="project in projects[task][pstatus]">
-	      <tr id="${project.pkg}.short" class="pkgdesc-short">
+	    <py:for each="line, project in enumerate(projects[task][pstatus])">
+	      <tr id="${project.pkg}.short"
+		  class="pkgdesc-short ${'alternate-color' if line % 2 == 1 else ''}">
 		<td>
 		  <a onclick="toggle_visibility('${project.pkg}');" style="cursor:pointer;">
 		    ${project.pkg.capitalize()}
@@ -276,7 +290,8 @@ function show_fulldesc(hash) {
 		  </a>
 		</td>
 	      </tr>
-	      <tr id="${project.pkg}" class="pkgdesc-full" style="display:none;">
+	      <tr id="${project.pkg}" style="display:none;"
+		  class="pkgdesc-full ${'alternate-color' if line % 2 == 1 else ''}">
 		<td colspan="3">
 		  <h3>
 		    ${project.pkg.capitalize()}:
@@ -291,7 +306,7 @@ function show_fulldesc(hash) {
 			<dt class="screenshot">
 			  <a class="tooltip" href="http://screenshots.debian.net/package/${project.pkg}">
 			    <img src="${project.icon}" alt="Description:" />
-			    <span class="tooltip">
+			    <span class="tooltip centered">
 			      <img src="${project.image}" />
 			      <table py:if="project.screenshots != []" class="versionclass">
 				<tr><th colspan="3"
@@ -311,10 +326,10 @@ function show_fulldesc(hash) {
 		    </py:choose>
 		    <dd>
 		      <py:choose>
-			<py:when test="lang in project.desc">
+			<py:when test="lang != 'en' and lang in project.desc">
 			  <a class="editlink tooltip" href="http://ddtp.debian.net/ddtss/index.cgi/${lang}/forexternalreview/${project.pkg}">
 			    ✏
-			    <span>Improve translation</span>
+			    <span>${fixtranslation}</span>
 			  </a>
 			  ${project.desc[lang]['long']}
 			</py:when>
@@ -426,7 +441,7 @@ function show_fulldesc(hash) {
 		    </dd>
 		  </py:if>
 		    <py:if test="project.properties['Enhances'] != {}">
-		      <dt>Enhanced by</dt>
+		      <dt>Enhancements</dt>
 		      <dd>
 			<ul class="desc-inline">
 			  <py:for each="enh in project.properties['Enhances'].keys()">
@@ -452,7 +467,7 @@ function show_fulldesc(hash) {
 			<py:if test="project.pkgstatus == 'new'">
 			  <li>
 			    <a href="${project.properties['pkg-url']}">
-			      Queue entry
+			      NEW entry
 			    </a>
 			  </li>
 			</py:if>
@@ -545,6 +560,7 @@ function show_fulldesc(hash) {
 	      </tr>
 	    </py:for>
 	  </py:for>
+	  <tr><td colspan="3" class="fullwidth" /></tr>
 	</table>
       </div>
       <div id="footer">

-- 
Static and dynamic websites for Debian Pure Blends



More information about the Blends-commit mailing list