]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Added delete button on Baggy theme
authorNicolas Lœuillet <nicolas@loeuillet.org>
Fri, 31 Mar 2017 08:53:23 +0000 (10:53 +0200)
committerNicolas Lœuillet <nicolas@loeuillet.org>
Fri, 31 Mar 2017 08:53:23 +0000 (10:53 +0200)
src/Wallabag/AnnotationBundle/Repository/AnnotationRepository.php
src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig

index 23f21c3e3630a0e9636348e1e8871af94e083dee..3af53805bd1a9db1741525ffc801b6a1696c9334 100644 (file)
@@ -124,9 +124,10 @@ class AnnotationRepository extends EntityRepository
     }
 
     /**
-     * Find all annotations related to archived entries
+     * Find all annotations related to archived entries.
      *
      * @param $userId
+     *
      * @return mixed
      */
     public function findAllByArchivedEntriesAndUserId($userId)
index 3548f59013b19cb8a55a2aad070508df72c1418e..01f63a7b2b46b6c0c5509483ca3d781c43dc3995 100644 (file)
                         {{ 'config.reset.tags'|trans }}
                     </a>
                 </li>
+                <li>
+                    <a href="{{ path('config_reset', { type: 'archived'}) }}" onclick="return confirm('{{ 'config.reset.confirm'|trans|escape('js') }}')" class="waves-effect waves-light btn red">
+                        {{ 'config.reset.archived'|trans }}
+                    </a>
+                </li>
                 <li>
                     <a href="{{ path('config_reset', { type: 'entries'}) }}" onclick="return confirm('{{ 'config.reset.confirm'|trans|escape('js') }}')" class="waves-effect waves-light btn red">
                         {{ 'config.reset.entries'|trans }}