feat: get url content in background

This commit is contained in:
2022-11-05 23:46:14 +03:00
parent 56fbdafa84
commit e4b6509003
13 changed files with 124 additions and 7 deletions

View File

@ -8,7 +8,7 @@
<div class="post-preview">
<div class="d-flex justify-content-between">
<div class="p-2">
<a href="{{ url.url }}">
<a href="{% url 'reader' url.id %}">
<h2 class="post-title">{{ url.title }}</h2>
</a>
</div>

View File

@ -12,7 +12,7 @@
<a href="{% url 'archive_url' url.id %}"><span class="fa-regular fa-square-check"></span>&nbsp;Отметить прочитанным</a>
</div>
<div class="p-2">
<a href="{{ url.url }}">Открыть оригинал статьи</a>
<a href="{{ url.url }}"><span class="fa-solid fa-arrow-up-right-from-square"></span>&nbsp;Открыть оригинал статьи</a>
</div>
</div>
</div>
@ -24,12 +24,12 @@
<a href="{% url 'archive_url' url.id %}"><span class="fa-regular fa-square-check"></span>&nbsp;Отметить прочитанным</a>
</div>
<div class="p-2">
<a href="{{ url.url }}">Открыть оригинал статьи</a>
<a href="{{ url.url }}"><span class="fa-solid fa-arrow-up-right-from-square"></span>&nbsp;Открыть оригинал статьи</a>
</div>
</div>
{% else %}
<h2 class="post-title">Что-то пошло не так.</h2>
Открыть <a href="{{ url.url }}">оригинал ссылки</a>.
<span class="fa-solid fa-arrow-up-right-from-square"></span>&nbsp;Открыть <a href="{{ url.url }}">оригинал ссылки</a>.
{% endif %}
</div>
{% endblock %}