Skip to content

Commit

Permalink
ui: Split the tiles in columns and increase the mininum size
Browse files Browse the repository at this point in the history
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 <damien.lespiau@intel.com>
  • Loading branch information
Damien Lespiau committed Dec 20, 2015
1 parent c32affe commit 98fe494
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion htdocs/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ input#reorder-change {
}

.thumbnail {
min-height: 150px;
min-height: 200px;
}

/* patch view */
Expand Down
10 changes: 8 additions & 2 deletions patchwork/templates/patchwork/projects.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@

{% block body %}

<div style="margin-top:20px;"></div>

{% if projects %}
<div class="row" style="margin-top:20px;">
{% for p in projects %}
{% cycle '<div class="row">' '' '' %}
<div class="col-sm-6 col-md-4">
<div class="thumbnail">
<div class="caption">
Expand All @@ -28,9 +30,13 @@ <h3>{{p.name}}</h3>
</div>
</div>
</div>
{% endfor %}
{% if forloop.last %}
</div>
{% else %}
{% cycle '' '' '</div>' %}
{% endif %}
{% endfor %}
{% else %}
<p>Patchwork doesn't have any projects to display!</p>
{% endif %}

Expand Down

0 comments on commit 98fe494

Please sign in to comment.