aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-10-03 09:09:45 +0200
committerGitHub <noreply@github.com>2016-10-03 09:09:45 +0200
commitab809de18415a9ce3bbc95d3a0a1af6c50a41c4f (patch)
treebee406df7af4b6e024764e153d8844dfe69aeda1 /src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry
parentdfbbf0e18ad585e318c2609e46963e4b9fd198ef (diff)
parent49f25d6ee820619a15851b12a33667d707e4edf7 (diff)
downloadwallabag-ab809de18415a9ce3bbc95d3a0a1af6c50a41c4f.tar.gz
wallabag-ab809de18415a9ce3bbc95d3a0a1af6c50a41c4f.tar.zst
wallabag-ab809de18415a9ce3bbc95d3a0a1af6c50a41c4f.zip
Merge pull request #2314 from wallabag/assets
Assets work
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry')
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig4
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig18
2 files changed, 2 insertions, 20 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig
index ffc5bec6..1c0430e8 100644
--- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig
@@ -67,7 +67,7 @@
67 67
68 <!-- Filter --> 68 <!-- Filter -->
69 {% if form is not null %} 69 {% if form is not null %}
70 <aside id="filter-form" class=""> 70 <div id="filters" class="">
71 <form method="get" action="{{ path('all') }}"> 71 <form method="get" action="{{ path('all') }}">
72 <h2>{{ 'entry.filters.title'|trans }}</h2> 72 <h2>{{ 'entry.filters.title'|trans }}</h2>
73 <a href="javascript: void(null);" id="filter-form-close" class="close-button--popup close-button">&times;</a> 73 <a href="javascript: void(null);" id="filter-form-close" class="close-button--popup close-button">&times;</a>
@@ -147,6 +147,6 @@
147 <button class="btn waves-effect waves-light" type="submit" id="submit-filter" value="filter">{{ 'entry.filters.action.filter'|trans }}</button> 147 <button class="btn waves-effect waves-light" type="submit" id="submit-filter" value="filter">{{ 'entry.filters.action.filter'|trans }}</button>
148 </div> 148 </div>
149 </form> 149 </form>
150 </aside> 150 </div>
151 {% endif %} 151 {% endif %}
152{% endblock %} 152{% endblock %}
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig
index bec4b70f..be1e3647 100644
--- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig
@@ -82,22 +82,4 @@
82 "entryId": "{{ entry.id }}" 82 "entryId": "{{ entry.id }}"
83 } 83 }
84 </script> 84 </script>
85 <script src="{{ asset('bundles/wallabagcore/themes/_global/js/restoreScroll.js')}}"></script>
86 <script type="text/javascript">
87 $(document).ready(function() {
88 $(window).scroll(function(e){
89 var scrollTop = $(window).scrollTop();
90 var docHeight = $(document).height();
91 var scrollPercent = (scrollTop) / (docHeight);
92 var scrollPercentRounded = Math.round(scrollPercent*100)/100;
93 savePercent({{ entry.id }}, scrollPercentRounded);
94 });
95
96 retrievePercent({{ entry.id }});
97
98 $(window).resize(function(){
99 retrievePercent({{ entry.id }});
100 });
101 });
102 </script>
103{% endblock %} 85{% endblock %}