diff --git a/app/locales/en.yml b/app/locales/en.yml index 6f4bdf7..2ca6365 100644 --- a/app/locales/en.yml +++ b/app/locales/en.yml @@ -19,6 +19,7 @@ app: my: title: 'My gists' + nothing: 'Nothing yet!' gist: untitled: 'Untitled' diff --git a/app/locales/fr.yml b/app/locales/fr.yml index e9ef99e..0d0d4ff 100644 --- a/app/locales/fr.yml +++ b/app/locales/fr.yml @@ -19,6 +19,7 @@ app: my: title: 'Mes Gists' + nothing: 'Rien pour le moment !' gist: untitled: 'Sans titre' diff --git a/src/Gist/Resources/views/My/my.html.twig b/src/Gist/Resources/views/My/my.html.twig index d2f1942..745c35a 100644 --- a/src/Gist/Resources/views/My/my.html.twig +++ b/src/Gist/Resources/views/My/my.html.twig @@ -11,30 +11,36 @@
- {{ gist.title ? gist.title : 'gist.untitled'|trans }}, - {{ gist.createdAt|date('date.format'|trans) }} -
- -- + {% set gists = user.gists %} - {% if not gist.cipher %} - - View - - {% else %} -
+