From 01cd443441c401a82ae021e08dedd6709100be2c Mon Sep 17 00:00:00 2001 From: Maryana Rozhankivska Date: Sun, 16 Feb 2014 21:00:30 +0200 Subject: [PATCH] "save a link" added to top menu (default theme) to toggle "save link" form message, issue #461. "Mark all the entries as read" link added in default theme. --- themes/default/_menu.twig | 5 ++++- themes/default/_pocheit-form.twig | 22 ++++++++++++++++++++++ themes/default/css/style.css | 13 +++++++++++++ themes/default/home.twig | 1 + 4 files changed, 40 insertions(+), 1 deletion(-) create mode 100755 themes/default/_pocheit-form.twig diff --git a/themes/default/_menu.twig b/themes/default/_menu.twig index 02bec1dcd..55583b3d1 100644 --- a/themes/default/_menu.twig +++ b/themes/default/_menu.twig @@ -3,6 +3,9 @@
  • {% trans "favorites" %}
  • {% trans "archive" %}
  • {% trans "tags" %}
  • +
  • {% trans "save a link" %}
  • {% trans "config" %}
  • {% trans "logout" %}
  • - \ No newline at end of file + + {% include '_pocheit-form.twig' %} + diff --git a/themes/default/_pocheit-form.twig b/themes/default/_pocheit-form.twig new file mode 100755 index 000000000..130961594 --- /dev/null +++ b/themes/default/_pocheit-form.twig @@ -0,0 +1,22 @@ +
    +
    +
    + + +
    +
    +
    + diff --git a/themes/default/css/style.css b/themes/default/css/style.css index 2088ee2ee..286759076 100644 --- a/themes/default/css/style.css +++ b/themes/default/css/style.css @@ -334,3 +334,16 @@ a.bad-display span, a.reading-time span { background-repeat: no-repeat; } + +.arrow-down { + width: 0px; + height: 0px; + border-style: solid; + border-width: 10px 10px 0 10px; + border-color: #000 transparent transparent transparent; + + position: absolute; + margin-top: 1.5em; + margin-left: -30px; +} + diff --git a/themes/default/home.twig b/themes/default/home.twig index cbe8c62f5..21013ec81 100644 --- a/themes/default/home.twig +++ b/themes/default/home.twig @@ -46,4 +46,5 @@ {% endfor %} {% endif %} {{ block('pager') }} + {% if view == 'home' %}{% if nb_results > 1 %}{% trans "mark all the entries as read" %}{% endif %}{% endif %} {% endblock %}