If no gist

This commit is contained in:
Simon Vieille 2015-11-23 22:04:48 +01:00
parent 13ceb37df7
commit b98915509a
3 changed files with 30 additions and 22 deletions

View file

@ -19,6 +19,7 @@ app:
my:
title: 'My gists'
nothing: 'Nothing yet!'
gist:
untitled: 'Untitled'

View file

@ -19,6 +19,7 @@ app:
my:
title: 'Mes Gists'
nothing: 'Rien pour le moment !'
gist:
untitled: 'Sans titre'

View file

@ -11,6 +11,11 @@
</div>
<div class="panel-body">
<div class="tab-content">
{% set gists = user.gists %}
{% if gists|length == 0 %}
{{ 'my.nothing'|trans }}
{% else %}
{% for gist in user.gists %}
<div class="commit">
<p>
@ -35,6 +40,7 @@
</p>
</div>
{% endfor %}
{% endif %}
</div>
</div>
</div>