cpack_repository/commit

Some layout issues

authorJan Wielemaker
Thu Nov 18 10:49:55 2010 +0100
committerJan Wielemaker
Thu Nov 18 10:49:55 2010 +0100
commit85a10f61f6d11a1cd21b607dc4701d8220f5eccb
treef029f90706545f43e5c0f64a6002bf33a4d0c57f
parent0e1f9aac91fe15503e2b6795620bf74fbdcd1b81
Diff style: patch stat
diff --git a/applications/cpack_submit.pl b/applications/cpack_submit.pl
index 0a616c6..e654c80 100644
--- a/applications/cpack_submit.pl
+++ b/applications/cpack_submit.pl
@@ -144,11 +144,12 @@ current_package(Package, Options) :-
 package_table(Packages, Options) -->
 	html_requires(css('cpack.css')),
 	html(table(class(block),
-		   [ tr([ th('Name'),
+		   [ tr([ th('OK?'),
+			  th('Name'),
 			  th('Title'),
 			  th('Type'),
-			  th('Submitter'),
-			  th('Status')
+			  th('Author'),
+			  th('Submitter')
 			])
 		   | \package_rows(Packages, 1, Options)
 		   ])).
@@ -159,11 +160,13 @@ package_rows([H|T], Row, Options) -->
 	package_rows(T, Next, Options).
 
 package_row(Package, _Options) -->
-	html([ td(\cpack_link(Package)),
-	       td(\cpack_prop(Package, dcterms:title)),
-	       td(\cpack_prop(Package, rdf:type)),
-	       td(\cpack_prop(Package, cpack:submittedBy)),
-	       td(class(status), \cpack_status_icon(Package))
+	html([ td(class(status),    \cpack_status_icon(Package)),
+	       td(class(name),      \cpack_link(Package)),
+	       td(class(title),     \cpack_prop(Package, dcterms:title)),
+	       td(class(type),      \cpack_prop(Package, rdf:type)),
+	       td(class(author),
+		  div(\cpack_prop(Package, cpack:author))),
+	       td(class(submitted), \cpack_prop(Package, cpack:submittedBy))
 	     ]).
 
 update_all_link(Options) -->
diff --git a/web/css/cpack.css b/web/css/cpack.css
index cb592c0..2c5b3f3 100644
--- a/web/css/cpack.css
+++ b/web/css/cpack.css
@@ -1,11 +1,28 @@
-div.cpack td.status
+/* Package overview table */
+
+div.cpack td.status,td.type
 { text-align: center;
 }
 
+div.cpack td.title
+{ font-weight: bold;
+  font-size: 90%;
+}
+
 div.cpack td.status img
 { height: 1.3em;
 }
 
+div.cpack td.author div
+{ width: 12em;
+  white-space: nowrap;
+  overflow: hidden;
+  text-overflow: ellipsis;
+}
+
+
+/* Package page */
+
 div.cpack h2 span.status
 { vertical-align: text-top;
   margin-top: -0.3em;
@@ -22,7 +39,7 @@ div.cpack br.after-ptable
   clear:both;
 }
 
-div.cpack th
+div.cpack table.infobox th
 { text-align: right;
 }