From 67d10450e5b1f0810f05b1b445e87a1ccbe641ff Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Sun, 20 Dec 2015 17:20:29 +0000 Subject: ui: Split the tiles in columns and increase the mininum size Let's try to make that page looks better when the natural size of the tiles are different (because the contents have varying sizes). Signed-off-by: Damien Lespiau Acked-by: Stephen Finucane --- htdocs/css/style.css | 2 +- patchwork/templates/patchwork/projects.html | 32 +++++++++++++++++------------ 2 files changed, 20 insertions(+), 14 deletions(-) diff --git a/htdocs/css/style.css b/htdocs/css/style.css index 13d4031..05d9db9 100644 --- a/htdocs/css/style.css +++ b/htdocs/css/style.css @@ -159,7 +159,7 @@ input#reorder-change { } .thumbnail { - min-height: 150px; + min-height: 200px; } /* patch view */ diff --git a/patchwork/templates/patchwork/projects.html b/patchwork/templates/patchwork/projects.html index b027d7c..3743d49 100644 --- a/patchwork/templates/patchwork/projects.html +++ b/patchwork/templates/patchwork/projects.html @@ -5,20 +5,22 @@ {% block body %} +
+ {% if projects %} -
{% for p in projects %} -
-
-
-

{{p.name}}

-

- - - View patches - - -

+{% cycle '
' '' '' %} +
+
+
+

{{p.name}}

+

+ + + View patches + + +

{% if p.web_url %}

{{p.web_url}}

{% else %} @@ -27,9 +29,13 @@
-{% endfor %} +{% if forloop.last %}
{% else %} +{% cycle '' '' '
' %} +{% endif %} +{% endfor %} +{% else %}

Patchwork doesn't have any projects to display!

{% endif %} -- cgit v1.2.3