From 371ac69a6bd6325929e4efee7958682a6b1666f7 Mon Sep 17 00:00:00 2001 From: Jeremy Date: Sat, 28 Mar 2015 21:43:49 +0100 Subject: Add tests and fix few mistakes --- .../Resources/views/Config/index.html.twig | 14 ++++++++----- .../Resources/views/Entry/entries.xml.twig | 6 +++--- .../views/themes/baggy/public/css/main.css | 24 +++++++++++----------- 3 files changed, 24 insertions(+), 20 deletions(-) (limited to 'src/Wallabag/CoreBundle/Resources') diff --git a/src/Wallabag/CoreBundle/Resources/views/Config/index.html.twig b/src/Wallabag/CoreBundle/Resources/views/Config/index.html.twig index b134b6ca..f2a98dfb 100644 --- a/src/Wallabag/CoreBundle/Resources/views/Config/index.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/Config/index.html.twig @@ -56,11 +56,15 @@
- + {% if rss.token %} + + {% else %} + You need to generate a token first. + {% endif %}
diff --git a/src/Wallabag/CoreBundle/Resources/views/Entry/entries.xml.twig b/src/Wallabag/CoreBundle/Resources/views/Entry/entries.xml.twig index 6eebc80d..f1039f5d 100644 --- a/src/Wallabag/CoreBundle/Resources/views/Entry/entries.xml.twig +++ b/src/Wallabag/CoreBundle/Resources/views/Entry/entries.xml.twig @@ -17,11 +17,11 @@ {{ entry.createdAt|date('D, d M Y H:i:s') }} 0 %} + {%- if entry.content| readingTime > 0 -%} {% trans %}estimated reading time :{% endtrans %} {{ entry.content| readingTime }} min - {% else -%} + {%- else -%} {% trans %}estimated reading time :{% endtrans %} < 1 min - {% endif -%} + {%- endif %} {{ entry.content -}} ]]> diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/public/css/main.css b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/public/css/main.css index 1df82910..ff1a36a1 100755 --- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/public/css/main.css +++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/public/css/main.css @@ -7,7 +7,7 @@ 4 = Messages 5 = Article 6 = Media queries - + ========================================================================== */ html { @@ -42,17 +42,17 @@ body { position: absolute; top: 2em; left: 50%; - margin-left: -55px; + margin-left: -55px; } /* ========================================================================== 1 = Style Guide ========================================================================== */ -::selection { - color: #FFF; +::selection { + color: #FFF; background-color: #000; -} +} .desktopHide { display: none; @@ -62,7 +62,7 @@ body { position: fixed; z-index: 20; top: 0.4em; - left: 0.6em; + left: 0.6em; } h2, h3, h4 { @@ -89,7 +89,7 @@ form fieldset { margin: 0; } -form input[type="text"], select, form input[type="password"], form input[type="url"], form input[type="email"] { +form input[type="text"], form input[type="number"], select, form input[type="password"], form input[type="url"], form input[type="email"] { border: 1px solid #999; padding: 0.5em 1em; min-width: 12em; @@ -149,7 +149,7 @@ form button, input[type="submit"] { #bookmarklet { cursor: move; -} +} h2:after { content: ""; @@ -296,7 +296,7 @@ h2:after { /* ========================================================================== 2 = Layout ========================================================================== */ - + #content { margin-top: 5em; min-height: 30em; @@ -653,7 +653,7 @@ a.add-to-wallabag-link-after:after { /* ========================================================================== 3 = Pictos ========================================================================== */ - + @font-face { font-family: 'icomoon'; src:url('../fonts/icomoon.eot?-s0mcsx'); @@ -866,7 +866,7 @@ blockquote { color: #FFF; text-decoration: none; } - + #article_toolbar a:hover, #article_toolbar a:focus { background-color: #999; } @@ -1052,7 +1052,7 @@ pre code { #article_toolbar a { padding: 0.3em 0.4em 0.2em; } - + #display-mode { display: none; } -- cgit v1.2.3