mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-03-31 17:15:38 +00:00
update torrent features
This commit is contained in:
parent
d1f8c126b0
commit
e713c17333
16 changed files with 661 additions and 329 deletions
|
|
@ -26,17 +26,17 @@
|
|||
{{ 'Page' | trans | lower }} {{ pagination.page }} / {{ pagination.pages }}
|
||||
{% if pagination.page > 1 %}
|
||||
{% if pagination.page == 2 %}
|
||||
<a rel="nofollow" class="button margin-l-8-px" href="{{ path('user_dashboard') }}">
|
||||
<a rel="nofollow" class="button margin-l-8-px" href="{{ path('activity_all') }}">
|
||||
{{ 'Back' | trans | lower }}
|
||||
</a>
|
||||
{% else %}
|
||||
<a rel="nofollow" class="button margin-l-8-px" href="{{ path('user_dashboard', { page : pagination.page - 1 }) }}">
|
||||
<a rel="nofollow" class="button margin-l-8-px" href="{{ path('activity_all', { page : pagination.page - 1 }) }}">
|
||||
{{ 'Back' | trans | lower }}
|
||||
</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if pagination.page < pagination.pages %}
|
||||
<a rel="nofollow" class="button margin-l-8-px" href="{{ path('user_dashboard', { page : pagination.page + 1 }) }}">
|
||||
<a rel="nofollow" class="button margin-l-8-px" href="{{ path('activity_all', { page : pagination.page + 1 }) }}">
|
||||
{{ 'Next' | trans | lower }}
|
||||
</a>
|
||||
{% endif %}
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
<header>
|
||||
<div class="container">
|
||||
<div class="row margin-y-16-px text-center">
|
||||
<a class="logo" href="{{ path('user_dashboard') }}">
|
||||
<a class="logo" href="{{ path('torrent_recent') }}">
|
||||
<span>YGG</span>tracker
|
||||
</a>
|
||||
{% block header_search %}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
<form class="margin-t-16-px" name="search" method="get" action="{{ path('search_index') }}">
|
||||
<form class="margin-t-16-px" name="search" method="get" action="{{ path('torrent_search') }}">
|
||||
<input class="min-width-200-px" type="text" name="query" value="{{ query }}" placeholder="{{ 'Keyword, file, hash...' | trans }}" />
|
||||
{#
|
||||
<select name="type">
|
||||
{% if type == 'torrent' %}
|
||||
<option value="torrent" selected="selected">{{ 'Torrents' | trans }}</option>
|
||||
|
|
@ -12,5 +13,6 @@
|
|||
<option value="article">{{ 'Articles' | trans }}</option>
|
||||
{% endif %}
|
||||
</select>
|
||||
<input {% if query %}class="button-green"{% endif %} type="submit" value="{{ 'Search' | trans }}" />
|
||||
#}
|
||||
<input {% if query is not null %}class="button-green"{% endif %} type="submit" value="{{ 'Search' | trans }}" />
|
||||
</form>
|
||||
|
|
@ -292,7 +292,7 @@
|
|||
<div class="padding-t-16-px text-left">
|
||||
{% if torrent.locales %}
|
||||
<div class="padding-y-4-px">
|
||||
{% for i, locale in torrent.locales.value %}{% if i > 0 %},{% endif %} {{ locale|locale_name(locale)|u.title }}{% endfor %}
|
||||
{% for i, locale in torrent.locales %}{% if i > 0 %},{% endif %} {{ locale|locale_name(locale)|u.title }}{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{% extends 'default/layout.html.twig' %}
|
||||
{% block title %}{% if query %}{{ query }}{% else %}{{ 'New' | trans }}{% endif %} - {{ 'Torrents' | trans }} - {{ name }}{% endblock %}
|
||||
{% block title %}{% if query %}{{ query }}{% else %}{{ 'Recent' | trans }}{% endif %} - {{ 'Torrents' | trans }} - {{ name }}{% endblock %}
|
||||
{% block main_content %}
|
||||
{% if torrents %}
|
||||
{% for torrent in torrents %}
|
||||
|
|
@ -21,7 +21,7 @@
|
|||
{% if torrent.keywords %}
|
||||
<div class="margin-b-16-px">
|
||||
{% for keyword in torrent.keywords %}
|
||||
<a href="{{ path('search_index', { query : keyword, type : 'torrent' }) }}">
|
||||
<a href="{{ path('torrent_search', { query : keyword }) }}">
|
||||
#{{ keyword }}
|
||||
</a>
|
||||
{% endfor %}
|
||||
|
|
@ -1,17 +1,32 @@
|
|||
<div class="margin-y-16-px position-fixed margin-l--48-px">
|
||||
{% if route == 'user_dashboard' %}
|
||||
{% if route == 'torrent_recent' %}
|
||||
<span class="padding-8-px display-block cursor-default" title="{{ 'Home' | trans }}">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="currentColor" viewBox="0 0 16 16">
|
||||
<path d="M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z"/>
|
||||
</svg>
|
||||
</span>
|
||||
{% else %}
|
||||
<a rel="nofollow" class="padding-8-px display-block text-color-night" href="{{ path('user_dashboard') }}" title="{{ 'Home' | trans }}">
|
||||
<a rel="nofollow" class="padding-8-px display-block text-color-night" href="{{ path('torrent_recent') }}" title="{{ 'Home' | trans }}">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="currentColor" viewBox="0 0 16 16">
|
||||
<path d="M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z"/>
|
||||
</svg>
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if route == 'activity_all' %}
|
||||
<span class="padding-8-px display-block cursor-default" title="{{ 'Activity' | trans }}">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="currentColor" viewBox="0 0 16 16">
|
||||
<path fill-rule="evenodd" d="M8 3a5 5 0 1 1-4.546 2.914.5.5 0 0 0-.908-.417A6 6 0 1 0 8 2v1z"/>
|
||||
<path d="M8 4.466V.534a.25.25 0 0 0-.41-.192L5.23 2.308a.25.25 0 0 0 0 .384l2.36 1.966A.25.25 0 0 0 8 4.466z"/>
|
||||
</svg>
|
||||
</span>
|
||||
{% else %}
|
||||
<a rel="nofollow" class="padding-8-px display-block text-color-night" href="{{ path('activity_all') }}" title="{{ 'Activity' | trans }}">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="currentColor" viewBox="0 0 16 16">
|
||||
<path fill-rule="evenodd" d="M8 3a5 5 0 1 1-4.546 2.914.5.5 0 0 0-.908-.417A6 6 0 1 0 8 2v1z"/>
|
||||
<path d="M8 4.466V.534a.25.25 0 0 0-.41-.192L5.23 2.308a.25.25 0 0 0 0 .384l2.36 1.966A.25.25 0 0 0 8 4.466z"/>
|
||||
</svg>
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if route == 'user_info' %}
|
||||
<span class="padding-8-px display-block cursor-default" title="{{ 'Profile' | trans }}">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="currentColor" viewBox="0 0 16 16">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue