aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Resources
diff options
context:
space:
mode:
authorJeremy <jeremy.benoist@gmail.com>2015-01-31 19:09:34 +0100
committerJeremy <jeremy.benoist@gmail.com>2015-01-31 19:12:49 +0100
commit7df80cb32ca9b7d0fe452320ddc3563a1e373e2f (patch)
treec07eb79213d471aa33c49ef4e5819e41cc12f242 /src/Wallabag/CoreBundle/Resources
parent1990517b2263a080946853ed697a6d687262ae80 (diff)
downloadwallabag-7df80cb32ca9b7d0fe452320ddc3563a1e373e2f.tar.gz
wallabag-7df80cb32ca9b7d0fe452320ddc3563a1e373e2f.tar.zst
wallabag-7df80cb32ca9b7d0fe452320ddc3563a1e373e2f.zip
CS
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources')
-rw-r--r--src/Wallabag/CoreBundle/Resources/config/routing.yml2
-rw-r--r--src/Wallabag/CoreBundle/Resources/config/routing_rest.yml2
-rw-r--r--src/Wallabag/CoreBundle/Resources/config/services.xml2
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/Entry/entry.html.twig2
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/Entry/new.html.twig2
-rwxr-xr-xsrc/Wallabag/CoreBundle/Resources/views/Static/about.html.twig4
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/_bookmarklet.html.twig2
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/_footer.html.twig2
-rwxr-xr-xsrc/Wallabag/CoreBundle/Resources/views/_head.html.twig1
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/_menu.html.twig1
-rwxr-xr-xsrc/Wallabag/CoreBundle/Resources/views/baggy/config.twig2
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/baggy/layout-login.twig2
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/baggy/login.twig2
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/default/_bookmarklet.twig2
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/default/_footer.twig2
-rwxr-xr-xsrc/Wallabag/CoreBundle/Resources/views/default/_import.twig2
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/default/_menu.twig1
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/default/_messages.twig2
-rwxr-xr-xsrc/Wallabag/CoreBundle/Resources/views/default/_search-form.twig2
-rwxr-xr-xsrc/Wallabag/CoreBundle/Resources/views/default/about.twig2
-rwxr-xr-xsrc/Wallabag/CoreBundle/Resources/views/default/config.twig2
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/default/export.twig2
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/default/layout.twig2
-rwxr-xr-xsrc/Wallabag/CoreBundle/Resources/views/default/tags.twig2
-rwxr-xr-xsrc/Wallabag/CoreBundle/Resources/views/default/view.twig20
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/layout-login.html.twig2
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/layout.html.twig2
27 files changed, 33 insertions, 38 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/config/routing.yml b/src/Wallabag/CoreBundle/Resources/config/routing.yml
index 327d49d8..ec1d23cc 100644
--- a/src/Wallabag/CoreBundle/Resources/config/routing.yml
+++ b/src/Wallabag/CoreBundle/Resources/config/routing.yml
@@ -1,3 +1,3 @@
1_wllbg: 1_wllbg:
2 resource: "@WallabagCoreBundle/Controller/EntryController.php" 2 resource: "@WallabagCoreBundle/Controller/EntryController.php"
3 type: annotation \ No newline at end of file 3 type: annotation
diff --git a/src/Wallabag/CoreBundle/Resources/config/routing_rest.yml b/src/Wallabag/CoreBundle/Resources/config/routing_rest.yml
index c876adfb..d3af6b72 100644
--- a/src/Wallabag/CoreBundle/Resources/config/routing_rest.yml
+++ b/src/Wallabag/CoreBundle/Resources/config/routing_rest.yml
@@ -1,4 +1,4 @@
1entries: 1entries:
2 type: rest 2 type: rest
3 resource: "WallabagCoreBundle:WallabagRest" 3 resource: "WallabagCoreBundle:WallabagRest"
4 name_prefix: api_ \ No newline at end of file 4 name_prefix: api_
diff --git a/src/Wallabag/CoreBundle/Resources/config/services.xml b/src/Wallabag/CoreBundle/Resources/config/services.xml
index d5bc5cca..859665ca 100644
--- a/src/Wallabag/CoreBundle/Resources/config/services.xml
+++ b/src/Wallabag/CoreBundle/Resources/config/services.xml
@@ -25,5 +25,3 @@
25 </services> 25 </services>
26 26
27</container> 27</container>
28
29
diff --git a/src/Wallabag/CoreBundle/Resources/views/Entry/entry.html.twig b/src/Wallabag/CoreBundle/Resources/views/Entry/entry.html.twig
index 78dfa7c0..edb15d55 100644
--- a/src/Wallabag/CoreBundle/Resources/views/Entry/entry.html.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/Entry/entry.html.twig
@@ -101,4 +101,4 @@
101 }); 101 });
102 }); 102 });
103 </script> 103 </script>
104{% endblock %} \ No newline at end of file 104{% endblock %}
diff --git a/src/Wallabag/CoreBundle/Resources/views/Entry/new.html.twig b/src/Wallabag/CoreBundle/Resources/views/Entry/new.html.twig
index df6926a0..b6de7d23 100644
--- a/src/Wallabag/CoreBundle/Resources/views/Entry/new.html.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/Entry/new.html.twig
@@ -8,4 +8,4 @@
8 8
9{% block content %} 9{% block content %}
10 {{ form(form) }} 10 {{ form(form) }}
11{% endblock %} \ No newline at end of file 11{% endblock %}
diff --git a/src/Wallabag/CoreBundle/Resources/views/Static/about.html.twig b/src/Wallabag/CoreBundle/Resources/views/Static/about.html.twig
index 0585ecca..b8d3c7b6 100755
--- a/src/Wallabag/CoreBundle/Resources/views/Static/about.html.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/Static/about.html.twig
@@ -30,11 +30,11 @@
30 <p>{% trans %}wallabag is a read-it-later application: you can save a web page by keeping only content. Elements like ads or menus are deleted.{% endtrans %}</p> 30 <p>{% trans %}wallabag is a read-it-later application: you can save a web page by keeping only content. Elements like ads or menus are deleted.{% endtrans %}</p>
31 31
32 <h2>{% trans %}Getting help{% endtrans %}</h2> 32 <h2>{% trans %}Getting help{% endtrans %}</h2>
33 33
34 <dl> 34 <dl>
35 <dt>{% trans %}Documentation{% endtrans %}</dt> 35 <dt>{% trans %}Documentation{% endtrans %}</dt>
36 <dd><a href="https://doc.wallabag.org/">Online documentation</a></dd> 36 <dd><a href="https://doc.wallabag.org/">Online documentation</a></dd>
37 37
38 <dt>{% trans %}Support{% endtrans %}</dt> 38 <dt>{% trans %}Support{% endtrans %}</dt>
39 <dd><a href="http://support.wallabag.org/">http://support.wallabag.org/</a></dd> 39 <dd><a href="http://support.wallabag.org/">http://support.wallabag.org/</a></dd>
40 </dl> 40 </dl>
diff --git a/src/Wallabag/CoreBundle/Resources/views/_bookmarklet.html.twig b/src/Wallabag/CoreBundle/Resources/views/_bookmarklet.html.twig
index d432909a..fd662c19 100644
--- a/src/Wallabag/CoreBundle/Resources/views/_bookmarklet.html.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/_bookmarklet.html.twig
@@ -1,3 +1,3 @@
1 <script type="text/javascript"> 1 <script type="text/javascript">
2 top["bookmarklet-url@wallabag.org"]=""+"<!DOCTYPE html>"+"<html>"+"<head>"+"<title>bag it!</title>"+'<link rel="icon" href="tpl/img/favicon.ico" />'+"</head>"+"<body>"+"<script>"+"window.onload=function(){"+"window.setTimeout(function(){"+"history.back();"+"},250);"+"};"+"</scr"+"ipt>"+"</body>"+"</html>" 2 top["bookmarklet-url@wallabag.org"]=""+"<!DOCTYPE html>"+"<html>"+"<head>"+"<title>bag it!</title>"+'<link rel="icon" href="tpl/img/favicon.ico" />'+"</head>"+"<body>"+"<script>"+"window.onload=function(){"+"window.setTimeout(function(){"+"history.back();"+"},250);"+"};"+"</scr"+"ipt>"+"</body>"+"</html>"
3 </script> \ No newline at end of file 3 </script>
diff --git a/src/Wallabag/CoreBundle/Resources/views/_footer.html.twig b/src/Wallabag/CoreBundle/Resources/views/_footer.html.twig
index c897a97e..26411da9 100644
--- a/src/Wallabag/CoreBundle/Resources/views/_footer.html.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/_footer.html.twig
@@ -1,3 +1,3 @@
1 <footer class="w600p center mt3 mb3 smaller txtright"> 1 <footer class="w600p center mt3 mb3 smaller txtright">
2 <p>{% trans %}powered by{% endtrans %} <a href="http://wallabag.org">wallabag</a></p> 2 <p>{% trans %}powered by{% endtrans %} <a href="http://wallabag.org">wallabag</a></p>
3 </footer> \ No newline at end of file 3 </footer>
diff --git a/src/Wallabag/CoreBundle/Resources/views/_head.html.twig b/src/Wallabag/CoreBundle/Resources/views/_head.html.twig
index 7ef79a2f..f123183b 100755
--- a/src/Wallabag/CoreBundle/Resources/views/_head.html.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/_head.html.twig
@@ -37,4 +37,3 @@
37 <script src="{{ asset('themes/_global/js/saveLink.js') }}"></script> 37 <script src="{{ asset('themes/_global/js/saveLink.js') }}"></script>
38 <script src="{{ asset('themes/_global/js/popupForm.js') }}"></script> 38 <script src="{{ asset('themes/_global/js/popupForm.js') }}"></script>
39 <script src="{{ asset('themes/baggy/js/closeMessage.js') }}"></script> 39 <script src="{{ asset('themes/baggy/js/closeMessage.js') }}"></script>
40
diff --git a/src/Wallabag/CoreBundle/Resources/views/_menu.html.twig b/src/Wallabag/CoreBundle/Resources/views/_menu.html.twig
index 3065ce44..2e3b6d08 100644
--- a/src/Wallabag/CoreBundle/Resources/views/_menu.html.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/_menu.html.twig
@@ -12,4 +12,3 @@
12 <li><a href={{ path('about') }}>{% trans %}about{% endtrans %}</a></li> 12 <li><a href={{ path('about') }}>{% trans %}about{% endtrans %}</a></li>
13 <li><a class="icon icon-power" href="{{ path('logout') }}" title="{% trans %}logout{% endtrans %}">{% trans %}logout{% endtrans %}</a></li> 13 <li><a class="icon icon-power" href="{{ path('logout') }}" title="{% trans %}logout{% endtrans %}">{% trans %}logout{% endtrans %}</a></li>
14 </ul> 14 </ul>
15
diff --git a/src/Wallabag/CoreBundle/Resources/views/baggy/config.twig b/src/Wallabag/CoreBundle/Resources/views/baggy/config.twig
index 6031f489..c5c07d49 100755
--- a/src/Wallabag/CoreBundle/Resources/views/baggy/config.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/baggy/config.twig
@@ -160,7 +160,7 @@
160 </div> 160 </div>
161 </fieldset> 161 </fieldset>
162 </form> 162 </form>
163 163
164 <h2>{% trans "Delete account" %}</h2> 164 <h2>{% trans "Delete account" %}</h2>
165 {% if not only_user %}<form method="post" action="?deluser"> 165 {% if not only_user %}<form method="post" action="?deluser">
166 <p>{% trans "You can delete your account by entering your password and validating." %}<br /><b>{% trans "Be careful, data will be erased forever (that is a very long time)." %}</b></p> 166 <p>{% trans "You can delete your account by entering your password and validating." %}<br /><b>{% trans "Be careful, data will be erased forever (that is a very long time)." %}</b></p>
diff --git a/src/Wallabag/CoreBundle/Resources/views/baggy/layout-login.twig b/src/Wallabag/CoreBundle/Resources/views/baggy/layout-login.twig
index 4078fbb0..ae3f086c 100644
--- a/src/Wallabag/CoreBundle/Resources/views/baggy/layout-login.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/baggy/layout-login.twig
@@ -28,4 +28,4 @@
28 </div> 28 </div>
29{% include '_footer.twig' %} 29{% include '_footer.twig' %}
30 </body> 30 </body>
31</html> \ No newline at end of file 31</html>
diff --git a/src/Wallabag/CoreBundle/Resources/views/baggy/login.twig b/src/Wallabag/CoreBundle/Resources/views/baggy/login.twig
index 58290e9c..d4eb46d2 100644
--- a/src/Wallabag/CoreBundle/Resources/views/baggy/login.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/baggy/login.twig
@@ -17,7 +17,7 @@
17 <input class="col" type="password" id="password" name="password" placeholder="{% trans "Password" %}" tabindex="2" {% if constant('MODE_DEMO') == 1 %}value="poche"{% endif %} /> 17 <input class="col" type="password" id="password" name="password" placeholder="{% trans "Password" %}" tabindex="2" {% if constant('MODE_DEMO') == 1 %}value="poche"{% endif %} />
18 </div> 18 </div>
19 <div class="row"> 19 <div class="row">
20 20
21 <div class="col"> 21 <div class="col">
22 <input type="checkbox" id="longlastingsession" name="longlastingsession" tabindex="3" /> <label for="longlastingsession">{% trans "Stay signed in" %}</label><br /> 22 <input type="checkbox" id="longlastingsession" name="longlastingsession" tabindex="3" /> <label for="longlastingsession">{% trans "Stay signed in" %}</label><br />
23 <small class="inbl">{% trans "(Do not check on public computers)" %}</small> 23 <small class="inbl">{% trans "(Do not check on public computers)" %}</small>
diff --git a/src/Wallabag/CoreBundle/Resources/views/default/_bookmarklet.twig b/src/Wallabag/CoreBundle/Resources/views/default/_bookmarklet.twig
index 61996353..c7e2f66e 100644
--- a/src/Wallabag/CoreBundle/Resources/views/default/_bookmarklet.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/default/_bookmarklet.twig
@@ -1,3 +1,3 @@
1 <script type="text/javascript"> 1 <script type="text/javascript">
2 top["bookmarklet-url@wallabag.org"]=""+"<!DOCTYPE html>"+"<html>"+"<head>"+"<title>bag it!</title>"+'<link rel="icon" href="{{poche_url}}tpl/img/favicon.ico" />'+"</head>"+"<body>"+"<script>"+"window.onload=function(){"+"window.setTimeout(function(){"+"history.back();"+"},250);"+"};"+"</scr"+"ipt>"+"</body>"+"</html>" 2 top["bookmarklet-url@wallabag.org"]=""+"<!DOCTYPE html>"+"<html>"+"<head>"+"<title>bag it!</title>"+'<link rel="icon" href="{{poche_url}}tpl/img/favicon.ico" />'+"</head>"+"<body>"+"<script>"+"window.onload=function(){"+"window.setTimeout(function(){"+"history.back();"+"},250);"+"};"+"</scr"+"ipt>"+"</body>"+"</html>"
3 </script> \ No newline at end of file 3 </script>
diff --git a/src/Wallabag/CoreBundle/Resources/views/default/_footer.twig b/src/Wallabag/CoreBundle/Resources/views/default/_footer.twig
index 213a4aca..25539f6b 100644
--- a/src/Wallabag/CoreBundle/Resources/views/default/_footer.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/default/_footer.twig
@@ -1,4 +1,4 @@
1 <footer class="w600p center mt3 mb3 smaller txtright"> 1 <footer class="w600p center mt3 mb3 smaller txtright">
2 <p>{% trans "powered by" %} <a href="http://wallabag.org">wallabag</a></p> 2 <p>{% trans "powered by" %} <a href="http://wallabag.org">wallabag</a></p>
3 {% if constant('DEBUG_POCHE') == 1 %}<p><strong>{% trans "debug mode is on so cache is off." %} {% trans "your wallabag version:" %}{{constant('WALLABAG')}}. {% trans "storage:" %} {{constant('STORAGE')}}</strong></p>{% endif %} 3 {% if constant('DEBUG_POCHE') == 1 %}<p><strong>{% trans "debug mode is on so cache is off." %} {% trans "your wallabag version:" %}{{constant('WALLABAG')}}. {% trans "storage:" %} {{constant('STORAGE')}}</strong></p>{% endif %}
4 </footer> \ No newline at end of file 4 </footer>
diff --git a/src/Wallabag/CoreBundle/Resources/views/default/_import.twig b/src/Wallabag/CoreBundle/Resources/views/default/_import.twig
index c59b7a15..63a2d3e2 100755
--- a/src/Wallabag/CoreBundle/Resources/views/default/_import.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/default/_import.twig
@@ -2,7 +2,7 @@
2<!-- 2<!--
3 $(document).ready(function() { 3 $(document).ready(function() {
4 $("body").css("cursor", "wait"); 4 $("body").css("cursor", "wait");
5 5
6 setTimeout(function(){ 6 setTimeout(function(){
7 window.location = './?import'; 7 window.location = './?import';
8 }, {{ import.delay }} ); 8 }, {{ import.delay }} );
diff --git a/src/Wallabag/CoreBundle/Resources/views/default/_menu.twig b/src/Wallabag/CoreBundle/Resources/views/default/_menu.twig
index eedf84f1..83fa3717 100644
--- a/src/Wallabag/CoreBundle/Resources/views/default/_menu.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/default/_menu.twig
@@ -11,4 +11,3 @@
11 </ul> 11 </ul>
12 {% include '_pocheit-form.twig' %} 12 {% include '_pocheit-form.twig' %}
13 {% include '_search-form.twig' %} 13 {% include '_search-form.twig' %}
14
diff --git a/src/Wallabag/CoreBundle/Resources/views/default/_messages.twig b/src/Wallabag/CoreBundle/Resources/views/default/_messages.twig
index 679aa098..b8481494 100644
--- a/src/Wallabag/CoreBundle/Resources/views/default/_messages.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/default/_messages.twig
@@ -1 +1 @@
{{ messages | raw }} \ No newline at end of file {{ messages | raw }}
diff --git a/src/Wallabag/CoreBundle/Resources/views/default/_search-form.twig b/src/Wallabag/CoreBundle/Resources/views/default/_search-form.twig
index 0cf6097a..70f97356 100755
--- a/src/Wallabag/CoreBundle/Resources/views/default/_search-form.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/default/_search-form.twig
@@ -1,4 +1,4 @@
1<div id="search-form" class="messages info"> 1<div id="search-form" class="messages info">
2<form method="get" action="index.php"> 2<form method="get" action="index.php">
3 <p> 3 <p>
4 <input type="hidden" name="view" value="search"></input> 4 <input type="hidden" name="view" value="search"></input>
diff --git a/src/Wallabag/CoreBundle/Resources/views/default/about.twig b/src/Wallabag/CoreBundle/Resources/views/default/about.twig
index 50ffd8ef..7ddb19d6 100755
--- a/src/Wallabag/CoreBundle/Resources/views/default/about.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/default/about.twig
@@ -70,5 +70,5 @@
70 70
71 <dt>PHPePub</dt> 71 <dt>PHPePub</dt>
72 <dd><a href="https://github.com/Grandt/PHPePub/">https://github.com/Grandt/PHPePub/</a></dd> 72 <dd><a href="https://github.com/Grandt/PHPePub/">https://github.com/Grandt/PHPePub/</a></dd>
73 </dl> 73 </dl>
74{% endblock %} 74{% endblock %}
diff --git a/src/Wallabag/CoreBundle/Resources/views/default/config.twig b/src/Wallabag/CoreBundle/Resources/views/default/config.twig
index b7d91937..6769da74 100755
--- a/src/Wallabag/CoreBundle/Resources/views/default/config.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/default/config.twig
@@ -45,7 +45,7 @@
45 {% trans "You can regenerate your token: <a href='?feed&amp;action=generate'>generate!</a>." %} 45 {% trans "You can regenerate your token: <a href='?feed&amp;action=generate'>generate!</a>." %}
46 </p> 46 </p>
47 {% endif %} 47 {% endif %}
48 48
49 <h2>{% trans "Change your theme" %}</h2> 49 <h2>{% trans "Change your theme" %}</h2>
50 <form method="post" action="?updatetheme" name="changethemeform"> 50 <form method="post" action="?updatetheme" name="changethemeform">
51 <fieldset class="w500p inline"> 51 <fieldset class="w500p inline">
diff --git a/src/Wallabag/CoreBundle/Resources/views/default/export.twig b/src/Wallabag/CoreBundle/Resources/views/default/export.twig
index 4adb9540..18a98a87 100644
--- a/src/Wallabag/CoreBundle/Resources/views/default/export.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/default/export.twig
@@ -1 +1 @@
{{ export }} \ No newline at end of file {{ export }}
diff --git a/src/Wallabag/CoreBundle/Resources/views/default/layout.twig b/src/Wallabag/CoreBundle/Resources/views/default/layout.twig
index dfebc3ea..d32395a2 100644
--- a/src/Wallabag/CoreBundle/Resources/views/default/layout.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/default/layout.twig
@@ -28,4 +28,4 @@
28 </div> 28 </div>
29{% include '_footer.twig' %} 29{% include '_footer.twig' %}
30 </body> 30 </body>
31</html> \ No newline at end of file 31</html>
diff --git a/src/Wallabag/CoreBundle/Resources/views/default/tags.twig b/src/Wallabag/CoreBundle/Resources/views/default/tags.twig
index e5be748e..47359ed1 100755
--- a/src/Wallabag/CoreBundle/Resources/views/default/tags.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/default/tags.twig
@@ -15,4 +15,4 @@
15 15
16 {% endfor %} 16 {% endfor %}
17 </div> 17 </div>
18{% endblock %} \ No newline at end of file 18{% endblock %}
diff --git a/src/Wallabag/CoreBundle/Resources/views/default/view.twig b/src/Wallabag/CoreBundle/Resources/views/default/view.twig
index 8f3a26c3..154de1e4 100755
--- a/src/Wallabag/CoreBundle/Resources/views/default/view.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/default/view.twig
@@ -42,7 +42,7 @@
42 <script src="{{ poche_url }}themes/_global/js/restoreScroll.js"></script> 42 <script src="{{ poche_url }}themes/_global/js/restoreScroll.js"></script>
43 <script type="text/javascript"> 43 <script type="text/javascript">
44 $(document).ready(function() { 44 $(document).ready(function() {
45 45
46 // toggle read property of current article 46 // toggle read property of current article
47 $('#markAsRead').click(function(){ 47 $('#markAsRead').click(function(){
48 $("body").css("cursor", "wait"); 48 $("body").css("cursor", "wait");
@@ -50,11 +50,11 @@
50 function( data ) { 50 function( data ) {
51 if ( data == '1' ) { 51 if ( data == '1' ) {
52 if ( $('#markAsRead').hasClass("archive-off") ) { 52 if ( $('#markAsRead').hasClass("archive-off") ) {
53 $('#markAsRead').removeClass("archive-off"); 53 $('#markAsRead').removeClass("archive-off");
54 $('#markAsRead').addClass("archive"); 54 $('#markAsRead').addClass("archive");
55 } 55 }
56 else { 56 else {
57 $('#markAsRead').removeClass("archive"); 57 $('#markAsRead').removeClass("archive");
58 $('#markAsRead').addClass("archive-off"); 58 $('#markAsRead').addClass("archive-off");
59 } 59 }
60 } 60 }
@@ -64,7 +64,7 @@
64 }); 64 });
65 $("body").css("cursor", "auto"); 65 $("body").css("cursor", "auto");
66 }); 66 });
67 67
68 // toggle favorite property of current article 68 // toggle favorite property of current article
69 $('#setFav').click(function(){ 69 $('#setFav').click(function(){
70 $("body").css("cursor", "wait"); 70 $("body").css("cursor", "wait");
@@ -72,11 +72,11 @@
72 function( data ) { 72 function( data ) {
73 if ( data == '1' ) { 73 if ( data == '1' ) {
74 if ( $('#setFav').hasClass("fav-off") ) { 74 if ( $('#setFav').hasClass("fav-off") ) {
75 $('#setFav').removeClass("fav-off"); 75 $('#setFav').removeClass("fav-off");
76 $('#setFav').addClass("fav"); 76 $('#setFav').addClass("fav");
77 } 77 }
78 else { 78 else {
79 $('#setFav').removeClass("fav"); 79 $('#setFav').removeClass("fav");
80 $('#setFav').addClass("fav-off"); 80 $('#setFav').addClass("fav-off");
81 } 81 }
82 } 82 }
@@ -86,8 +86,8 @@
86 }); 86 });
87 $("body").css("cursor", "auto"); 87 $("body").css("cursor", "auto");
88 }); 88 });
89 89
90 // set percent of read on startup 90 // set percent of read on startup
91 if ( $(document).height() <= $(window).innerHeight() ) { 91 if ( $(document).height() <= $(window).innerHeight() ) {
92 pp = 100; 92 pp = 100;
93 } 93 }
@@ -95,7 +95,7 @@
95 pp = 0; 95 pp = 0;
96 } 96 }
97 $('#readLeftPercent').text( pp + '%' ); 97 $('#readLeftPercent').text( pp + '%' );
98 98
99 99
100 $(window).scroll(function(e){ 100 $(window).scroll(function(e){
101 var scrollTop = $(window).scrollTop(); 101 var scrollTop = $(window).scrollTop();
@@ -103,7 +103,7 @@
103 var scrollPercent = (scrollTop) / (docHeight); 103 var scrollPercent = (scrollTop) / (docHeight);
104 var scrollPercentRounded = Math.round(scrollPercent*100)/100; 104 var scrollPercentRounded = Math.round(scrollPercent*100)/100;
105 savePercent({{ entry.id|e }}, scrollPercentRounded); 105 savePercent({{ entry.id|e }}, scrollPercentRounded);
106 106
107 // change percent of read on scroll 107 // change percent of read on scroll
108 pp = Math.round(scrollTop * 100 / ( docHeight - $(window).innerHeight() )); 108 pp = Math.round(scrollTop * 100 / ( docHeight - $(window).innerHeight() ));
109 $('#readLeftPercent').text( pp + '%' ); 109 $('#readLeftPercent').text( pp + '%' );
diff --git a/src/Wallabag/CoreBundle/Resources/views/layout-login.html.twig b/src/Wallabag/CoreBundle/Resources/views/layout-login.html.twig
index 9c39ea9f..d1aacc47 100644
--- a/src/Wallabag/CoreBundle/Resources/views/layout-login.html.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/layout-login.html.twig
@@ -23,4 +23,4 @@
23 </div> 23 </div>
24 {% include "WallabagCoreBundle::_footer.html.twig" %} 24 {% include "WallabagCoreBundle::_footer.html.twig" %}
25 </body> 25 </body>
26</html> \ No newline at end of file 26</html>
diff --git a/src/Wallabag/CoreBundle/Resources/views/layout.html.twig b/src/Wallabag/CoreBundle/Resources/views/layout.html.twig
index 1f1753a4..f062672c 100644
--- a/src/Wallabag/CoreBundle/Resources/views/layout.html.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/layout.html.twig
@@ -30,4 +30,4 @@
30 </div> 30 </div>
31 {% include "WallabagCoreBundle::_footer.html.twig" %} 31 {% include "WallabagCoreBundle::_footer.html.twig" %}
32 </body> 32 </body>
33</html> \ No newline at end of file 33</html>