From: Damien Lespiau Date: Sun, 20 Dec 2015 17:20:29 +0000 (+0000) Subject: ui: Split the tiles in columns and increase the mininum size X-Git-Tag: v1.1.0~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67d10450e5b1f0810f05b1b445e87a1ccbe641ff;p=thirdparty%2Fpatchwork.git 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 --- diff --git a/htdocs/css/style.css b/htdocs/css/style.css index 13d40311..05d9db93 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 b027d7c3..3743d499 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 %}