1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-06-27 16:36:00 +00:00

Extract Scroll Storage controller

This commit is contained in:
Yassine Guedidi 2025-03-02 13:43:18 +01:00
parent 019d252446
commit d515e11fe4
4 changed files with 22 additions and 50 deletions

View file

@ -262,7 +262,7 @@
{% endblock %}
{% block content %}
<div id="article" class="article">
<div id="article" class="article" data-controller="scroll-storage" data-scroll-storage-entry-id-value="{{ entry.id }}" data-action="scroll@window->scroll-storage#saveScroll">
<header class="mbm">
<h1>
<span{% if entry.language is defined and entry.language is not null %} lang="{{ entry.getHTMLLanguage() }}"{% endif %}>{{ entry.title|striptags|default('entry.default_title'|trans)|raw }}</span>