Browse Source

update rss links position

main
ghost 1 year ago
parent
commit
3ef090257a
  1. 10
      templates/default/activity/list.html.twig
  2. 2
      templates/default/torrent/info.html.twig
  3. 12
      templates/default/torrent/list.html.twig
  4. 2
      templates/default/user/info.html.twig

10
templates/default/activity/list.html.twig

@ -1,12 +1,16 @@ @@ -1,12 +1,16 @@
{% extends 'default/layout.html.twig' %}
{% block title %}{{ 'Recent activity' | trans }}{% if pagination.page > 1 %} - {{ 'Page' | trans }} {{ pagination.page }}{% endif %} - {{ name }}{% endblock %}
{% block title %}{{ 'Activity' | trans }}{% if pagination.page > 1 %} - {{ 'Page' | trans }} {{ pagination.page }}{% endif %} - {{ name }}{% endblock %}
{% block main_content %}
<h1>{{ 'Recent activity' | trans }}</h1>
<a class="text-color-night float-right" href="{{ path('rss_activity') }}" title="RSS">
<div class="text-right">
<h2>{{ 'Recent activity' | trans }}</h2>
<sub>
<a class="text-color-night margin-x-4-px" href="{{ path('rss_activity') }}" title="RSS">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
<path d="M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm1.5 2.5c5.523 0 10 4.477 10 10a1 1 0 1 1-2 0 8 8 0 0 0-8-8 1 1 0 0 1 0-2zm0 4a6 6 0 0 1 6 6 1 1 0 1 1-2 0 4 4 0 0 0-4-4 1 1 0 0 1 0-2zm.5 7a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z"/>
</svg>
</a>
</sub>
</div>
{% for activity in activities %}
<div class="padding-16-px margin-y-8-px border-radius-3-px background-color-night">
{{ render(controller(

2
templates/default/torrent/info.html.twig

@ -335,7 +335,7 @@ @@ -335,7 +335,7 @@
</div>
</div>
<a name="activity"></a>
<div class="padding-x-24-px padding-t-16-px padding-b-8-px text-center">
<div class="padding-t-16-px padding-b-8-px text-right">
<h2>{{ 'Recent activity' | trans }}</h2>
<sub>
<a class="text-color-night margin-x-4-px" href="{{ path('rss_activity_torrent', { torrentId : torrent.id }) }}" title="RSS">

12
templates/default/torrent/list.html.twig

@ -1,6 +1,16 @@ @@ -1,6 +1,16 @@
{% extends 'default/layout.html.twig' %}
{% block title %}{% if query %}{{ query }}{% else %}{{ 'Recent' | trans }}{% endif %} - {{ 'Torrents' | trans }} - {{ name }}{% endblock %}
{% block title %}{% if query %}{{ query }} - {{ 'Search' | trans }} - {% endif %}{{ name }}{% endblock %}
{% block main_content %}
<div class="text-right">
<h2>{{ 'Recent uploads' | trans }}</h2>
<sub>
<a class="text-color-night margin-x-4-px" href="{{ path('rss_activity') }}" title="RSS">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
<path d="M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm1.5 2.5c5.523 0 10 4.477 10 10a1 1 0 1 1-2 0 8 8 0 0 0-8-8 1 1 0 0 1 0-2zm0 4a6 6 0 0 1 6 6 1 1 0 1 1-2 0 4 4 0 0 0-4-4 1 1 0 0 1 0-2zm.5 7a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z"/>
</svg>
</a>
</sub>
</div>
{% if torrents %}
{% for torrent in torrents %}
<div class="padding-24-px margin-y-8-px border-radius-3-px background-color-night{% if torrent.sensitive == true or torrent.approved == false %} opacity-06{% endif %}">

2
templates/default/user/info.html.twig

@ -219,7 +219,7 @@ @@ -219,7 +219,7 @@
</table>
</div>
<a name="activity"></a>
<div class="padding-x-24-px padding-t-16-px padding-b-8-px text-center">
<div class="padding-t-16-px padding-b-8-px text-right">
<h2>{{ 'Recent activity' | trans }}</h2>
<sub>
<a class="text-color-night margin-x-4-px" href="{{ path('rss_activity_user', { userId : user.id }) }}" title="RSS">

Loading…
Cancel
Save