From 73b0a3db61d3bfe28d48149233215190190d7c5b Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Sat, 19 Dec 2015 22:09:00 +0000 Subject: [PATCH] ui: Redesign the projects page Signed-off-by: Damien Lespiau Acked-by: Stephen Finucane --- htdocs/css/style.css | 22 ++------------ patchwork/templates/patchwork/projects.html | 33 +++++++++++++-------- 2 files changed, 23 insertions(+), 32 deletions(-) diff --git a/htdocs/css/style.css b/htdocs/css/style.css index 3e9a49d2..13d40311 100644 --- a/htdocs/css/style.css +++ b/htdocs/css/style.css @@ -158,26 +158,8 @@ input#reorder-change { font-weight:normal; } -/* project list view */ -.project-set { -} - -.project-set .project { - display: inline-block; - vertical-align: top; - background: #fcfcfc; - border: thin solid #f0f0f0; - box-shadow: 5px 5px 5px #c0c0c0; - margin: 2em 0.2em; - padding: 1em; - width: 20em; - min-height: 5em; -} - -.project h2.project-title { - font-weight: bold; - font-size: 110%; - margin: 0.2em 0; +.thumbnail { + min-height: 150px; } /* patch view */ diff --git a/patchwork/templates/patchwork/projects.html b/patchwork/templates/patchwork/projects.html index 543a1d43..b027d7c3 100644 --- a/patchwork/templates/patchwork/projects.html +++ b/patchwork/templates/patchwork/projects.html @@ -6,22 +6,31 @@ {% block body %} {% if projects %} -
- {% for p in projects %} -
-

- {{p.linkname}} -

-
{{p.name}}
+
+{% for p in projects %} +
+
+
+

{{p.name}}

+

+ + + View patches + + +

{% if p.web_url %} - +

{{p.web_url}}

+{% else %} +

{{p.webscm_url}}

{% endif %} -
- {% endfor %} +
+
+{% endfor %} +
{% else %} -

Patchwork doesn't have any projects to display!

+

Patchwork doesn't have any projects to display!

{% endif %} {% endblock %} -- 2.47.3