mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-04-02 01:55:31 +00:00
implement activity RSS feed
This commit is contained in:
parent
60a5593446
commit
35b84546ff
58 changed files with 834 additions and 162 deletions
|
|
@ -1,10 +1,10 @@
|
|||
{% extends 'default/layout.html.twig' %}
|
||||
{% block title %}{{'Edit sensitive'|trans }} - {{'Torrent'|trans }} #{{ torrentId }} - {{ name }}{% endblock %}
|
||||
{% block title %}{{ 'Edit sensitive status' | trans }} - {{ 'Torrent' | trans }} #{{ torrentId }} - {{ name }}{% endblock %}
|
||||
{% block main_content %}
|
||||
<div class="padding-24-px margin-y-8-px border-radius-3-px background-color-night">
|
||||
<div class="margin-b-24-px padding-b-16-px border-bottom-default">
|
||||
<h1>
|
||||
{{'Edit sensitive status for torrent'|trans }}
|
||||
{{'Edit sensitive status for torrent' | trans }}
|
||||
<a href="{{ path('torrent_info', { torrentId : torrentId }) }}">#{{ torrentId }}</a>
|
||||
</h1>
|
||||
</div>
|
||||
|
|
@ -12,7 +12,7 @@
|
|||
<div class="margin-y-16-px">
|
||||
<input type="checkbox" name="sensitive" id="sensitive" value="true" {% if form.sensitive.attribute.value %}checked="checked"{% endif %} />
|
||||
<label for="sensitive">
|
||||
{{'Sensitive'|trans }}
|
||||
{{'Sensitive' | trans }}
|
||||
</label>
|
||||
<sub class="opacity-0 parent-hover-opacity-09" title="{{ 'Mark torrent content as sensitive' | trans }}">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" fill="currentColor" viewBox="0 0 16 16">
|
||||
|
|
@ -23,7 +23,7 @@
|
|||
<div class="padding-t-4-px margin-b-16-px border-bottom-default"></div>
|
||||
<div class="text-right">
|
||||
<a class="margin-r-8-px" href="{{ path('torrent_info', { torrentId : torrentId }) }}">
|
||||
{{'cancel'|trans }}
|
||||
{{'cancel' | trans }}
|
||||
</a>
|
||||
<input class="button-green" type="submit" value="{{'Submit'|trans }}" />
|
||||
</div>
|
||||
|
|
@ -38,7 +38,7 @@
|
|||
{{ edition.added | format_ago }}
|
||||
</a>
|
||||
{% endif %}
|
||||
{{ 'by'|trans }}
|
||||
{{ 'by' | trans }}
|
||||
<a href="{{ path('user_info', { userId : edition.user.id }) }}">
|
||||
<img class="border-radius-50 border-color-default vertical-align-middle" src="{{ edition.user.identicon }}" alt="{{'identicon'|trans }}" />
|
||||
</a>
|
||||
|
|
|
|||
|
|
@ -334,10 +334,20 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a name="activity"></a>
|
||||
<div class="padding-x-24-px padding-t-16-px padding-b-8-px text-center">
|
||||
<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">
|
||||
<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 activities %}
|
||||
<a name="activity"></a>
|
||||
{% for activity in activities %}
|
||||
<div class="padding-16-px margin-y-8-px border-radius-3-px background-color-night">
|
||||
<div class="padding-x-24-px padding-y-16-px margin-y-8-px border-radius-3-px background-color-night">
|
||||
{{ render(controller(
|
||||
'App\\Controller\\ActivityController::event',
|
||||
{ user : session.user, activity : activity }
|
||||
|
|
@ -348,13 +358,6 @@
|
|||
<div class="row margin-t-16-px">
|
||||
<div class="column width-50 padding-t-16-px">
|
||||
|
||||
{# @TODO
|
||||
<a class="text-color-night" href="#" 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>
|
||||
#}
|
||||
</div>
|
||||
<div class="column width-50 text-right">
|
||||
{% if pagination.pages > 1 %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue