]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Added floating button on entry view for mobile 2670/head
authorNicolas Lœuillet <nicolas@loeuillet.org>
Wed, 30 Nov 2016 15:08:02 +0000 (16:08 +0100)
committerNicolas Lœuillet <nicolas@loeuillet.org>
Wed, 30 Nov 2016 15:08:02 +0000 (16:08 +0100)
src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig

index bed0fdec48234341480b11497cb79942af29e305..0cbf1999d1e826ff36ab411889999c1ba7146533 100644 (file)
         <article>
             {{ entry.content | raw }}
         </article>
+
+        <div class="fixed-action-btn horizontal click-to-toggle hide-on-large-only">
+            <a class="btn-floating btn-large">
+              <i class="material-icons">menu</i>
+            </a>
+            <ul>
+              <li><a class="btn-floating" href="{{ path('archive_entry', { 'id': entry.id }) }}"><i class="material-icons">done</i></a></li>
+              <li><a class="btn-floating" href="{{ path('star_entry', { 'id': entry.id }) }}"><i class="material-icons">star_outline</i></a></li>
+              <li><a class="btn-floating" href="{{ path('delete_entry', { 'id': entry.id }) }}"><i class="material-icons">delete</i></a></li>
+            </ul>
+        </div>
     </div>
 
 <script id="annotationroutes" type="application/json">