From b7dd5f824c0d533c2a902ae41b70ac740ecd2fec Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicolas=20L=C5=93uillet?= Date: Fri, 7 Aug 2015 21:22:43 +0200 Subject: [PATCH] add howto page --- .../Controller/StaticController.php | 10 ++++ .../Resources/views/Static/howto.html.twig | 28 ++++++++++ .../themes/material/Static/howto.html.twig | 53 +++++++++++++++++++ .../views/themes/material/base.html.twig | 1 + 4 files changed, 92 insertions(+) create mode 100644 src/Wallabag/CoreBundle/Resources/views/Static/howto.html.twig create mode 100644 src/Wallabag/CoreBundle/Resources/views/themes/material/Static/howto.html.twig diff --git a/src/Wallabag/CoreBundle/Controller/StaticController.php b/src/Wallabag/CoreBundle/Controller/StaticController.php index 07931f58..09be1b74 100644 --- a/src/Wallabag/CoreBundle/Controller/StaticController.php +++ b/src/Wallabag/CoreBundle/Controller/StaticController.php @@ -7,6 +7,16 @@ use Symfony\Bundle\FrameworkBundle\Controller\Controller; class StaticController extends Controller { + /** + * @Route("/howto", name="howto") + */ + public function howtoAction() + { + return $this->render( + 'WallabagCoreBundle:Static:howto.html.twig', + array() + ); + } /** * @Route("/about", name="about") */ diff --git a/src/Wallabag/CoreBundle/Resources/views/Static/howto.html.twig b/src/Wallabag/CoreBundle/Resources/views/Static/howto.html.twig new file mode 100644 index 00000000..f25acb5d --- /dev/null +++ b/src/Wallabag/CoreBundle/Resources/views/Static/howto.html.twig @@ -0,0 +1,28 @@ +{% extends "WallabagCoreBundle::layout.html.twig" %} + +{% block title %}{% trans %}Howto{% endtrans %}{% endblock %} + +{% block content %} +

{% trans %}Howto{% endtrans %}

+ +

{% trans %}There are several ways to save an article:{% endtrans %}

+ +

{% trans %}Browser Addons{% endtrans %}

+ +

{% trans %}Mobile Apps{% endtrans %}

+ +

{% trans %}Bookmarklet{% endtrans %}

+

+ {% trans %}Drag & drop this link to your bookmarks bar:{% endtrans %} {% trans %}bag it!{% endtrans %} +

+ +{% endblock %} diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Static/howto.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Static/howto.html.twig new file mode 100644 index 00000000..245d14e3 --- /dev/null +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Static/howto.html.twig @@ -0,0 +1,53 @@ +{% extends "WallabagCoreBundle::layout.html.twig" %} + +{% block title %}{% trans %}Howto{% endtrans %}{% endblock %} + +{% block content %} + +
+ +
+{% endblock %} diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/base.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/base.html.twig index a767f8cf..476420dd 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/base.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/base.html.twig @@ -76,6 +76,7 @@
  • {% trans %}archive{% endtrans %}
  • {% trans %}tags{% endtrans %}
  • {% trans %}config{% endtrans %}
  • +
  • {% trans %}howto{% endtrans %}
  • {% trans %}logout{% endtrans %}