Skip to content

Commit

Permalink
Display thumbnails for the applications. Closes Scifabric#97
Browse files Browse the repository at this point in the history
If an application has a thumbnail field in the info section, the thumbnail link will be displayed in the web page.

All the images for the thumbnails should be 100x100 pixels. Check the demo applications for some examples.
  • Loading branch information
teleyinex committed Jun 5, 2012
1 parent 15f4f16 commit 1e0b41b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion pybossa/templates/account/profile.html
Expand Up @@ -47,7 +47,11 @@ <h3>API key: <small>{{ current_user.api_key }}</small></h3>
<div class="span3">
<ul class="thumbnails">
<li>
<img class="thumbnail" src="http://placehold.it/120x120">
{% if app.info.thumbnail %}
<img class="thumbnail" src="{{ app.info.thumbnail}}">
{% else %}
<img class="thumbnail" src="http://placehold.it/100x100">
{% endif %}
</li>
</ul>
</div>
Expand Down
6 changes: 5 additions & 1 deletion pybossa/templates/applications/index.html
Expand Up @@ -13,7 +13,11 @@ <h1>Available Projects</h1>
<div class="span2">
<ul class="thumbnails">
<li>
<img class="thumbnail" src="http://placehold.it/100x100">
{% if app.info.thumbnail %}
<img class="thumbnail" src="{{ app.info.thumbnail }}">
{% else %}
<img class="thumbnail" src="http://placehold.it/100x100">
{% endif %}
</li>
</ul>
</div>
Expand Down

0 comments on commit 1e0b41b

Please sign in to comment.