Compare commits

..

90 commits
2.2.0 ... main

Author SHA1 Message Date
yggverse
d72bda1e71 remove deprecated info 2025-08-05 21:46:49 +03:00
yggverse
085e6174d9 update readme 2025-08-05 21:45:08 +03:00
yggverse
7bcc52fcae update readme 2025-08-05 21:44:31 +03:00
yggverse
5a1ada42e7 update readme 2025-08-05 21:42:17 +03:00
yggverse
ee9b7be6ac fix github markdown 2025-08-05 21:30:58 +03:00
yggverse
09811cd801 add reference to btracker project 2025-08-05 21:30:28 +03:00
yggverse
1281acea22 remove deprecated info 2025-08-05 21:27:26 +03:00
ghost
95addf0c48 add crawler 2024-02-01 16:59:14 +02:00
ghost
e780c5b4b5 fix description variables 2023-12-23 08:18:25 +02:00
ghost
6c775f822c fix torrent description filters 2023-12-23 07:56:54 +02:00
ghost
bff1962071 undefined variable 2023-12-10 22:15:59 +02:00
ghost
10181a04f1 hide header description #32 2023-12-10 01:55:49 +02:00
ghost
7eb02d06cc update version 2023-12-08 20:18:53 +02:00
ghost
2f4dbff90d add trim filters 2023-12-08 20:18:28 +02:00
ghost
3c6b1d6ab7 allow markdown from whitelist only 2023-12-08 20:06:47 +02:00
ghost
9d596de610 update version 2023-12-08 04:10:51 +02:00
ghost
6603790aba disable markdown as unsafe for remote content without additional filters implementation 2023-12-08 04:09:38 +02:00
ghost
fe608cff8f update version 2023-12-08 02:19:01 +02:00
ghost
9814a56135 composer update 2023-12-07 02:30:15 +02:00
ghost
27e598fded add rel/nofollow for wanted links 2023-12-03 02:22:53 +02:00
ghost
f5d4c19eb9 add new crawler 2023-12-03 02:11:08 +02:00
ghost
9081acebb3 update readme 2023-12-01 15:57:00 +02:00
ghost
3b832c94bc add rel="nofollow" to the action links 2023-11-19 23:05:47 +02:00
ghost
110976c619 add clickable links support for software info 2023-11-19 19:25:27 +02:00
ghost
2afaf2f618 fix links regex condition 2023-11-19 19:24:23 +02:00
ghost
8aff756e30 apply search filter for RSS #35 2023-11-18 09:27:33 +02:00
ghost
7177cdb4fe add torrent private info 2023-11-15 09:52:49 +02:00
ghost
3ce3dfe77b fix contributors list by integrate new features 2023-11-13 19:38:05 +02:00
ghost
5523034307 add search filters counter #35 2023-11-13 11:23:37 +02:00
ghost
e3503bc4bd add rel/nofollow to the filter link #35 2023-11-13 10:50:41 +02:00
ghost
002a41da87 add filter link #35 2023-11-13 10:37:16 +02:00
ghost
deb35d5013 add filter attributes support for pagination and tag links #35 2023-11-13 10:11:48 +02:00
ghost
1ae5d324c2 remove h2 tag from filter headers #35 2023-11-13 09:39:10 +02:00
ghost
5a0342a998 init extended search feature #35 2023-11-13 09:35:04 +02:00
ghost
7a1fa12271 fix locales sort order 2023-11-13 08:24:12 +02:00
ghost
77616c3c8a fix sensitive access condition and disable on direct request #37 2023-11-11 04:17:57 +02:00
ghost
b96ed08694 apply Bencode library update 2023-11-04 15:02:38 +02:00
ghost
ff565ac33b add categories feature translation #26 2023-11-04 13:51:41 +02:00
ghost
d1e9e72401 disallow toggleStar method for crawlers 2023-11-04 11:04:05 +02:00
ghost
178ab23031 update version 2023-11-04 09:58:16 +02:00
ghost
e1e3bfb2ce update json api #26 2023-11-04 09:57:42 +02:00
ghost
31aad63399 add category edition events support #26 2023-11-04 07:45:58 +02:00
ghost
2e9b119733 fix comma separator 2023-11-04 07:03:53 +02:00
ghost
0247e0e064 add new localization 2023-11-04 06:35:09 +02:00
ghost
701b448cd6 init torrent categories feature #26 2023-11-04 06:26:01 +02:00
ghost
35babed517 add missed locale 2023-11-04 03:30:32 +02:00
ghost
f8e0890966 update composer 2023-11-03 15:36:35 +02:00
ghost
261031dc50 unify syntax style 2023-11-03 15:36:24 +02:00
ghost
6dcbd6de40 make description links clickable #30 2023-11-03 15:35:46 +02:00
ghost
ad5b075878 add poster settings to the user profile page 2023-11-03 14:54:12 +02:00
ghost
7796aba342 append torrent filename to the manual wanted downloads 2023-11-03 14:06:15 +02:00
ghost
2e4129927d set app IDs in the filename postfix, remove lowercase 2023-11-03 13:59:50 +02:00
ghost
258d206f2e unify torrent filenames to prevent encoding issues on FTP connection 2023-11-03 13:44:49 +02:00
ghost
4f2879fdef set users approved by default 2023-11-02 19:15:01 +02:00
ghost
e788744a0f add configuration tip for upload_max_filesize 2023-11-02 01:38:55 +02:00
ghost
986f6678f8 add new locale 2023-11-01 23:23:43 +02:00
ghost
514b1ebc5d fix event message 2023-11-01 05:11:25 +02:00
ghost
3589d2eef4 set new users as sensitive by default 2023-10-31 23:05:48 +02:00
ghost
69309b9a98 update readme 2023-10-31 20:20:26 +02:00
ghost
5c76a17df5 implement poster position settings #18 2023-10-31 02:06:58 +02:00
ghost
cfeeabee72 fix posters event translation #18 2023-10-30 21:04:11 +02:00
ghost
cef76daa49 fix deleted event id info #18 2023-10-30 19:40:49 +02:00
ghost
446da9eb0b fix method data type #18 2023-10-30 19:32:58 +02:00
ghost
99ea797699 fix torrent poster update on last poster delete #18 2023-10-30 19:12:09 +02:00
ghost
8742c91f9f fix poster sub-directories initiation #18 2023-10-30 07:00:38 +02:00
ghost
ed3803df95 update version 2023-10-30 05:37:26 +02:00
ghost
1b8deb439b update strings translation #18 2023-10-30 05:36:01 +02:00
ghost
706ea40eec add poster event support #18 2023-10-30 05:14:46 +02:00
ghost
bd5191e894 implement torrent posters feature #18 2023-10-30 04:44:44 +02:00
ghost
8ae1b3f0b7 init torrent poster database #18 2023-10-29 20:00:27 +02:00
ghost
997666ab8e implement transliteration word forms in search #33 2023-10-28 00:03:42 +03:00
ghost
c7c5d7340c implement additional torrent fields index, add indexer configuration #31 2023-10-27 21:22:16 +03:00
ghost
afcacebe26 update version 2023-10-27 01:40:07 +03:00
ghost
989f2f3311 implement torrent statuses management #28 2023-10-27 01:36:50 +03:00
ghost
3cbc6ea90f add NL locale 2023-10-26 19:05:19 +03:00
ghost
dbc37da63d fix sensitive settings description 2023-10-26 18:37:48 +03:00
ghost
be248963e9 rollback commit 246fdda4fb causes error 2023-10-26 18:31:21 +03:00
ghost
246fdda4fb fix sensitive content visibility for publication owners 2023-10-26 06:57:10 +03:00
ghost
5c4e949269 update file tree view 2023-10-26 06:37:41 +03:00
ghost
0b77a5d171 add line break support for torrent comments 2023-10-26 05:52:08 +03:00
ghost
79886c0d77 fix request scrape update on torrent download 2023-10-26 04:09:42 +03:00
ghost
a47893ff9b request scrape update on torrent download 2023-10-26 04:02:35 +03:00
ghost
83ea09adad fix event margin 2023-10-26 03:58:51 +03:00
ghost
82f69c64a6 fix line break for wanted label 2023-10-26 02:32:11 +03:00
ghost
4969d33f57 fix long filename out of container width 2023-10-25 19:34:07 +03:00
ghost
1d6a7b03b2 fix long filename out of container width 2023-10-25 19:27:43 +03:00
ghost
1c9de9b275 fix activity template 2023-10-25 18:49:56 +03:00
ghost
6bc2c360a3 fix activity template 2023-10-25 18:48:31 +03:00
ghost
341c3a70a5 update readme 2023-10-25 02:16:22 +03:00
ghost
fa1f1f18c6 update readme 2023-10-24 04:59:36 +03:00
105 changed files with 10783 additions and 1022 deletions

48
.env
View file

@ -48,7 +48,7 @@ MESSENGER_TRANSPORT_DSN=doctrine://default?auto_setup=0
# YGGtracker
# Application version, used for API and media cache
APP_VERSION='2.2.0'
APP_VERSION=2.6.2
# Application name
APP_NAME=YGGtracker
@ -57,7 +57,11 @@ APP_NAME=YGGtracker
APP_LOCALE=en
# Supported locales for interface and content filters
APP_LOCALES=en|cs|eo|fr|ka|de|he|it|lv|pl|pt|ru|es|uk
APP_LOCALES=en|cs|nl|eo|fr|ja|ka|de|he|it|lv|pl|pt|ru|es|uk
# Content categories, lowercase, enabled by default for new users
# src/Twig/AppExtension.php:transCategory
APP_CATEGORIES=movie|series|tv|animation|music|game|audiobook|podcast|book|archive|picture|software|other
# Items per page on pagination
APP_PAGINATION=10
@ -69,24 +73,54 @@ APP_THEME=default
APP_THEMES=default
# Default sensitive status for new users
APP_SENSITIVE=0
APP_SENSITIVE=1
# Default approved status for new users
APP_APPROVED=0
APP_APPROVED=1
# Default Yggdrasil filters status for new users
APP_YGGDRASIL=1
# Default posters status for new users
APP_POSTERS=1
# Build-in trackers append to downloads
APP_TRACKERS=http://[201:23b4:991a:634d:8359:4521:5576:15b7]:2023/announce|http://[200:1e2f:e608:eb3a:2bf:1e62:87ba:e2f7]/announce|http://[316:c51a:62a3:8b9::5]/announce
# List of crawlers where ignored in actions and activity features
APP_CRAWLERS=201:23b4:991a:634d:8359:4521:5576:15b7|30a:5fad::e
APP_CRAWLERS=201:23b4:991a:634d:8359:4521:5576:15b7|30a:5fad::e|202:f2bc:f800:7cc4:c109:7857:5cae:6630|200:1554:e730:4030:605b:47be:6fb6:7b11
# Max torrent filesize for uploads
# Max torrent filesize for uploads (check upload_max_filesize in the php.ini)
APP_TORRENT_FILE_SIZE_MAX=1024000
# Max torrent poster filesize for uploads (check upload_max_filesize in the php.ini)
APP_TORRENT_POSTER_FILE_SIZE_MAX=10240000
# Store wanted torrent files in /app/var/ftp by /app/crontab/torrent/scrape/{key}
APP_TORRENT_WANTED_FTP_ENABLED=1
APP_TORRENT_WANTED_FTP_FOLDER=/yggtracker
APP_TORRENT_WANTED_FTP_APPROVED_ONLY=1
APP_TORRENT_WANTED_FTP_APPROVED_ONLY=1
# Enable search index for torrent name
APP_INDEX_TORRENT_NAME_ENABLED=1
# Enable search index for torrent info hash v1
APP_INDEX_TORRENT_HASH_V1_ENABLED=1
# Enable search index for torrent info hash v2
APP_INDEX_TORRENT_HASH_V2_ENABLED=1
# Enable search index for torrent filenames
APP_INDEX_TORRENT_FILENAMES_ENABLED=1
# Enable search index for torrent source
APP_INDEX_TORRENT_SOURCE_ENABLED=1
# Enable search index for torrent comment
APP_INDEX_TORRENT_COMMENT_ENABLED=1
# Enable search index for words length greater than N chars
APP_INDEX_WORD_LENGTH_MIN=3
# Enable search index for words length not greater than N chars
APP_INDEX_WORD_LENGTH_MAX=255

View file

@ -1,22 +1,16 @@
# YGGtracker
[![Crowdin](https://badges.crowdin.net/yggtracker/localized.svg)](https://crowdin.com/project/yggtracker)
> [!NOTE]
> Take a look at [βtracker](https://github.com/yggverse/btracker) - the modern aggregation alternative written in Rust!
BitTorrent Network for Yggdrasil
A social-oriented BitTorrent catalog for the [Yggdrasil](https://github.com/yggdrasil-network) network, written in the Symfony framework.
YGGtracker is catalog, open tracker and social network with many features that allow to convert, filter and download any torrent in [Yggdrasil network](https://github.com/yggdrasil-network) by community.
Engine uses IPv6 `0200::/7` addresses to identify users without registration.
YGGtracker is a manually operated catalog and social network that allows users to share their torrents in the local network. Engine uses IPv6 `0200::/7` addresses to identify users without registration.
#### [Showcase](https://github.com/YGGverse/YGGtracker/wiki/Showcase)
![Pasted image 1](https://github.com/YGGverse/YGGtracker/assets/108541346/962f7850-01e1-4add-9dbe-c11b80108a75)
#### Instances
* `http://[201:23b4:991a:634d:8359:4521:5576:15b7]/yggtracker/`
+ `ftp://[201:23b4:991a:634d:8359:4521:5576:15b7]:21/yggtracker/`
#### Installation
```
@ -62,7 +56,7 @@ php bin/console doctrine:migrations:migrate
##### FTP
Setup anonymous read-only access to `/var/ftp` catalog ([read more](https://github.com/YGGverse/YGGtracker/wiki/Features#wanted))
Setup anonymous read-only access to `/var/ftp` catalog ([read more](https://github.com/YGGverse/YGGtracker/wiki/Features#the-wanted))
##### App settings
@ -70,7 +64,7 @@ Custom settings could be provided in the `/.env.local` file by overwriting defau
#### Localization
Join community translations by [Crowdin](https://crowdin.com/project/yggtracker)
[![Crowdin](https://badges.crowdin.net/yggtracker/localized.svg)](https://crowdin.com/project/yggtracker)
#### API
@ -85,15 +79,6 @@ git checkout main
git checkout -b my-pr-branch-name
```
#### Donate to contributors
* @d47081:
+ ![wakatime](https://wakatime.com/badge/user/0b7fe6c1-b091-4c98-b930-75cfee17c7a5/project/059ec567-2c65-4c65-a48e-51dcc366f1a0.svg)
+ [BTC](https://www.blockchain.com/explorer/addresses/btc/bc1qngdf2kwty6djjqpk0ynkpq9wmlrmtm7e0c534y) | [LTC](https://live.blockcypher.com/ltc/address/LUSiqzKsfB1vBLvpu515DZktG9ioKqLyj7) | [XMR](835gSR1Uvka19gnWPkU2pyRozZugRZSPHDuFL6YajaAqjEtMwSPr4jafM8idRuBWo7AWD3pwFQSYRMRW9XezqrK4BEXBgXE) | [ZEPH](ZEPHsADHXqnhfWhXrRcXnyBQMucE3NM7Ng5ZVB99XwA38PTnbjLKpCwcQVgoie8EJuWozKgBiTmDFW4iY7fNEgSEWyAy4dotqtX)
+ Support our server by order [Linux VPS](https://www.yourserver.se/portal/aff.php?aff=610)
+ Inspiration by [SomaFM Deep Space One](https://somafm.com/deepspaceone/)
#### License
* Engine sources [MIT License](https://github.com/YGGverse/YGGtracker/blob/main/LICENSE)
@ -107,7 +92,8 @@ git checkout -b my-pr-branch-name
* [Symfony Framework](https://symfony.com)
* [SVG icons](https://icons.getbootstrap.com)
* [Scrapper](https://github.com/medariox/scrapeer) / [Composer Edition](https://github.com/YGGverse/scrapeer)
* [Bencode Library](https://github.com/Rhilip/Bencode)
* [Bencode](https://github.com/Rhilip/Bencode)
* [Transliteration](https://github.com/ashtokalo/php-translit)
* [Identicons](https://github.com/dmester/jdenticon-php)
#### Support
@ -120,9 +106,10 @@ git checkout -b my-pr-branch-name
* [Mastodon](https://mastodon.social/@YGGverse)
#### Plugins
#### Integrations
* [qBitTorrent](https://github.com/YGGverse/qbittorrent-yggtracker-search-plugin)
* [YGGtracker Search Plugin for qBittorrent](https://github.com/YGGverse/qbittorrent-yggtracker-search-plugin)
* [Crontab script that allows to receive wanted torrents from multiple YGGtracker nodes](https://github.com/YGGverse/yggtracker-wanted-torrents-receiver)
#### See also

View file

@ -9,11 +9,13 @@
"php": ">=8.1",
"ext-ctype": "*",
"ext-iconv": "*",
"ashtokalo/php-translit": "^0.2.0",
"doctrine/annotations": "^2.0",
"doctrine/doctrine-bundle": "^2.10",
"doctrine/doctrine-migrations-bundle": "^3.2",
"doctrine/orm": "^2.16",
"jdenticon/jdenticon": "^1.0",
"league/commonmark": "^2.4",
"phpdocumentor/reflection-docblock": "^5.3",
"phpstan/phpdoc-parser": "^1.24",
"rhilip/bencode": "^2.3",
@ -44,8 +46,9 @@
"symfony/validator": "6.3.*",
"symfony/web-link": "6.3.*",
"symfony/yaml": "6.3.*",
"twig/extra-bundle": "^2.12|^3.0",
"twig/extra-bundle": "^3.7",
"twig/intl-extra": "^3.7",
"twig/markdown-extra": "^3.7",
"twig/string-extra": "^3.7",
"twig/twig": "^2.12|^3.0",
"yggverse/scrapeer": "^0.5.4"

1399
composer.lock generated

File diff suppressed because it is too large Load diff

View file

@ -8,7 +8,7 @@ framework:
crowdin:
dsn: '%env(CROWDIN_DSN)%'
domains: ['messages']
locales: ['en','cs','eo','fr','ka','de','he','it','lv','pl','pt','ru','es','uk']
locales: ['en','cs','nl','eo','fr', 'ja', 'ka','de','he','it','lv','pl','pt','ru','es','uk']
# loco:
# dsn: '%env(LOCO_DSN)%'
# lokalise:

View file

@ -11,16 +11,27 @@ parameters:
app.trackers: '%env(APP_TRACKERS)%'
app.crawlers: '%env(APP_CRAWLERS)%'
app.locales: '%env(APP_LOCALES)%'
app.categories: '%env(APP_CATEGORIES)%'
app.themes: '%env(APP_THEMES)%'
app.locale: '%env(APP_LOCALE)%'
app.theme: '%env(APP_THEME)%'
app.sensitive: '%env(APP_SENSITIVE)%'
app.approved: '%env(APP_APPROVED)%'
app.yggdrasil: '%env(APP_YGGDRASIL)%'
app.posters: '%env(APP_POSTERS)%'
app.torrent.size.max: '%env(APP_TORRENT_FILE_SIZE_MAX)%'
app.torrent.poster.size.max: '%env(APP_TORRENT_POSTER_FILE_SIZE_MAX)%'
app.torrent.wanted.ftp.enabled: '%env(APP_TORRENT_WANTED_FTP_ENABLED)%'
app.torrent.wanted.ftp.folder: '%env(APP_TORRENT_WANTED_FTP_FOLDER)%'
app.torrent.wanted.ftp.approved: '%env(APP_TORRENT_WANTED_FTP_APPROVED_ONLY)%'
app.index.torrent.name.enabled: '%env(APP_INDEX_TORRENT_NAME_ENABLED)%'
app.index.torrent.filenames.enabled: '%env(APP_INDEX_TORRENT_FILENAMES_ENABLED)%'
app.index.torrent.hash.v1.enabled: '%env(APP_INDEX_TORRENT_HASH_V1_ENABLED)%'
app.index.torrent.hash.v2.enabled: '%env(APP_INDEX_TORRENT_HASH_V2_ENABLED)%'
app.index.torrent.source.enabled: '%env(APP_INDEX_TORRENT_SOURCE_ENABLED)%'
app.index.torrent.comment.enabled: '%env(APP_INDEX_TORRENT_COMMENT_ENABLED)%'
app.index.word.length.min: '%env(APP_INDEX_WORD_LENGTH_MIN)%'
app.index.word.length.max: '%env(APP_INDEX_WORD_LENGTH_MAX)%'
services:
# default configuration for services in *this* file

View file

@ -0,0 +1,37 @@
<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20231026163131 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE torrent ADD COLUMN status BOOLEAN DEFAULT 1');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE TEMPORARY TABLE __temp__torrent AS SELECT id, user_id, added, scraped, locales, sensitive, approved, md5file, keywords, seeders, peers, leechers FROM torrent');
$this->addSql('DROP TABLE torrent');
$this->addSql('CREATE TABLE torrent (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, user_id INTEGER NOT NULL, added INTEGER NOT NULL, scraped INTEGER DEFAULT NULL, locales CLOB NOT NULL --(DC2Type:simple_array)
, sensitive BOOLEAN NOT NULL, approved BOOLEAN NOT NULL, md5file VARCHAR(32) NOT NULL, keywords CLOB DEFAULT NULL --(DC2Type:simple_array)
, seeders INTEGER DEFAULT NULL, peers INTEGER DEFAULT NULL, leechers INTEGER DEFAULT NULL)');
$this->addSql('INSERT INTO torrent (id, user_id, added, scraped, locales, sensitive, approved, md5file, keywords, seeders, peers, leechers) SELECT id, user_id, added, scraped, locales, sensitive, approved, md5file, keywords, seeders, peers, leechers FROM __temp__torrent');
$this->addSql('DROP TABLE __temp__torrent');
}
}

View file

@ -0,0 +1,35 @@
<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20231029184600 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE TABLE torrent_poster (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, torrent_id INTEGER NOT NULL, user_id INTEGER NOT NULL, added INTEGER NOT NULL, approved BOOLEAN NOT NULL, md5file VARCHAR(32) NOT NULL)');
$this->addSql('ALTER TABLE user ADD COLUMN posters BOOLEAN NOT NULL DEFAULT 1');
$this->addSql('ALTER TABLE torrent ADD COLUMN torrent_poster_id BOOLEAN NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP TABLE torrent_poster');
$this->addSql('ALTER TABLE user DROP COLUMN posters');
$this->addSql('ALTER TABLE torrent DROP COLUMN torrent_poster_id');
}
}

View file

@ -0,0 +1,31 @@
<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20231030225418 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE torrent_poster ADD COLUMN position BOOLEAN NOT NULL DEFAULT "center"');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE torrent_poster DROP COLUMN position');
}
}

View file

@ -0,0 +1,37 @@
<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20231103235504 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE TABLE torrent_categories (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, torrent_id INTEGER NOT NULL, user_id INTEGER NOT NULL, added INTEGER NOT NULL, value CLOB NOT NULL --(DC2Type:simple_array)
, approved BOOLEAN NOT NULL)');
$this->addSql('ALTER TABLE user ADD COLUMN categories CLOB DEFAULT "other"');
$this->addSql('ALTER TABLE torrent ADD COLUMN categories CLOB DEFAULT "other"');
$this->addSql('UPDATE user SET categories = "movie,series,tv,animation,music,game,audiobook,podcast,book,archive,picture,software,other"');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP TABLE torrent_categories');
$this->addSql('ALTER TABLE user DROP COLUMN categories');
$this->addSql('ALTER TABLE torrent DROP COLUMN categories');
}
}

View file

@ -15,6 +15,18 @@
float: left;
}
.word-break {
word-break: break-word;
}
.overflow-auto {
overflow: auto;
}
.float-left {
float: left;
}
.float-right {
float: right;
}
@ -148,10 +160,6 @@ a.button-green:hover {
vertical-align: middle;
}
.top--2-px {
top: -2px;
}
.top-2-px {
top: 2px;
}
@ -189,21 +197,36 @@ a.button-green:hover {
}
.border-color-default {
border: 1px #5d627d solid;
border: 1px rgba(93, 98, 125, .6) solid;
}
.border-bottom-default {
border-bottom: 1px #5d627d solid;
border-bottom: 1px rgba(93, 98, 125, .6) solid;
}
.border-top-default {
border-top: 1px #5d627d solid;
border-top: 1px rgba(93, 98, 125, .6) solid;
}
.border-bottom-dashed {
border-bottom: 1px rgba(93, 98, 125, .6) dashed;
}
.border-top-dashed {
border-top: 1px rgba(93, 98, 125, .6) dashed;
}
.border-width-2-px {
border-width: 2px;
}
.background-poster {
background-position: center;
background-repeat: no-repeat;
background-size: cover;
background-blend-mode: soft-light;
}
.background-color-night {
background-color: #34384f;
}
@ -359,6 +382,10 @@ a:visited.background-color-hover-night-light:hover {
padding-bottom: 24px;
}
.margin-t-4-px {
margin-top: 4px;
}
.margin-l-4-px {
margin-left: 4px;
}

View file

@ -560,6 +560,7 @@ class ActivityController extends AbstractController
'id' => $torrent->getId(),
'sensitive' => $torrent->isSensitive(),
'approved' => $torrent->isApproved(),
'status' => $torrent->isStatus(),
'name' => $torrentService->readTorrentFileByTorrentId(
$torrent->getId()
)->getName()
@ -606,6 +607,7 @@ class ActivityController extends AbstractController
'id' => $torrent->getId(),
'sensitive' => $torrent->isSensitive(),
'approved' => $torrent->isApproved(),
'status' => $torrent->isStatus(),
'name' => $torrentService->readTorrentFileByTorrentId(
$torrent->getId()
)->getName()
@ -652,6 +654,7 @@ class ActivityController extends AbstractController
'id' => $torrent->getId(),
'sensitive' => $torrent->isSensitive(),
'approved' => $torrent->isApproved(),
'status' => $torrent->isStatus(),
'name' => $torrentService->readTorrentFileByTorrentId(
$torrent->getId()
)->getName()
@ -699,6 +702,7 @@ class ActivityController extends AbstractController
'id' => $torrent->getId(),
'sensitive' => $torrent->isSensitive(),
'approved' => $torrent->isApproved(),
'status' => $torrent->isStatus(),
'name' => $torrentService->readTorrentFileByTorrentId(
$torrent->getId()
)->getName()
@ -745,6 +749,7 @@ class ActivityController extends AbstractController
'id' => $torrent->getId(),
'sensitive' => $torrent->isSensitive(),
'approved' => $torrent->isApproved(),
'status' => $torrent->isStatus(),
'name' => $torrentService->readTorrentFileByTorrentId(
$torrent->getId()
)->getName()
@ -783,6 +788,102 @@ class ActivityController extends AbstractController
'id' => $torrent->getId(),
'sensitive' => $torrent->isSensitive(),
'approved' => $torrent->isApproved(),
'status' => $torrent->isStatus(),
'name' => $torrentService->readTorrentFileByTorrentId(
$torrent->getId()
)->getName()
],
'session' =>
[
'user' =>
[
'id' => $user->getId(),
'sensitive' => $user->isSensitive(),
'moderator' => $user->isModerator(),
'owner' => $user->getId() === $torrent->getUserId(),
]
]
]
);
break;
// Torrent Status
case $activity::EVENT_TORRENT_STATUS_ADD:
// Init torrent
if (!$torrent = $torrentService->getTorrent($activity->getTorrentId()))
{
throw $this->createNotFoundException();
}
return $this->render(
'default/activity/event/torrent/status/add' . $extension,
[
'id' => $activity->getId(),
'added' => $activity->getAdded(),
'user' =>
[
'id' => $activity->getUserId(),
'identicon' => $userService->identicon(
$userService->getUser(
$activity->getUserId()
)->getAddress()
)
],
'torrent' =>
[
'id' => $torrent->getId(),
'sensitive' => $torrent->isSensitive(),
'approved' => $torrent->isApproved(),
'status' => $torrent->isStatus(),
'name' => $torrentService->readTorrentFileByTorrentId(
$torrent->getId()
)->getName()
],
'session' =>
[
'user' =>
[
'id' => $user->getId(),
'sensitive' => $user->isSensitive(),
'moderator' => $user->isModerator(),
'owner' => $user->getId() === $torrent->getUserId(),
]
]
]
);
break;
case $activity::EVENT_TORRENT_STATUS_DELETE:
// Init torrent
if (!$torrent = $torrentService->getTorrent($activity->getTorrentId()))
{
throw $this->createNotFoundException();
}
return $this->render(
'default/activity/event/torrent/status/delete' . $extension,
[
'id' => $activity->getId(),
'added' => $activity->getAdded(),
'user' =>
[
'id' => $activity->getUserId(),
'identicon' => $userService->identicon(
$userService->getUser(
$activity->getUserId()
)->getAddress()
)
],
'torrent' =>
[
'id' => $torrent->getId(),
'sensitive' => $torrent->isSensitive(),
'approved' => $torrent->isApproved(),
'status' => $torrent->isStatus(),
'name' => $torrentService->readTorrentFileByTorrentId(
$torrent->getId()
)->getName()
@ -830,6 +931,7 @@ class ActivityController extends AbstractController
'id' => $torrent->getId(),
'sensitive' => $torrent->isSensitive(),
'approved' => $torrent->isApproved(),
'status' => $torrent->isStatus(),
'name' => $torrentService->readTorrentFileByTorrentId(
$torrent->getId()
)->getName(),
@ -882,6 +984,7 @@ class ActivityController extends AbstractController
'id' => $torrent->getId(),
'sensitive' => $torrent->isSensitive(),
'approved' => $torrent->isApproved(),
'status' => $torrent->isStatus(),
'name' => $torrentService->readTorrentFileByTorrentId(
$torrent->getId()
)->getName(),
@ -934,6 +1037,7 @@ class ActivityController extends AbstractController
'id' => $torrent->getId(),
'sensitive' => $torrent->isSensitive(),
'approved' => $torrent->isApproved(),
'status' => $torrent->isStatus(),
'name' => $torrentService->readTorrentFileByTorrentId(
$torrent->getId()
)->getName(),
@ -986,6 +1090,7 @@ class ActivityController extends AbstractController
'id' => $torrent->getId(),
'sensitive' => $torrent->isSensitive(),
'approved' => $torrent->isApproved(),
'status' => $torrent->isStatus(),
'name' => $torrentService->readTorrentFileByTorrentId(
$torrent->getId()
)->getName(),
@ -1011,6 +1116,219 @@ class ActivityController extends AbstractController
break;
/// Torrent Categories
case $activity::EVENT_TORRENT_CATEGORIES_ADD:
// Init torrent
if (!$torrent = $torrentService->getTorrent($activity->getTorrentId()))
{
throw $this->createNotFoundException();
}
return $this->render(
'default/activity/event/torrent/categories/add' . $extension,
[
'id' => $activity->getId(),
'added' => $activity->getAdded(),
'user' =>
[
'id' => $activity->getUserId(),
'identicon' => $userService->identicon(
$userService->getUser(
$activity->getUserId()
)->getAddress()
)
],
'torrent' =>
[
'id' => $torrent->getId(),
'sensitive' => $torrent->isSensitive(),
'approved' => $torrent->isApproved(),
'status' => $torrent->isStatus(),
'name' => $torrentService->readTorrentFileByTorrentId(
$torrent->getId()
)->getName(),
'categories' => [
'id' => $activity->getData()['torrentCategoriesId'],
'exist' => $torrentService->getTorrentCategories(
$activity->getData()['torrentCategoriesId'] // could be deleted by moderator, remove links
)
]
],
'session' =>
[
'user' =>
[
'id' => $user->getId(),
'sensitive' => $user->isSensitive(),
'moderator' => $user->isModerator(),
'owner' => $user->getId() === $torrent->getUserId(),
]
]
]
);
break;
case $activity::EVENT_TORRENT_CATEGORIES_DELETE:
// Init torrent
if (!$torrent = $torrentService->getTorrent($activity->getTorrentId()))
{
throw $this->createNotFoundException();
}
return $this->render(
'default/activity/event/torrent/categories/delete' . $extension,
[
'id' => $activity->getId(),
'added' => $activity->getAdded(),
'user' =>
[
'id' => $activity->getUserId(),
'identicon' => $userService->identicon(
$userService->getUser(
$activity->getUserId()
)->getAddress()
)
],
'torrent' =>
[
'id' => $torrent->getId(),
'sensitive' => $torrent->isSensitive(),
'approved' => $torrent->isApproved(),
'status' => $torrent->isStatus(),
'name' => $torrentService->readTorrentFileByTorrentId(
$torrent->getId()
)->getName(),
'categories' => [
'id' => $activity->getData()['torrentCategoriesId'],
'exist' => $torrentService->getTorrentCategories(
$activity->getData()['torrentCategoriesId'] // could be deleted by moderator, remove links
)
]
],
'session' =>
[
'user' =>
[
'id' => $user->getId(),
'sensitive' => $user->isSensitive(),
'moderator' => $user->isModerator(),
'owner' => $user->getId() === $torrent->getUserId(),
]
]
]
);
break;
case $activity::EVENT_TORRENT_CATEGORIES_APPROVE_ADD:
// Init torrent
if (!$torrent = $torrentService->getTorrent($activity->getTorrentId()))
{
throw $this->createNotFoundException();
}
return $this->render(
'default/activity/event/torrent/categories/approve/add' . $extension,
[
'id' => $activity->getId(),
'added' => $activity->getAdded(),
'user' =>
[
'id' => $activity->getUserId(),
'identicon' => $userService->identicon(
$userService->getUser(
$activity->getUserId()
)->getAddress()
)
],
'torrent' =>
[
'id' => $torrent->getId(),
'sensitive' => $torrent->isSensitive(),
'approved' => $torrent->isApproved(),
'status' => $torrent->isStatus(),
'name' => $torrentService->readTorrentFileByTorrentId(
$torrent->getId()
)->getName(),
'categories' => [
'id' => $activity->getData()['torrentCategoriesId'],
'exist' => $torrentService->getTorrentCategories(
$activity->getData()['torrentCategoriesId'] // could be deleted by moderator, remove links
)
]
],
'session' =>
[
'user' =>
[
'id' => $user->getId(),
'sensitive' => $user->isSensitive(),
'moderator' => $user->isModerator(),
'owner' => $user->getId() === $torrent->getUserId(),
]
]
]
);
break;
case $activity::EVENT_TORRENT_CATEGORIES_APPROVE_DELETE:
// Init torrent
if (!$torrent = $torrentService->getTorrent($activity->getTorrentId()))
{
throw $this->createNotFoundException();
}
return $this->render(
'default/activity/event/torrent/categories/approve/delete' . $extension,
[
'id' => $activity->getId(),
'added' => $activity->getAdded(),
'user' =>
[
'id' => $activity->getUserId(),
'identicon' => $userService->identicon(
$userService->getUser(
$activity->getUserId()
)->getAddress()
)
],
'torrent' =>
[
'id' => $torrent->getId(),
'sensitive' => $torrent->isSensitive(),
'approved' => $torrent->isApproved(),
'status' => $torrent->isStatus(),
'name' => $torrentService->readTorrentFileByTorrentId(
$torrent->getId()
)->getName(),
'categories' => [
'id' => $activity->getData()['torrentCategoriesId'],
'exist' => $torrentService->getTorrentCategories(
$activity->getData()['torrentCategoriesId'] // could be deleted by moderator, remove links
)
]
],
'session' =>
[
'user' =>
[
'id' => $user->getId(),
'sensitive' => $user->isSensitive(),
'moderator' => $user->isModerator(),
'owner' => $user->getId() === $torrent->getUserId(),
]
]
]
);
break;
/// Torrent Sensitive
case $activity::EVENT_TORRENT_SENSITIVE_ADD:
@ -1039,6 +1357,7 @@ class ActivityController extends AbstractController
'id' => $torrent->getId(),
'sensitive' => $torrent->isSensitive(),
'approved' => $torrent->isApproved(),
'status' => $torrent->isStatus(),
'name' => $torrentService->readTorrentFileByTorrentId(
$torrent->getId()
)->getName(),
@ -1091,6 +1410,7 @@ class ActivityController extends AbstractController
'id' => $torrent->getId(),
'sensitive' => $torrent->isSensitive(),
'approved' => $torrent->isApproved(),
'status' => $torrent->isStatus(),
'name' => $torrentService->readTorrentFileByTorrentId(
$torrent->getId()
)->getName(),
@ -1143,6 +1463,7 @@ class ActivityController extends AbstractController
'id' => $torrent->getId(),
'sensitive' => $torrent->isSensitive(),
'approved' => $torrent->isApproved(),
'status' => $torrent->isStatus(),
'name' => $torrentService->readTorrentFileByTorrentId(
$torrent->getId()
)->getName(),
@ -1195,6 +1516,7 @@ class ActivityController extends AbstractController
'id' => $torrent->getId(),
'sensitive' => $torrent->isSensitive(),
'approved' => $torrent->isApproved(),
'status' => $torrent->isStatus(),
'name' => $torrentService->readTorrentFileByTorrentId(
$torrent->getId()
)->getName(),
@ -1220,6 +1542,219 @@ class ActivityController extends AbstractController
break;
/// Torrent Poster
case $activity::EVENT_TORRENT_POSTER_ADD:
// Init torrent
if (!$torrent = $torrentService->getTorrent($activity->getTorrentId()))
{
throw $this->createNotFoundException();
}
return $this->render(
'default/activity/event/torrent/poster/add' . $extension,
[
'id' => $activity->getId(),
'added' => $activity->getAdded(),
'user' =>
[
'id' => $activity->getUserId(),
'identicon' => $userService->identicon(
$userService->getUser(
$activity->getUserId()
)->getAddress()
)
],
'torrent' =>
[
'id' => $torrent->getId(),
'sensitive' => $torrent->isSensitive(),
'approved' => $torrent->isApproved(),
'status' => $torrent->isStatus(),
'name' => $torrentService->readTorrentFileByTorrentId(
$torrent->getId()
)->getName(),
'poster' => [
'id' => $activity->getData()['torrentPosterId'],
'exist' => $torrentService->getTorrentPoster(
$activity->getData()['torrentPosterId'] // could be deleted by moderator, remove links
)
]
],
'session' =>
[
'user' =>
[
'id' => $user->getId(),
'sensitive' => $user->isSensitive(),
'moderator' => $user->isModerator(),
'owner' => $user->getId() === $torrent->getUserId(),
]
]
]
);
break;
case $activity::EVENT_TORRENT_POSTER_DELETE:
// Init torrent
if (!$torrent = $torrentService->getTorrent($activity->getTorrentId()))
{
throw $this->createNotFoundException();
}
return $this->render(
'default/activity/event/torrent/poster/delete' . $extension,
[
'id' => $activity->getId(),
'added' => $activity->getAdded(),
'user' =>
[
'id' => $activity->getUserId(),
'identicon' => $userService->identicon(
$userService->getUser(
$activity->getUserId()
)->getAddress()
)
],
'torrent' =>
[
'id' => $torrent->getId(),
'sensitive' => $torrent->isSensitive(),
'approved' => $torrent->isApproved(),
'status' => $torrent->isStatus(),
'name' => $torrentService->readTorrentFileByTorrentId(
$torrent->getId()
)->getName(),
'poster' => [
'id' => $activity->getData()['torrentPosterId'],
'exist' => $torrentService->getTorrentPoster(
$activity->getData()['torrentPosterId'] // could be deleted by moderator, remove links
)
]
],
'session' =>
[
'user' =>
[
'id' => $user->getId(),
'sensitive' => $user->isSensitive(),
'moderator' => $user->isModerator(),
'owner' => $user->getId() === $torrent->getUserId(),
]
]
]
);
break;
case $activity::EVENT_TORRENT_POSTER_APPROVE_ADD:
// Init torrent
if (!$torrent = $torrentService->getTorrent($activity->getTorrentId()))
{
throw $this->createNotFoundException();
}
return $this->render(
'default/activity/event/torrent/poster/approve/add' . $extension,
[
'id' => $activity->getId(),
'added' => $activity->getAdded(),
'user' =>
[
'id' => $activity->getUserId(),
'identicon' => $userService->identicon(
$userService->getUser(
$activity->getUserId()
)->getAddress()
)
],
'torrent' =>
[
'id' => $torrent->getId(),
'sensitive' => $torrent->isSensitive(),
'approved' => $torrent->isApproved(),
'status' => $torrent->isStatus(),
'name' => $torrentService->readTorrentFileByTorrentId(
$torrent->getId()
)->getName(),
'poster' => [
'id' => $activity->getData()['torrentPosterId'],
'exist' => $torrentService->getTorrentPoster(
$activity->getData()['torrentPosterId'] // could be deleted by moderator, remove links
)
]
],
'session' =>
[
'user' =>
[
'id' => $user->getId(),
'sensitive' => $user->isSensitive(),
'moderator' => $user->isModerator(),
'owner' => $user->getId() === $torrent->getUserId(),
]
]
]
);
break;
case $activity::EVENT_TORRENT_POSTER_APPROVE_DELETE:
// Init torrent
if (!$torrent = $torrentService->getTorrent($activity->getTorrentId()))
{
throw $this->createNotFoundException();
}
return $this->render(
'default/activity/event/torrent/poster/approve/delete' . $extension,
[
'id' => $activity->getId(),
'added' => $activity->getAdded(),
'user' =>
[
'id' => $activity->getUserId(),
'identicon' => $userService->identicon(
$userService->getUser(
$activity->getUserId()
)->getAddress()
)
],
'torrent' =>
[
'id' => $torrent->getId(),
'sensitive' => $torrent->isSensitive(),
'approved' => $torrent->isApproved(),
'status' => $torrent->isStatus(),
'name' => $torrentService->readTorrentFileByTorrentId(
$torrent->getId()
)->getName(),
'poster' => [
'id' => $activity->getData()['torrentPosterId'],
'exist' => $torrentService->getTorrentPoster(
$activity->getData()['torrentPosterId'] // could be deleted by moderator, remove links
)
]
],
'session' =>
[
'user' =>
[
'id' => $user->getId(),
'sensitive' => $user->isSensitive(),
'moderator' => $user->isModerator(),
'owner' => $user->getId() === $torrent->getUserId(),
]
]
]
);
break;
/// Torrent star
case $activity::EVENT_TORRENT_STAR_ADD:
@ -1248,6 +1783,7 @@ class ActivityController extends AbstractController
'id' => $torrent->getId(),
'sensitive' => $torrent->isSensitive(),
'approved' => $torrent->isApproved(),
'status' => $torrent->isStatus(),
'name' => $torrentService->readTorrentFileByTorrentId(
$torrent->getId()
)->getName()
@ -1294,6 +1830,7 @@ class ActivityController extends AbstractController
'id' => $torrent->getId(),
'sensitive' => $torrent->isSensitive(),
'approved' => $torrent->isApproved(),
'status' => $torrent->isStatus(),
'name' => $torrentService->readTorrentFileByTorrentId(
$torrent->getId()
)->getName()
@ -1352,6 +1889,7 @@ class ActivityController extends AbstractController
$this->getParameter('app.theme'),
$this->getParameter('app.sensitive'),
$this->getParameter('app.yggdrasil'),
$this->getParameter('app.posters'),
$this->getParameter('app.approved')
);

View file

@ -9,20 +9,156 @@ use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\Request;
use App\Service\UserService;
use App\Service\TorrentService;
use App\Service\ActivityService;
class SearchController extends AbstractController
{
public function module(
?string $query,
?string $type
Request $request,
UserService $userService,
TorrentService $torrentService,
ActivityService $activityService
): Response
{
// Defaults
$locales = [];
$categories = [];
$sensitive = [];
// Request
$query = $request->get('query') ? urldecode($request->get('query')) : '';
$filter = $request->get('filter') ? true : false;
// Extended search
if ($filter)
{
// Init user
$user = $this->initUser(
$request,
$userService,
$activityService
);
// Keywords
$keywords = explode(' ', $query);
// Locales
foreach (explode('|', $this->getParameter('app.locales')) as $locale)
{
if ($request->get('locales'))
{
$checked = in_array($locale, (array) $request->get('locales'));
}
else
{
$checked = in_array($locale, $user->getLocales());
}
$locales[] =
[
'value' => $locale,
'checked' => $checked,
'total' => $torrentService->findTorrentsTotal(
0,
$keywords,
[$locale],
$request->get('categories') ? $request->get('categories') : $user->getCategories(),
$request->get('sensitive') ? null : false,
!$user->isModerator() ? true : null,
!$user->isModerator() ? true : null,
)
];
}
// Categories
foreach (explode('|', $this->getParameter('app.categories')) as $category)
{
if ($request->get('categories'))
{
$checked = in_array($category, (array) $request->get('categories'));
}
else
{
$checked = in_array($category, $user->getCategories());
}
$categories[] =
[
'value' => $category,
'checked' => $checked,
'total' => $torrentService->findTorrentsTotal(
0,
$keywords,
$request->get('locales') ? $request->get('locales') : $user->getLocales(),
[$category],
$request->get('sensitive') ? null : false,
!$user->isModerator() ? true : null,
!$user->isModerator() ? true : null,
)
];
}
// Sensitive
$sensitive =
[
'checked' => $request->get('sensitive'),
'total' => $torrentService->findTorrentsTotal(
0,
$keywords,
$request->get('locales') ? $request->get('locales') : $user->getLocales(),
$request->get('categories') ? $request->get('categories') : $user->getCategories(),
true,
!$user->isModerator() ? true : null,
!$user->isModerator() ? true : null,
)
];
}
return $this->render(
'default/search/module.html.twig',
[
'query' => $query ? urldecode($query) : '',
'query' => $query,
'filter' => $filter,
'sensitive' => $sensitive,
'locales' => $locales,
'categories' => $categories,
]
);
}
private function initUser(
Request $request,
UserService $userService,
ActivityService $activityService
): ?\App\Entity\User
{
// Init user
if (!$user = $userService->findUserByAddress($request->getClientIp()))
{
$user = $userService->addUser(
$request->getClientIp(),
time(),
$this->getParameter('app.locale'),
explode('|', $this->getParameter('app.locales')),
$activityService->getEventCodes(),
$this->getParameter('app.theme'),
$this->getParameter('app.sensitive'),
$this->getParameter('app.yggdrasil'),
$this->getParameter('app.posters'),
$this->getParameter('app.approved')
);
// Add user join event
$activityService->addEventUserAdd(
$user->getId(),
time()
);
}
return $user;
}
}

File diff suppressed because it is too large Load diff

View file

@ -85,6 +85,23 @@ class UserController extends AbstractController
);
}
// Update categories
if ($request->get('categories'))
{
$categories = [];
foreach ((array) $request->get('categories') as $category)
{
if (in_array($category, explode('|', $this->getParameter('app.categories'))))
{
$categories[] = $category;
}
}
$user->setCategories(
$categories
);
}
// Update theme
if (in_array($request->get('theme'), explode('|', $this->getParameter('app.themes'))))
{
@ -117,6 +134,11 @@ class UserController extends AbstractController
$request->get('yggdrasil') === 'true'
);
// Update posters
$user->setPosters(
$request->get('posters') === 'true'
);
// Save changes to DB
$userService->save($user);
@ -134,18 +156,21 @@ class UserController extends AbstractController
'default/user/settings.html.twig',
[
'user' => [
'id' => $user->getId(),
'sensitive' => $user->isSensitive(),
'yggdrasil' => $user->isYggdrasil(),
'locale' => $user->getLocale(),
'locales' => $user->getLocales(),
'events' => $user->getEvents(),
'theme' => $user->getTheme(),
'added' => $user->getAdded()
'id' => $user->getId(),
'sensitive' => $user->isSensitive(),
'yggdrasil' => $user->isYggdrasil(),
'posters' => $user->isPosters(),
'locale' => $user->getLocale(),
'locales' => $user->getLocales(),
'categories' => $user->getCategories(),
'events' => $user->getEvents(),
'theme' => $user->getTheme(),
'added' => $user->getAdded()
],
'locales' => explode('|', $this->getParameter('app.locales')),
'themes' => explode('|', $this->getParameter('app.themes')),
'events' => $activityService->getEventsTree()
'locales' => explode('|', $this->getParameter('app.locales')),
'categories' => explode('|', $this->getParameter('app.categories')),
'themes' => explode('|', $this->getParameter('app.themes')),
'events' => $activityService->getEventsTree()
]
);
}
@ -211,19 +236,21 @@ class UserController extends AbstractController
'moderator' => $user->isModerator()
],
'user' => [
'id' => $userTarget->getId(),
'address' => $userTarget->getAddress(),
'moderator' => $userTarget->isModerator(),
'approved' => $userTarget->isApproved(),
'status' => $userTarget->isStatus(),
'sensitive' => $userTarget->isSensitive(),
'yggdrasil' => $userTarget->isYggdrasil(),
'locale' => $userTarget->getLocale(),
'locales' => $userTarget->getLocales(),
'events' => $userTarget->getEvents(),
'theme' => $userTarget->getTheme(),
'added' => $userTarget->getAdded(),
'identicon' => $userService->identicon(
'id' => $userTarget->getId(),
'address' => $userTarget->getAddress(),
'moderator' => $userTarget->isModerator(),
'approved' => $userTarget->isApproved(),
'status' => $userTarget->isStatus(),
'posters' => $userTarget->isPosters(),
'sensitive' => $userTarget->isSensitive(),
'yggdrasil' => $userTarget->isYggdrasil(),
'locale' => $userTarget->getLocale(),
'locales' => $userTarget->getLocales(),
'categories' => $user->getCategories(),
'events' => $userTarget->getEvents(),
'theme' => $userTarget->getTheme(),
'added' => $userTarget->getAdded(),
'identicon' => $userService->identicon(
$userTarget->getAddress(),
48
),
@ -291,6 +318,12 @@ class UserController extends AbstractController
);
}
// Block crawler requests
if (in_array($request->getClientIp(), explode('|', $this->getParameter('app.crawlers'))))
{
throw $this->createNotFoundException();
}
// Init target user
if (!$userTarget = $userService->getUser($request->get('userId')))
{
@ -538,11 +571,21 @@ class UserController extends AbstractController
true
);
$torrentService->setTorrentCategoriesApprovedByUserId(
$userTarget->getId(),
true
);
$torrentService->setTorrentSensitivesApprovedByUserId(
$userTarget->getId(),
true
);
$torrentService->setTorrentPostersApprovedByUserId(
$userTarget->getId(),
true
);
// @TODO make event for each item
}
@ -613,6 +656,7 @@ class UserController extends AbstractController
$this->getParameter('app.theme'),
$this->getParameter('app.sensitive'),
$this->getParameter('app.yggdrasil'),
$this->getParameter('app.posters'),
$this->getParameter('app.approved')
);

View file

@ -20,44 +20,57 @@ class Activity
// Event codes
/// User
public const EVENT_USER_ADD = 1000;
public const EVENT_USER_ADD = 1000;
public const EVENT_USER_APPROVE_ADD = 1200;
public const EVENT_USER_APPROVE_DELETE = 1201;
public const EVENT_USER_APPROVE_ADD = 1200;
public const EVENT_USER_APPROVE_DELETE = 1201;
public const EVENT_USER_MODERATOR_ADD = 1300;
public const EVENT_USER_MODERATOR_DELETE = 1301;
public const EVENT_USER_MODERATOR_ADD = 1300;
public const EVENT_USER_MODERATOR_DELETE = 1301;
public const EVENT_USER_STATUS_ADD = 1400;
public const EVENT_USER_STATUS_DELETE = 1401;
public const EVENT_USER_STATUS_ADD = 1400;
public const EVENT_USER_STATUS_DELETE = 1401;
public const EVENT_USER_STAR_ADD = 1500;
public const EVENT_USER_STAR_DELETE = 1501;
public const EVENT_USER_STAR_ADD = 1500;
public const EVENT_USER_STAR_DELETE = 1501;
/// Torrent
public const EVENT_TORRENT_ADD = 2000;
public const EVENT_TORRENT_ADD = 2000;
public const EVENT_TORRENT_APPROVE_ADD = 1100;
public const EVENT_TORRENT_APPROVE_DELETE = 1101;
public const EVENT_TORRENT_APPROVE_ADD = 1100;
public const EVENT_TORRENT_APPROVE_DELETE = 1101;
public const EVENT_TORRENT_LOCALES_ADD = 2200;
public const EVENT_TORRENT_LOCALES_DELETE = 2201;
public const EVENT_TORRENT_LOCALES_APPROVE_ADD = 2210;
public const EVENT_TORRENT_LOCALES_APPROVE_DELETE = 2211;
public const EVENT_TORRENT_LOCALES_ADD = 2200;
public const EVENT_TORRENT_LOCALES_DELETE = 2201;
public const EVENT_TORRENT_LOCALES_APPROVE_ADD = 2210;
public const EVENT_TORRENT_LOCALES_APPROVE_DELETE = 2211;
public const EVENT_TORRENT_SENSITIVE_ADD = 2300;
public const EVENT_TORRENT_SENSITIVE_DELETE = 2301;
public const EVENT_TORRENT_SENSITIVE_APPROVE_ADD = 2310;
public const EVENT_TORRENT_SENSITIVE_APPROVE_DELETE = 2311;
public const EVENT_TORRENT_SENSITIVE_ADD = 2300;
public const EVENT_TORRENT_SENSITIVE_DELETE = 2301;
public const EVENT_TORRENT_SENSITIVE_APPROVE_ADD = 2310;
public const EVENT_TORRENT_SENSITIVE_APPROVE_DELETE = 2311;
public const EVENT_TORRENT_STAR_ADD = 2400;
public const EVENT_TORRENT_STAR_DELETE = 2401;
public const EVENT_TORRENT_STAR_ADD = 2400;
public const EVENT_TORRENT_STAR_DELETE = 2401;
public const EVENT_TORRENT_DOWNLOAD_FILE_ADD = 2500;
public const EVENT_TORRENT_DOWNLOAD_FILE_ADD = 2500;
public const EVENT_TORRENT_DOWNLOAD_MAGNET_ADD = 2600;
public const EVENT_TORRENT_DOWNLOAD_MAGNET_ADD = 2600;
public const EVENT_TORRENT_WANTED_ADD = 2700;
public const EVENT_TORRENT_WANTED_ADD = 2700;
public const EVENT_TORRENT_STATUS_ADD = 1800;
public const EVENT_TORRENT_STATUS_DELETE = 1801;
public const EVENT_TORRENT_POSTER_ADD = 2800;
public const EVENT_TORRENT_POSTER_DELETE = 2801;
public const EVENT_TORRENT_POSTER_APPROVE_ADD = 2810;
public const EVENT_TORRENT_POSTER_APPROVE_DELETE = 2811;
public const EVENT_TORRENT_CATEGORIES_ADD = 2900;
public const EVENT_TORRENT_CATEGORIES_DELETE = 2901;
public const EVENT_TORRENT_CATEGORIES_APPROVE_ADD = 2910;
public const EVENT_TORRENT_CATEGORIES_APPROVE_DELETE = 2911;
// ...

View file

@ -33,6 +33,9 @@ class Torrent
#[ORM\Column]
private ?bool $approved = null;
#[ORM\Column]
private ?bool $status = null;
#[ORM\Column(length: 32)]
private ?string $md5file = null;
@ -48,6 +51,12 @@ class Torrent
#[ORM\Column(nullable: true)]
private ?int $leechers = null;
#[ORM\Column(nullable: true)]
private ?int $torrentPosterId = null;
#[ORM\Column(type: Types::SIMPLE_ARRAY)]
private ?array $categories = null;
public function getId(): ?int
{
return $this->id;
@ -156,6 +165,18 @@ class Torrent
return $this;
}
public function isStatus(): ?bool
{
return $this->status;
}
public function setStatus(bool $status): static
{
$this->status = $status;
return $this;
}
public function getSeeders(): ?int
{
return $this->seeders;
@ -191,4 +212,28 @@ class Torrent
return $this;
}
public function getTorrentPosterId(): ?int
{
return $this->torrentPosterId;
}
public function setTorrentPosterId(?int $torrentPosterId): static
{
$this->torrentPosterId = $torrentPosterId;
return $this;
}
public function getCategories(): ?array
{
return $this->categories;
}
public function setCategories(?array $categories): static
{
$this->categories = $categories;
return $this;
}
}

View file

@ -0,0 +1,103 @@
<?php
namespace App\Entity;
use App\Repository\TorrentCategoriesRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: TorrentCategoriesRepository::class)]
class TorrentCategories
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column]
private ?int $torrentId = null;
#[ORM\Column]
private ?int $userId = null;
#[ORM\Column]
private ?int $added = null;
#[ORM\Column(type: Types::SIMPLE_ARRAY)]
private array $value = [];
#[ORM\Column]
private ?bool $approved = null;
public function getId(): ?int
{
return $this->id;
}
public function setId(string $id): static
{
$this->id = $id;
return $this;
}
public function getTorrentId(): ?int
{
return $this->torrentId;
}
public function setTorrentId(int $torrentId): static
{
$this->torrentId = $torrentId;
return $this;
}
public function getUserId(): ?int
{
return $this->userId;
}
public function setUserId(int $userId): static
{
$this->userId = $userId;
return $this;
}
public function getAdded(): ?int
{
return $this->added;
}
public function setAdded(int $added): static
{
$this->added = $added;
return $this;
}
public function getValue(): array
{
return $this->value;
}
public function setValue(array $value): static
{
$this->value = $value;
return $this;
}
public function isApproved(): ?bool
{
return $this->approved;
}
public function setApproved(bool $approved): static
{
$this->approved = $approved;
return $this;
}
}

View file

@ -0,0 +1,117 @@
<?php
namespace App\Entity;
use App\Repository\TorrentPosterRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: TorrentPosterRepository::class)]
class TorrentPoster
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column]
private ?int $torrentId = null;
#[ORM\Column]
private ?int $userId = null;
#[ORM\Column]
private ?int $added = null;
#[ORM\Column]
private ?bool $approved = null;
#[ORM\Column(length: 32)]
private ?string $md5file = null;
#[ORM\Column(length: 255)]
private ?string $position = null;
public function getId(): ?int
{
return $this->id;
}
public function setId(string $id): static
{
$this->id = $id;
return $this;
}
public function getTorrentId(): ?int
{
return $this->torrentId;
}
public function setTorrentId(int $torrentId): static
{
$this->torrentId = $torrentId;
return $this;
}
public function getUserId(): ?int
{
return $this->userId;
}
public function setUserId(int $userId): static
{
$this->userId = $userId;
return $this;
}
public function getAdded(): ?int
{
return $this->added;
}
public function setAdded(int $added): static
{
$this->added = $added;
return $this;
}
public function isApproved(): ?bool
{
return $this->approved;
}
public function setApproved(bool $approved): static
{
$this->approved = $approved;
return $this;
}
public function getMd5file(): ?string
{
return $this->md5file;
}
public function setMd5file(string $md5file): static
{
$this->md5file = $md5file;
return $this;
}
public function getPosition(): ?string
{
return $this->position;
}
public function setPosition(string $position): static
{
$this->position = $position;
return $this;
}
}

View file

@ -47,6 +47,12 @@ class User
#[ORM\Column]
private ?bool $yggdrasil = null;
#[ORM\Column]
private ?bool $posters = null;
#[ORM\Column(type: Types::SIMPLE_ARRAY)]
private ?array $categories = null;
public function getId(): ?int
{
return $this->id;
@ -190,4 +196,28 @@ class User
return $this;
}
public function isPosters(): ?bool
{
return $this->posters;
}
public function setPosters(bool $posters): static
{
$this->posters = $posters;
return $this;
}
public function getCategories(): ?array
{
return $this->categories;
}
public function setCategories(?array $categories): static
{
$this->categories = $categories;
return $this;
}
}

View file

@ -0,0 +1,23 @@
<?php
namespace App\Repository;
use App\Entity\TorrentCategories;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;
/**
* @extends ServiceEntityRepository<TorrentCategories>
*
* @method TorrentCategories|null find($id, $lockMode = null, $lockVersion = null)
* @method TorrentCategories|null findOneBy(array $criteria, array $orderBy = null)
* @method TorrentCategories[] findAll()
* @method TorrentCategories[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
*/
class TorrentCategoriesRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
{
parent::__construct($registry, TorrentCategories::class);
}
}

View file

@ -0,0 +1,23 @@
<?php
namespace App\Repository;
use App\Entity\TorrentPoster;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;
/**
* @extends ServiceEntityRepository<TorrentPoster>
*
* @method TorrentPoster|null find($id, $lockMode = null, $lockVersion = null)
* @method TorrentPoster|null findOneBy(array $criteria, array $orderBy = null)
* @method TorrentPoster[] findAll()
* @method TorrentPoster[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
*/
class TorrentPosterRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
{
parent::__construct($registry, TorrentPoster::class);
}
}

View file

@ -22,38 +22,50 @@ class TorrentRepository extends ServiceEntityRepository
}
public function findTorrentsTotal(
int $userId,
array $keywords,
array $locales,
?array $locales,
?array $categories,
?bool $sensitive = null,
?bool $approved = null,
int $limit = 10,
int $offset = 0
?bool $approved = null,
?bool $status = null,
int $limit = 10,
int $offset = 0
): int
{
return $this->getTorrentsQueryByFilter(
$userId,
$keywords,
$locales,
$categories,
$sensitive,
$approved,
$status,
)->select('count(t.id)')
->getQuery()
->getSingleScalarResult();
}
public function findTorrents(
int $userId,
array $keywords,
array $locales,
?array $locales,
?array $categories,
?bool $sensitive = null,
?bool $approved = null,
?bool $approved = null,
?bool $status = null,
int $limit = 10,
int $offset = 0
): array
{
return $this->getTorrentsQueryByFilter(
$userId,
$keywords,
$locales,
$categories,
$sensitive,
$approved,
$status,
)->setMaxResults($limit)
->setFirstResult($offset)
->orderBy('t.id', 'DESC') // same as t.added
@ -62,56 +74,168 @@ class TorrentRepository extends ServiceEntityRepository
}
private function getTorrentsQueryByFilter(
array $keywords,
array $locales,
?bool $sensitive = null,
?bool $approved = null,
int $userId,
?array $keywords,
?array $locales,
?array $categories,
?bool $sensitive = null,
?bool $approved = null,
?bool $status = null
): \Doctrine\ORM\QueryBuilder
{
$query = $this->createQueryBuilder('t');
if ($keywords) // @TODO ANY or DTS
if (is_array($keywords))
{
$andX = $query->expr()->andX();
foreach ($keywords as $i => $keyword)
{
$keyword = mb_strtolower($keyword); // all keywords stored in lowercase
// Make query to the index case insensitive
$keyword = mb_strtolower($keyword);
$andX->add("t.keywords LIKE :keyword{$i}");
// Init OR condition for each word form
$orKeywords = $query->expr()->orX();
$orKeywords->add("t.keywords LIKE :keyword{$i}");
$query->setParameter(":keyword{$i}", "%{$keyword}%");
}
$query->andWhere($andX);
// Generate word forms for each transliteration locale #33
foreach ($this->generateWordForms($keyword) as $j => $wordForm)
{
$orKeywords->add("t.keywords LIKE :keyword{$i}{$j}");
$query->setParameter(":keyword{$i}{$j}", "%{$wordForm}%");
}
// Append AND condition
$query->andWhere($orKeywords);
}
}
if ($locales) // @TODO ANY or DTS
if (is_array($locales))
{
//$orX = $query->expr()->orX();
$orX = $query->expr()->orX();
$orLocales = $query->expr()->orX();
foreach ($locales as $i => $locale)
{
$orX->add("t.locales LIKE :locale{$i}");
$orLocales->add("t.locales LIKE :locale{$i}");
$orLocales->add("t.userId = :userId");
$query->setParameter(":locale{$i}", "%{$locale}%");
$query->setParameter('userId', $userId);
}
$query->andWhere($orX);
$query->andWhere($orLocales);
}
if (is_array($categories))
{
$orCategories = $query->expr()->orX();
foreach ($categories as $i => $category)
{
$orCategories->add("t.categories LIKE :category{$i}");
$orCategories->add("t.userId = :userId");
$query->setParameter(":category{$i}", "%{$category}%");
$query->setParameter('userId', $userId);
}
$query->andWhere($orCategories);
}
if (is_bool($sensitive))
{
$query->andWhere('t.sensitive = :sensitive')
->setParameter('sensitive', $sensitive);
$orSensitive = $query->expr()->orX();
$orSensitive->add("t.sensitive = :sensitive");
$orSensitive->add("t.userId = :userId");
$query->setParameter('sensitive', $sensitive);
$query->setParameter('userId', $userId);
$query->andWhere($orSensitive);
}
if (is_bool($approved))
{
$query->andWhere('t.approved = :approved')
->setParameter('approved', $approved);
$orApproved = $query->expr()->orX();
$orApproved->add("t.approved = :approved");
$orApproved->add("t.userId = :userId");
$query->setParameter('approved', $approved);
$query->setParameter('userId', $userId);
$query->andWhere($orApproved);
}
if (is_bool($status))
{
$orStatus = $query->expr()->orX();
$orStatus->add("t.status = :status");
$orStatus->add("t.userId = :userId");
$query->setParameter('status', $status);
$query->setParameter('userId', $userId);
$query->andWhere($orStatus);
}
return $query;
}
// Word forms generator to improve search results
// e.g. transliteration rules for latin filenames
private function generateWordForms(
string $keyword,
// #33 supported locales:
// https://github.com/ashtokalo/php-translit
array $transliteration = [
'be',
'bg',
'el',
'hy',
'kk',
'mk',
'ru',
'ka',
'uk'
],
// Additional char forms
array $charForms =
[
'c' => 'k',
'k' => 'c',
]
): array
{
$wordForms = [];
// Apply transliteration
foreach ($transliteration as $locale)
{
$wordForms[] = \ashtokalo\translit\Translit::object()->convert(
$keyword,
$locale
);
}
// Apply char forms
foreach ($wordForms as $wordForm)
{
foreach ($charForms as $from => $to)
{
$wordForms[] = str_replace(
$from,
$to,
$wordForm
);
}
}
// Remove duplicates
return array_unique(
$wordForms
);
}
}

View file

@ -51,17 +51,30 @@ class ActivityService
Activity::EVENT_TORRENT_LOCALES_APPROVE_ADD,
Activity::EVENT_TORRENT_LOCALES_APPROVE_DELETE,
Activity::EVENT_TORRENT_CATEGORIES_ADD,
Activity::EVENT_TORRENT_CATEGORIES_DELETE,
Activity::EVENT_TORRENT_CATEGORIES_APPROVE_ADD,
Activity::EVENT_TORRENT_CATEGORIES_APPROVE_DELETE,
Activity::EVENT_TORRENT_SENSITIVE_ADD,
Activity::EVENT_TORRENT_SENSITIVE_DELETE,
Activity::EVENT_TORRENT_SENSITIVE_APPROVE_ADD,
Activity::EVENT_TORRENT_SENSITIVE_APPROVE_DELETE,
Activity::EVENT_TORRENT_POSTER_ADD,
Activity::EVENT_TORRENT_POSTER_DELETE,
Activity::EVENT_TORRENT_POSTER_APPROVE_ADD,
Activity::EVENT_TORRENT_POSTER_APPROVE_DELETE,
Activity::EVENT_TORRENT_STAR_ADD,
Activity::EVENT_TORRENT_STAR_DELETE,
Activity::EVENT_TORRENT_DOWNLOAD_FILE_ADD,
Activity::EVENT_TORRENT_DOWNLOAD_MAGNET_ADD,
Activity::EVENT_TORRENT_STATUS_ADD,
Activity::EVENT_TORRENT_STATUS_DELETE,
Activity::EVENT_TORRENT_WANTED_ADD,
];
}
@ -269,6 +282,55 @@ class ActivityService
break;
/// Torrent categories
case Activity::EVENT_TORRENT_CATEGORIES_ADD:
$events
[
$this->translatorInterface->trans('Torrent categories')
]
[
$this->translatorInterface->trans('Added')
] = $code;
break;
case Activity::EVENT_TORRENT_CATEGORIES_DELETE:
$events
[
$this->translatorInterface->trans('Torrent categories')
]
[
$this->translatorInterface->trans('Deleted')
] = $code;
break;
case Activity::EVENT_TORRENT_CATEGORIES_APPROVE_ADD:
$events
[
$this->translatorInterface->trans('Torrent categories')
]
[
$this->translatorInterface->trans('Approved')
] = $code;
break;
case Activity::EVENT_TORRENT_CATEGORIES_APPROVE_DELETE:
$events
[
$this->translatorInterface->trans('Torrent categories')
]
[
$this->translatorInterface->trans('Disapproved')
] = $code;
break;
/// Torrent sensitive
case Activity::EVENT_TORRENT_SENSITIVE_ADD:
@ -318,6 +380,55 @@ class ActivityService
break;
/// Torrent poster
case Activity::EVENT_TORRENT_POSTER_ADD:
$events
[
$this->translatorInterface->trans('Torrent posters')
]
[
$this->translatorInterface->trans('Added')
] = $code;
break;
case Activity::EVENT_TORRENT_POSTER_DELETE:
$events
[
$this->translatorInterface->trans('Torrent posters')
]
[
$this->translatorInterface->trans('Deleted')
] = $code;
break;
case Activity::EVENT_TORRENT_POSTER_APPROVE_ADD:
$events
[
$this->translatorInterface->trans('Torrent posters')
]
[
$this->translatorInterface->trans('Approved')
] = $code;
break;
case Activity::EVENT_TORRENT_POSTER_APPROVE_DELETE:
$events
[
$this->translatorInterface->trans('Torrent posters')
]
[
$this->translatorInterface->trans('Disapproved')
] = $code;
break;
/// Torrent stars
case Activity::EVENT_TORRENT_STAR_ADD:
@ -379,6 +490,30 @@ class ActivityService
] = $code;
break;
case Activity::EVENT_TORRENT_STATUS_ADD:
$events
[
$this->translatorInterface->trans('Torrents')
]
[
$this->translatorInterface->trans('Enabled')
] = $code;
break;
case Activity::EVENT_TORRENT_STATUS_DELETE:
$events
[
$this->translatorInterface->trans('Torrents')
]
[
$this->translatorInterface->trans('Disabled')
] = $code;
break;
}
}
@ -861,6 +996,65 @@ class ActivityService
return $activity;
}
public function addEventTorrentStatusAdd(
int $userId,
int $torrentId,
int $added
): ?Activity
{
$activity = new Activity();
$activity->setEvent(
Activity::EVENT_TORRENT_STATUS_ADD
);
$activity->setUserId(
$userId
);
$activity->setTorrentId(
$torrentId
);
$activity->setAdded(
$added
);
$this->entityManagerInterface->persist($activity);
$this->entityManagerInterface->flush();
return $activity;
}
public function addEventTorrentStatusDelete(
int $userId,
int $torrentId,
int $added
): ?Activity
{
$activity = new Activity();
$activity->setEvent(
Activity::EVENT_TORRENT_STATUS_DELETE
);
$activity->setUserId(
$userId
);
$activity->setTorrentId(
$torrentId
);
$activity->setAdded(
$added
);
$this->entityManagerInterface->persist($activity);
$this->entityManagerInterface->flush();
return $activity;
}
public function addEventTorrentWantedAdd(
int $userId,
@ -1163,6 +1357,155 @@ class ActivityService
return $activity;
}
/// Torrent categories
public function addEventTorrentCategoriesAdd(
int $userId,
int $torrentId,
int $added,
int $torrentCategoriesId,
): ?Activity
{
$activity = new Activity();
$activity->setEvent(
Activity::EVENT_TORRENT_CATEGORIES_ADD
);
$activity->setUserId(
$userId
);
$activity->setTorrentId(
$torrentId
);
$activity->setAdded(
$added
);
$activity->setData(
[
'torrentCategoriesId' => $torrentCategoriesId
]
);
$this->entityManagerInterface->persist($activity);
$this->entityManagerInterface->flush();
return $activity;
}
public function addEventTorrentCategoriesDelete(
int $userId,
int $torrentId,
int $added,
int $torrentCategoriesId,
): ?Activity
{
$activity = new Activity();
$activity->setEvent(
Activity::EVENT_TORRENT_CATEGORIES_DELETE
);
$activity->setUserId(
$userId
);
$activity->setTorrentId(
$torrentId
);
$activity->setAdded(
$added
);
$activity->setData(
[
'torrentCategoriesId' => $torrentCategoriesId
]
);
$this->entityManagerInterface->persist($activity);
$this->entityManagerInterface->flush();
return $activity;
}
public function addEventTorrentCategoriesApproveAdd(
int $userId,
int $torrentId,
int $added,
int $torrentCategoriesId,
): ?Activity
{
$activity = new Activity();
$activity->setEvent(
Activity::EVENT_TORRENT_CATEGORIES_APPROVE_ADD
);
$activity->setUserId(
$userId
);
$activity->setTorrentId(
$torrentId
);
$activity->setAdded(
$added
);
$activity->setData(
[
'torrentCategoriesId' => $torrentCategoriesId
]
);
$this->entityManagerInterface->persist($activity);
$this->entityManagerInterface->flush();
return $activity;
}
public function addEventTorrentCategoriesApproveDelete(
int $userId,
int $torrentId,
int $added,
int $torrentCategoriesId,
): ?Activity
{
$activity = new Activity();
$activity->setEvent(
Activity::EVENT_TORRENT_CATEGORIES_APPROVE_DELETE
);
$activity->setUserId(
$userId
);
$activity->setTorrentId(
$torrentId
);
$activity->setAdded(
$added
);
$activity->setData(
[
'torrentCategoriesId' => $torrentCategoriesId
]
);
$this->entityManagerInterface->persist($activity);
$this->entityManagerInterface->flush();
return $activity;
}
/// Torrent sensitive
public function addEventTorrentSensitiveAdd(
int $userId,
@ -1311,4 +1654,153 @@ class ActivityService
return $activity;
}
/// Torrent poster
public function addEventTorrentPosterAdd(
int $userId,
int $torrentId,
int $added,
int $torrentPosterId,
): ?Activity
{
$activity = new Activity();
$activity->setEvent(
Activity::EVENT_TORRENT_POSTER_ADD
);
$activity->setUserId(
$userId
);
$activity->setTorrentId(
$torrentId
);
$activity->setAdded(
$added
);
$activity->setData(
[
'torrentPosterId' => $torrentPosterId
]
);
$this->entityManagerInterface->persist($activity);
$this->entityManagerInterface->flush();
return $activity;
}
public function addEventTorrentPosterDelete(
int $userId,
int $torrentId,
int $added,
int $torrentPosterId,
): ?Activity
{
$activity = new Activity();
$activity->setEvent(
Activity::EVENT_TORRENT_POSTER_DELETE
);
$activity->setUserId(
$userId
);
$activity->setTorrentId(
$torrentId
);
$activity->setAdded(
$added
);
$activity->setData(
[
'torrentPosterId' => $torrentPosterId
]
);
$this->entityManagerInterface->persist($activity);
$this->entityManagerInterface->flush();
return $activity;
}
public function addEventTorrentPosterApproveAdd(
int $userId,
int $torrentId,
int $added,
int $torrentPosterId,
): ?Activity
{
$activity = new Activity();
$activity->setEvent(
Activity::EVENT_TORRENT_POSTER_APPROVE_ADD
);
$activity->setUserId(
$userId
);
$activity->setTorrentId(
$torrentId
);
$activity->setAdded(
$added
);
$activity->setData(
[
'torrentPosterId' => $torrentPosterId
]
);
$this->entityManagerInterface->persist($activity);
$this->entityManagerInterface->flush();
return $activity;
}
public function addEventTorrentPosterApproveDelete(
int $userId,
int $torrentId,
int $added,
int $torrentPosterId,
): ?Activity
{
$activity = new Activity();
$activity->setEvent(
Activity::EVENT_TORRENT_POSTER_APPROVE_DELETE
);
$activity->setUserId(
$userId
);
$activity->setTorrentId(
$torrentId
);
$activity->setAdded(
$added
);
$activity->setData(
[
'torrentPosterId' => $torrentPosterId
]
);
$this->entityManagerInterface->persist($activity);
$this->entityManagerInterface->flush();
return $activity;
}
}

View file

@ -4,14 +4,18 @@ namespace App\Service;
use App\Entity\Torrent;
use App\Entity\TorrentLocales;
use App\Entity\TorrentCategories;
use App\Entity\TorrentSensitive;
use App\Entity\TorrentPoster;
use App\Entity\TorrentStar;
use App\Entity\TorrentDownloadFile;
use App\Entity\TorrentDownloadMagnet;
use App\Repository\TorrentRepository;
use App\Repository\TorrentLocalesRepository;
use App\Repository\TorrentCategoriesRepository;
use App\Repository\TorrentSensitiveRepository;
use App\Repository\TorrentPosterRepository;
use App\Repository\TorrentStarRepository;
use App\Repository\TorrentDownloadFileRepository;
use App\Repository\TorrentDownloadMagnetRepository;
@ -62,63 +66,239 @@ class TorrentService
);
}
public function generateTorrentKeywordsByString(
string $string,
int $wordLengthMin,
int $wordLengthMax,
): array
{
$words = explode(
' ',
preg_replace(
'/[\s]+/',
' ',
preg_replace(
'/[\W_]+/u',
' ',
$string
)
)
);
// Apply words filter
foreach ((array) $words as $key => $value)
{
// Apply word length filter
$length = mb_strlen($value);
if ($length < $wordLengthMin || $length > $wordLengthMax)
{
unset($words[$key]);
}
else
{
// Apply case insensitive search conversion
$words[$key] = mb_strtolower($value);
}
}
// Build simple array
$keywords = [];
foreach ((array) $words as $word)
{
$keywords[] = $word;
}
// Return unique keywords
return array_unique(
$keywords
);
}
public function generateTorrentKeywordsByTorrentFilepath(
string $filepath,
int $minLength = 3
bool $extractName,
bool $extractFilenames,
bool $extractInfoHashV1,
bool $extractInfoHashV2,
bool $extractSource,
bool $extractComment,
int $wordLengthMin,
int $wordLengthMax
): array
{
$keywords = [];
if ($file = $this->readTorrentFileByFilepath($filepath))
{
foreach ($file->getFileList() as $list)
if ($extractName)
{
$words = explode(
' ',
preg_replace(
'/[\s]+/',
' ',
preg_replace(
'/[\W_]+/u',
' ',
$list['path']
)
)
);
foreach ($words as $key => $value)
if ($name = $file->getName(false))
{
if (mb_strlen($value) < $minLength)
{
unset($words[$key]);
}
else
{
$words[$key] = mb_strtolower($value);
}
$keywords = array_merge(
$keywords,
$this->generateTorrentKeywordsByString(
$name,
$wordLengthMin,
$wordLengthMax
)
);
}
}
if ($extractFilenames)
{
foreach ($file->getFileList() as $list)
{
$keywords = array_merge(
$keywords,
$this->generateTorrentKeywordsByString(
$list['path'],
$wordLengthMin,
$wordLengthMax
)
);
}
}
if ($extractSource)
{
if ($source = $file->getSource(false))
{
$keywords = array_merge(
$keywords,
$this->generateTorrentKeywordsByString(
$source,
$wordLengthMin,
$wordLengthMax
)
);
}
}
if ($extractComment)
{
if ($comment = $file->getComment(false))
{
$keywords = array_merge(
$keywords,
$this->generateTorrentKeywordsByString(
$comment,
$wordLengthMin,
$wordLengthMax
)
);
}
}
if ($extractInfoHashV1)
{
if ($hash = $file->getInfoHashV1(false))
{
$keywords[] = $hash;
}
}
if ($extractInfoHashV2)
{
if ($hash = $file->getInfoHashV2(false))
{
$keywords[] = $hash;
}
if ($name = $file->getName(false))
{
$keywords[] = $name;
}
$keywords = array_merge($keywords, $words);
}
}
return array_unique($keywords);
return array_unique(
$keywords
);
}
public function getImageUriByTorrentPosterId(
int $torrentPosterId,
int $quality = 100,
int $width = 748,
int $height = 0,
float $opacity = 1,
bool $grayscale = false,
string $format = 'webp'
): string
{
$uri = sprintf(
'/posters/%s.%s',
implode('/', str_split($torrentPosterId)),
$format
);
$filename = sprintf(
'%s/public/posters/%s.%s',
$this->kernelInterface->getProjectDir(),
implode('/', str_split($torrentPosterId)),
$format
);
if (file_exists($filename))
{
return $uri;
}
$path = explode('/', $filename);
array_pop($path);
@mkdir(implode('/', $path), 0755, true);
$image = new \Imagick();
$image->readImage(
$this->getStorageFilepathByTorrentPosterId(
$torrentPosterId
)
);
$image->setImageFormat($format);
$image->setImageCompressionQuality($quality);
if ($width || $height)
{
$image->adaptiveResizeImage(
$width,
$height
);
}
if ($grayscale)
{
$image->setImageType(
\Imagick::IMGTYPE_GRAYSCALE
);
}
if ($opacity)
{
$image->setImageOpacity(
$opacity
);
}
$image->writeImage(
$filename
);
return $uri;
}
public function getStorageFilepathByTorrentPosterId(int $torrentPosterId): string
{
return sprintf(
'%s/var/posters/%s.original',
$this->kernelInterface->getProjectDir(),
implode('/', str_split($torrentPosterId))
);
}
public function getStorageFilepathByTorrentId(int $torrentId): string
@ -143,6 +323,11 @@ class TorrentService
{
$contributors = [];
foreach ($this->findTorrentCategoriesByTorrentId($torrent->getId()) as $torrentCategory)
{
$contributors[] = $torrentCategory->getUserId();
}
foreach ($this->findTorrentLocalesByTorrentId($torrent->getId()) as $torrentLocale)
{
$contributors[] = $torrentLocale->getUserId();
@ -153,6 +338,11 @@ class TorrentService
$contributors[] = $torrentSensitive->getUserId();
}
foreach ($this->findTorrentPosterByTorrentId($torrent->getId()) as $torrentPoster)
{
$contributors[] = $torrentPoster->getUserId();
}
$contributors[] = $torrent->getUserId();
return array_unique($contributors);
@ -187,12 +377,27 @@ class TorrentService
}
public function add(
string $filepath,
int $userId,
int $added,
array $locales,
bool $sensitive,
bool $approved
bool $extractName,
bool $extractFilenames,
bool $extractInfoHashV1,
bool $extractInfoHashV2,
bool $extractSource,
bool $extractComment,
int $wordLengthMin,
int $wordLengthMax,
int $userId,
int $added,
array $locales,
array $categories,
bool $sensitive,
bool $approved,
bool $status
): ?Torrent
{
$torrent = $this->addTorrent(
@ -200,11 +405,21 @@ class TorrentService
$added,
md5_file($filepath),
$this->generateTorrentKeywordsByTorrentFilepath(
$filepath
$filepath,
$extractName,
$extractFilenames,
$extractInfoHashV1,
$extractInfoHashV2,
$extractSource,
$extractComment,
$wordLengthMin,
$wordLengthMax
),
$locales,
$categories,
$sensitive,
$approved
$approved,
$status
);
$filesystem = new Filesystem();
@ -223,6 +438,14 @@ class TorrentService
$approved
);
$this->addTorrentCategories(
$torrent->getId(),
$userId,
$added,
$categories,
$approved
);
$this->addTorrentSensitive(
$torrent->getId(),
$userId,
@ -248,8 +471,10 @@ class TorrentService
string $md5file,
array $keywords,
array $locales,
array $categories,
bool $sensitive,
bool $approved
bool $approved,
bool $status
): ?Torrent
{
$torrent = new Torrent();
@ -259,8 +484,10 @@ class TorrentService
$torrent->setMd5File($md5file);
$torrent->setKeywords($keywords);
$torrent->setLocales($locales);
$torrent->setCategories($categories);
$torrent->setSensitive($sensitive);
$torrent->setApproved($approved);
$torrent->setStatus($status);
$this->entityManagerInterface->persist($torrent);
$this->entityManagerInterface->flush();
@ -292,6 +519,30 @@ class TorrentService
return $torrent;
}
public function toggleTorrentStatus(
int $torrentId
): ?Torrent
{
$torrent = $this->getTorrent($torrentId);
$torrent->setStatus(
!$torrent->isStatus() // toggle current value
);
$this->entityManagerInterface->persist($torrent);
$this->entityManagerInterface->flush();
$this->updateTorrentLocales(
$torrent->getId()
);
$this->updateTorrentSensitive(
$torrent->getId()
);
return $torrent;
}
public function getTorrentScrapeQueue(): ?Torrent
{
return $this->entityManagerInterface
@ -305,40 +556,52 @@ class TorrentService
}
public function findTorrents(
int $userId,
array $keywords,
array $locales,
?array $locales,
?array $categories,
?bool $sensitive,
?bool $approved,
int $limit,
int $offset
?bool $status,
int $limit,
int $offset
) : array
{
return $this->entityManagerInterface
->getRepository(Torrent::class)
->findTorrents(
$userId,
$keywords,
$locales,
$categories,
$sensitive,
$approved,
$status,
$limit,
$offset
);
}
public function findTorrentsTotal(
int $userId,
array $keywords,
array $locales,
?array $locales,
?array $categories,
?bool $sensitive,
?bool $approved
?bool $approved,
?bool $status
) : int
{
return $this->entityManagerInterface
->getRepository(Torrent::class)
->findTorrentsTotal(
$userId,
$keywords,
$locales,
$categories,
$sensitive,
$approved
$approved,
$status
);
}
@ -407,6 +670,48 @@ class TorrentService
}
}
public function updateTorrentCategories(
int $torrentId
): void
{
if ($torrent = $this->getTorrent($torrentId))
{
if ($torrentCategories = $this->entityManagerInterface
->getRepository(TorrentCategories::class)
->findOneBy(
[
'torrentId' => $torrentId,
'approved' => true,
],
[
'id' => 'DESC'
]
))
{
$torrent->setCategories($torrentCategories->getValue());
$this->entityManagerInterface->persist($torrent);
$this->entityManagerInterface->flush();
}
}
}
public function updateTorrentScraped(
int $torrentId,
int $time
): void
{
if ($torrent = $this->getTorrent($torrentId))
{
$torrent->setScraped(
$time
);
$this->entityManagerInterface->persist($torrent);
$this->entityManagerInterface->flush();
}
}
public function updateTorrentScrape(
int $torrentId,
int $seeders,
@ -437,7 +742,16 @@ class TorrentService
}
}
public function reindexTorrentKeywordsAll(): void
public function reindexTorrentKeywordsAll(
bool $extractName,
bool $extractFilenames,
bool $extractInfoHashV1,
bool $extractInfoHashV2,
bool $extractSource,
bool $extractComment,
int $wordLengthMin,
int $wordLengthMax
): void
{
foreach ($this->entityManagerInterface
->getRepository(Torrent::class)
@ -447,7 +761,15 @@ class TorrentService
$this->generateTorrentKeywordsByTorrentFilepath(
$this->getStorageFilepathByTorrentId(
$torrent->getId()
)
),
$extractName,
$extractFilenames,
$extractInfoHashV1,
$extractInfoHashV2,
$extractSource,
$extractComment,
$wordLengthMin,
$wordLengthMax
)
);
@ -618,6 +940,133 @@ class TorrentService
}
}
// Torrent category
public function getTorrentCategories(
int $torrentCategoryId
): ?TorrentCategories
{
return $this->entityManagerInterface
->getRepository(TorrentCategories::class)
->find($torrentCategoryId);
}
public function findLastTorrentCategoriesByTorrentId(
int $torrentId
): ?TorrentCategories
{
return $this->entityManagerInterface
->getRepository(TorrentCategories::class)
->findOneBy(
[
'torrentId' => $torrentId
],
[
'id' => 'DESC'
]
);
}
public function findTorrentCategoriesByTorrentId(int $torrentId): array
{
return $this->entityManagerInterface
->getRepository(TorrentCategories::class)
->findBy(
[
'torrentId' => $torrentId,
],
[
'id' => 'DESC'
]
);
}
public function toggleTorrentCategoriesApproved(
int $torrentCategoriesId
): ?TorrentCategories
{
$torrentCategories = $this->getTorrentCategories($torrentCategoriesId);
$torrentCategories->setApproved(
!$torrentCategories->isApproved() // toggle current value
);
$this->entityManagerInterface->persist($torrentCategories);
$this->entityManagerInterface->flush();
$this->updateTorrentCategories(
$torrentCategories->getTorrentId()
);
return $torrentCategories;
}
public function deleteTorrentCategories(
int $torrentCategoriesId
): ?TorrentCategories
{
$torrentCategories = $this->getTorrentCategories($torrentCategoriesId);
$this->entityManagerInterface->remove($torrentCategories);
$this->entityManagerInterface->flush();
$this->updateTorrentCategories(
$torrentCategories->getTorrentId()
);
return $torrentCategories;
}
public function addTorrentCategories(
int $torrentId,
int $userId,
int $added,
array $value,
bool $approved
): ?TorrentCategories
{
$torrentCategories = new TorrentCategories();
$torrentCategories->setTorrentId($torrentId);
$torrentCategories->setUserId($userId);
$torrentCategories->setAdded($added);
$torrentCategories->setValue($value);
$torrentCategories->setApproved($approved);
$this->entityManagerInterface->persist($torrentCategories);
$this->entityManagerInterface->flush();
$this->updateTorrentCategories(
$torrentId
);
return $torrentCategories;
}
public function setTorrentCategoriesApprovedByUserId(
int $userId,
bool $value
): void
{
foreach ($this->entityManagerInterface
->getRepository(TorrentCategories::class)
->findBy(
[
'userId' => $userId
]) as $torrentCategories)
{
$torrentCategories->setApproved(
$value
);
$this->entityManagerInterface->persist($torrentCategories);
$this->entityManagerInterface->flush();
$this->updateTorrentCategories(
$torrentCategories->getTorrentId(),
);
}
}
// Torrent sensitive
public function getTorrentSensitive(
int $torrentSensitiveId
@ -749,6 +1198,218 @@ class TorrentService
}
}
// Torrent poster
public function getTorrentPoster(
int $torrentPosterId
): ?TorrentPoster
{
return $this->entityManagerInterface
->getRepository(TorrentPoster::class)
->find(
$torrentPosterId
);
}
public function findTorrentPosterByMd5File(
string $md5file
): ?Torrent
{
return $this->entityManagerInterface
->getRepository(TorrentPoster::class)
->findOneBy(
[
'md5file' => $md5file
]
);
}
public function findLastTorrentPosterByTorrentId(
int $torrentId
): ?TorrentPoster
{
return $this->entityManagerInterface
->getRepository(TorrentPoster::class)
->findOneBy(
[
'torrentId' => $torrentId
],
[
'id' => 'DESC'
]
);
}
public function findTorrentPosterByTorrentId(
int $torrentId
): array
{
return $this->entityManagerInterface
->getRepository(TorrentPoster::class)
->findBy(
[
'torrentId' => $torrentId
],
[
'id' => 'DESC'
]
);
}
public function toggleTorrentPosterApproved(
int $torrentPosterId
): ?TorrentPoster
{
$torrentPoster = $this->entityManagerInterface
->getRepository(TorrentPoster::class)
->find($torrentPosterId);
$torrentPoster->setApproved(
!$torrentPoster->isApproved() // toggle current value
);
$this->entityManagerInterface->persist($torrentPoster);
$this->entityManagerInterface->flush();
$this->updateTorrentPoster(
$torrentPoster->getTorrentId()
);
return $torrentSensitive;
}
public function deleteTorrentPoster(
int $torrentPosterId
): ?TorrentPoster
{
// Remove torrent file from permanent storage
$filesystem = new Filesystem();
$filesystem->remove(
$this->getStorageFilepathByTorrentPosterId(
$torrentPosterId
)
);
// Remove from DB
$torrentPoster = $this->getTorrentPoster(
$torrentPosterId
);
$this->entityManagerInterface->remove($torrentPoster);
$this->entityManagerInterface->flush();
// Update torrent
$this->updateTorrentPoster(
$torrentPoster->getTorrentId()
);
return $torrentSensitive;
}
public function addTorrentPoster(
string $filename,
string $position,
int $torrentId,
int $userId,
int $added,
bool $approved
): ?TorrentPoster
{
// Add new DB record
$torrentPoster = new TorrentPoster();
$torrentPoster->setTorrentId($torrentId);
$torrentPoster->setUserId($userId);
$torrentPoster->setAdded($added);
$torrentPoster->setApproved($approved);
$torrentPoster->setPosition($position);
$torrentPoster->setMd5file(
md5_file($filename)
);
$this->entityManagerInterface->persist($torrentPoster);
$this->entityManagerInterface->flush();
// Save file in permanent storage
$filesystem = new Filesystem();
$filesystem->copy(
$filename,
$this->getStorageFilepathByTorrentPosterId(
$torrentPoster->getId()
)
);
// Update torrent info
$this->updateTorrentPoster(
$torrentId
);
return $torrentPoster;
}
public function setTorrentPostersApprovedByUserId(
int $userId,
bool $value
): void
{
foreach ($this->entityManagerInterface
->getRepository(TorrentPoster::class)
->findBy(
[
'userId' => $userId
]) as $torrentPoster)
{
$torrentPoster->setApproved(
$value
);
$this->entityManagerInterface->persist($torrentPoster);
$this->entityManagerInterface->flush();
$this->updateTorrentPoster(
$torrentPoster->getTorrentId(),
);
}
}
public function updateTorrentPoster(
int $torrentId,
): void
{
if ($torrent = $this->getTorrent($torrentId))
{
if ($torrentPoster = $this->entityManagerInterface
->getRepository(TorrentPoster::class)
->findOneBy(
[
'torrentId' => $torrentId,
'approved' => true,
],
[
'id' => 'DESC'
]
))
{
$torrent->setTorrentPosterId(
$torrentPoster->getId()
);
}
else
{
$torrent->setTorrentPosterId(
null
);
}
$this->entityManagerInterface->persist($torrent);
$this->entityManagerInterface->flush();
}
}
// Torrent star
public function findTorrentStar(
int $torrentId,

View file

@ -32,6 +32,7 @@ class UserService
string $theme,
bool $sensitive = true,
bool $yggdrasil = true,
bool $posters = true,
bool $approved = false,
bool $moderator = false,
bool $status = true
@ -84,6 +85,10 @@ class UserService
$yggdrasil
);
$user->setPosters(
$posters
);
$this->entityManagerInterface->persist($user);
$this->entityManagerInterface->flush();

View file

@ -39,13 +39,27 @@ class AppExtension extends AbstractExtension
'formatAgo'
]
),
new TwigFilter(
'url_to_markdown',
[
$this,
'urlToMarkdown'
]
),
new TwigFilter(
'trans_category',
[
$this,
'transCategory'
]
),
];
}
public function formatBytes(
int $bytes,
int $precision = 2
) : string
): string
{
$size = [
$this->translator->trans('B'),
@ -66,7 +80,7 @@ class AppExtension extends AbstractExtension
public function formatAgo(
int $time,
) : string
): string
{
$diff = time() - $time;
@ -135,6 +149,40 @@ class AppExtension extends AbstractExtension
}
}
public function urlToMarkdown(
string $text
): string
{
return preg_replace(
'~(https?://(?:www\.)?[^\(\s\)]+)~i',
'[$1]($1)',
$text
);
}
public function transCategory(
string $name
): string
{
switch ($name)
{
case 'movie': return $this->translator->trans('movie');
case 'series': return $this->translator->trans('series');
case 'tv': return $this->translator->trans('tv');
case 'animation': return $this->translator->trans('animation');
case 'music': return $this->translator->trans('music');
case 'game': return $this->translator->trans('game');
case 'audiobook': return $this->translator->trans('audiobook');
case 'podcast': return $this->translator->trans('podcast');
case 'book': return $this->translator->trans('book');
case 'archive': return $this->translator->trans('archive');
case 'picture': return $this->translator->trans('picture');
case 'software': return $this->translator->trans('software');
case 'other': return $this->translator->trans('other');
default: return $name;
}
}
private function plural(int $number, array $texts)
{
$cases = [2, 0, 1, 1, 1, 2];

View file

@ -8,13 +8,12 @@
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
{{ torrent.name }}
</a>
{% if torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% endif %}
{% else %}
{% if torrent.approved == false %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true %}
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }} ({{ 'sensitive' | trans }})
{% else %}
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">

View file

@ -6,9 +6,11 @@
{% if session.user.moderator or session.user.owner %}
{{ torrent.name }}
{% else %}
{% if torrent.approved == false %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true %}
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }} ({{ 'sensitive' | trans }})
{% else %}
{{ torrent.name }}

View file

@ -11,7 +11,11 @@
{{ torrent.name }}
</a>
{% else %}
{% if torrent.sensitive == true %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }} ({{ 'sensitive' | trans }})
{% else %}
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">

View file

@ -6,7 +6,11 @@
{% if session.user.moderator or session.user.owner %}
{{ torrent.name }}
{% else %}
{% if torrent.sensitive == true %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }} ({{ 'sensitive' | trans }})
{% else %}
{{ torrent.name }}

View file

@ -10,13 +10,12 @@
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
{{ torrent.name }}
</a>
{% if torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% endif %}
{% else %}
{% if torrent.approved == false %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true %}
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }} ({{ 'sensitive' | trans }})
{% else %}
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">

View file

@ -6,7 +6,11 @@
{% if session.user.moderator or session.user.owner %}
{{ torrent.name }}
{% else %}
{% if torrent.sensitive == true %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }} ({{ 'sensitive' | trans }})
{% else %}
{{ torrent.name }}

View file

@ -0,0 +1,39 @@
<div class="row">
<div class="column width-80">
<a class="margin-r-4-px" href="{{ path('user_info', { userId : user.id }) }}">
<img class="border-radius-50 border-color-default vertical-align-middle" src="{{ user.identicon }}" alt="{{ 'identicon' | trans }}" />
</a>
{{ 'have added categories edition' | trans }}
{% if torrent.categories.exist %}
<a href="{{ path('torrent_categories_edit', { torrentId : torrent.id, torrentCategoriesId : torrent.categories.id }) }}">
#{{ torrent.categories.id }}
</a>
{% else %}
#{{ torrent.categories.id }}
{% endif %}
{{ 'for torrent' | trans }}
{% if session.user.moderator or session.user.owner %}
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
{{ torrent.name }}
</a>
{% if torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% endif %}
{% else %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }} ({{ 'sensitive' | trans }})
{% else %}
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
{{ torrent.name }}
</a>
{% endif %}
{% endif %}
</div>
<div class="column width-20 text-right">
{{ added | format_ago }}
</div>
</div>

View file

@ -0,0 +1,26 @@
<item>
<title>
{{ 'User' | trans }}
#{{ user.id }}
{{ 'have added categories edition' | trans }}
#{{ torrent.categories.id }}
{{ 'for torrent' | trans }}
{% if session.user.moderator or session.user.owner %}
{{ torrent.name }}
{% else %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }} ({{ 'sensitive' | trans }})
{% else %}
{{ torrent.name }}
{% endif %}
{% endif %}
</title>
<author>#{{ user.id }}</author>
<pubDate>{{ added | date('D, d M Y h:i:s O') }}</pubDate>
<guid>{{ url('torrent_categories_edit', { torrentId : torrent.id, torrentCategoriesId : torrent.categories.id }) }}#activity-{{ id }}</guid>
<link>{{ url('torrent_categories_edit', { torrentId : torrent.id, torrentCategoriesId : torrent.categories.id }) }}#activity</link>
</item>

View file

@ -0,0 +1,39 @@
<div class="row">
<div class="column width-80">
<a class="margin-r-4-px" href="{{ path('user_info', { userId : user.id }) }}">
<img class="border-radius-50 border-color-default vertical-align-middle" src="{{ user.identicon }}" alt="{{ 'identicon' | trans }}" />
</a>
{{ 'have approved categories edition' | trans }}
{% if torrent.categories.exist %}
<a href="{{ path('torrent_categories_edit', { torrentId : torrent.id, torrentCategoriesId : torrent.categories.id }) }}">
#{{ torrent.categories.id }}
</a>
{% else %}
#{{ torrent.categories.id }}
{% endif %}
{{ 'for torrent' | trans }}
{% if session.user.moderator or session.user.owner %}
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
{{ torrent.name }}
</a>
{% if torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% endif %}
{% else %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }} ({{ 'sensitive' | trans }})
{% else %}
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
{{ torrent.name }}
</a>
{% endif %}
{% endif %}
</div>
<div class="column width-20 text-right">
{{ added | format_ago }}
</div>
</div>

View file

@ -0,0 +1,26 @@
<item>
<title>
{{ 'User' | trans }}
#{{ user.id }}
{{ 'have approved categories edition' | trans }}
#{{ torrent.categories.id }}
{{ 'for torrent' | trans }}
{% if session.user.moderator or session.user.owner %}
{{ torrent.name }}
{% else %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }} ({{ 'sensitive' | trans }})
{% else %}
{{ torrent.name }}
{% endif %}
{% endif %}
</title>
<author>#{{ user.id }}</author>
<pubDate>{{ added | date('D, d M Y h:i:s O') }}</pubDate>
<guid>{{ url('torrent_categories_edit', { torrentId : torrent.id, torrentCategoriesId : torrent.categories.id }) }}#activity-{{ id }}</guid>
<link>{{ url('torrent_categories_edit', { torrentId : torrent.id, torrentCategoriesId : torrent.categories.id }) }}#activity</link>
</item>

View file

@ -0,0 +1,41 @@
<div class="row">
<div class="column width-80">
<a class="margin-r-4-px" href="{{ path('user_info', { userId : user.id }) }}">
<img class="border-radius-50 border-color-default vertical-align-middle" src="{{ user.identicon }}" alt="{{ 'identicon' | trans }}" />
</a>
<span class="margin-l-4-px">
{{ 'have disapproved categories edition' | trans }}
</span>
{% if torrent.categories.exist %}
<a href="{{ path('torrent_categories_edit', { torrentId : torrent.id, torrentCategoriesId : torrent.categories.id }) }}">
#{{ torrent.categories.id }}
</a>
{% else %}
#{{ torrent.categories.id }}
{% endif %}
{{ 'for torrent' | trans }}
{% if session.user.moderator or session.user.owner %}
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
{{ torrent.name }}
</a>
{% if torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% endif %}
{% else %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }} ({{ 'sensitive' | trans }})
{% else %}
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
{{ torrent.name }}
</a>
{% endif %}
{% endif %}
</div>
<div class="column width-20 text-right">
{{ added | format_ago }}
</div>
</div>

View file

@ -0,0 +1,26 @@
<item>
<title>
{{ 'User' | trans }}
#{{ user.id }}
{{ 'have disapproved categories edition' | trans }}
#{{ torrent.categories.id }}
{{ 'for torrent' | trans }}
{% if session.user.moderator or session.user.owner %}
{{ torrent.name }}
{% else %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }} ({{ 'sensitive' | trans }})
{% else %}
{{ torrent.name }}
{% endif %}
{% endif %}
</title>
<author>#{{ user.id }}</author>
<pubDate>{{ added | date('D, d M Y h:i:s O') }}</pubDate>
<guid>{{ url('torrent_categories_edit', { torrentId : torrent.id, torrentCategoriesId : torrent.categories.id }) }}#activity-{{ id }}</guid>
<link>{{ url('torrent_categories_edit', { torrentId : torrent.id, torrentCategoriesId : torrent.categories.id }) }}#activity</link>
</item>

View file

@ -0,0 +1,39 @@
<div class="row">
<div class="column width-80">
<a class="margin-r-4-px" href="{{ path('user_info', { userId : user.id }) }}">
<img class="border-radius-50 border-color-default vertical-align-middle" src="{{ user.identicon }}" alt="{{ 'identicon' | trans }}" />
</a>
{{ 'have deleted categories edition' | trans }}
{% if torrent.categories.exist %}
<a href="{{ path('torrent_categories_edit', { torrentId : torrent.id }) }}">
#{{ torrent.categories.id }}
</a>
{% else %}
#{{ torrent.categories.id }}
{% endif %}
{{ 'for torrent' | trans }}
{% if session.user.moderator or session.user.owner %}
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
{{ torrent.name }}
</a>
{% if torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% endif %}
{% else %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }} ({{ 'sensitive' | trans }})
{% else %}
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
{{ torrent.name }}
</a>
{% endif %}
{% endif %}
</div>
<div class="column width-20 text-right">
{{ added | format_ago }}
</div>
</div>

View file

@ -0,0 +1,26 @@
<item>
<title>
{{ 'User' | trans }}
#{{ user.id }}
{{ 'have deleted categories edition' | trans }}
#{{ torrent.categories.id }}
{{ 'for torrent' | trans }}
{% if session.user.moderator or session.user.owner %}
{{ torrent.name }}
{% else %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }} ({{ 'sensitive' | trans }})
{% else %}
{{ torrent.name }}
{% endif %}
{% endif %}
</title>
<author>#{{ user.id }}</author>
<pubDate>{{ added | date('D, d M Y h:i:s O') }}</pubDate>
<guid>{{ url('torrent_categories_edit', { torrentId : torrent.id }) }}#activity-{{ id }}</guid>
<link>{{ url('torrent_categories_edit', { torrentId : torrent.id }) }}#activity</link>
</item>

View file

@ -3,7 +3,7 @@
<a href="{{ path('user_info', { userId : user.id }) }}">
<img class="border-radius-50 border-color-default vertical-align-middle" src="{{ user.identicon }}" alt="{{ 'identicon' | trans }}" />
</a>
<span class="margin-x-4-px">
<span class="margin-l-4-px">
{{ 'have downloaded torrent file' | trans }}
</span>
{% if session.user.moderator or session.user.owner %}
@ -11,12 +11,14 @@
{{ torrent.name }}
</a>
{% if torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
({{ 'waiting for approve' | trans }})
{% endif %}
{% else %}
{% if torrent.approved == false %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true %}
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }} ({{ 'sensitive' | trans }})
{% else %}
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">

View file

@ -6,9 +6,11 @@
{% if session.user.moderator or session.user.owner %}
{{ torrent.name }}
{% else %}
{% if torrent.approved == false %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true %}
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }} ({{ 'sensitive' | trans }})
{% else %}
{{ torrent.name }}

View file

@ -11,12 +11,14 @@
{{ torrent.name }}
</a>
{% if torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
({{ 'waiting for approve' | trans }})
{% endif %}
{% else %}
{% if torrent.approved == false %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true %}
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }} ({{ 'sensitive' | trans }})
{% else %}
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">

View file

@ -6,9 +6,11 @@
{% if session.user.moderator or session.user.owner %}
{{ torrent.name }}
{% else %}
{% if torrent.approved == false %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true %}
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }} ({{ 'sensitive' | trans }})
{% else %}
{{ torrent.name }}

View file

@ -20,9 +20,11 @@
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% endif %}
{% else %}
{% if torrent.approved == false %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true %}
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }} ({{ 'sensitive' | trans }})
{% else %}
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">

View file

@ -8,9 +8,11 @@
{% if session.user.moderator or session.user.owner %}
{{ torrent.name }}
{% else %}
{% if torrent.approved == false %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true %}
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }} ({{ 'sensitive' | trans }})
{% else %}
{{ torrent.name }}

View file

@ -20,9 +20,11 @@
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% endif %}
{% else %}
{% if torrent.approved == false %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true %}
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }} ({{ 'sensitive' | trans }})
{% else %}
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">

View file

@ -8,9 +8,11 @@
{% if session.user.moderator or session.user.owner %}
{{ torrent.name }}
{% else %}
{% if torrent.approved == false %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true %}
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }} ({{ 'sensitive' | trans }})
{% else %}
{{ torrent.name }}

View file

@ -22,9 +22,11 @@
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% endif %}
{% else %}
{% if torrent.approved == false %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true %}
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }} ({{ 'sensitive' | trans }})
{% else %}
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">

View file

@ -8,9 +8,11 @@
{% if session.user.moderator or session.user.owner %}
{{ torrent.name }}
{% else %}
{% if torrent.approved == false %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true %}
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }} ({{ 'sensitive' | trans }})
{% else %}
{{ torrent.name }}

View file

@ -20,9 +20,11 @@
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% endif %}
{% else %}
{% if torrent.approved == false %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true %}
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }} ({{ 'sensitive' | trans }})
{% else %}
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">

View file

@ -8,9 +8,11 @@
{% if session.user.moderator or session.user.owner %}
{{ torrent.name }}
{% else %}
{% if torrent.approved == false %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true %}
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }} ({{ 'sensitive' | trans }})
{% else %}
{{ torrent.name }}

View file

@ -0,0 +1,39 @@
<div class="row">
<div class="column width-80">
<a class="margin-r-4-px" href="{{ path('user_info', { userId : user.id }) }}">
<img class="border-radius-50 border-color-default vertical-align-middle" src="{{ user.identicon }}" alt="{{ 'identicon' | trans }}" />
</a>
{{ 'have added poster edition' | trans }}
{% if torrent.poster.exist %}
<a href="{{ path('torrent_poster_edit', { torrentId : torrent.id, torrentPosterId : torrent.poster.id }) }}">
#{{ torrent.poster.id }}
</a>
{% else %}
#{{ torrent.poster.id }}
{% endif %}
{{ 'for torrent' | trans }}
{% if session.user.moderator or session.user.owner %}
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
{{ torrent.name }}
</a>
{% if torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% endif %}
{% else %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }}
{% else %}
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
{{ torrent.name }}
</a>
{% endif %}
{% endif %}
</div>
<div class="column width-20 text-right">
{{ added | format_ago }}
</div>
</div>

View file

@ -0,0 +1,26 @@
<item>
<title>
{{ 'User' | trans }}
#{{ user.id }}
{{ 'have added poster edition' | trans }}
#{{ torrent.poster.id }}
{{ 'for torrent' | trans }}
{% if session.user.moderator or session.user.owner %}
{{ torrent.name }}
{% else %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }}
{% else %}
{{ torrent.name }}
{% endif %}
{% endif %}
</title>
<author>#{{ user.id }}</author>
<pubDate>{{ added | date('D, d M Y h:i:s O') }}</pubDate>
<guid>{{ url('torrent_poster_edit', { torrentId : torrent.id, torrentPosterId : torrent.poster.id }) }}#activity-{{ id }}</guid>
<link>{{ url('torrent_poster_edit', { torrentId : torrent.id, torrentPosterId : torrent.poster.id }) }}#activity</link>
</item>

View file

@ -0,0 +1,39 @@
<div class="row">
<div class="column width-80">
<a class="margin-r-4-px" href="{{ path('user_info', { userId : user.id }) }}">
<img class="border-radius-50 border-color-default vertical-align-middle" src="{{ user.identicon }}" alt="{{ 'identicon' | trans }}" />
</a>
{{ 'have approved poster edition' | trans }}
{% if torrent.poster.exist %}
<a href="{{ path('torrent_poster_edit', { torrentId : torrent.id, torrentPosterId : torrent.poster.id }) }}">
#{{ torrent.poster.id }}
</a>
{% else %}
#{{ torrent.poster.id }}
{% endif %}
{{ 'for torrent' | trans }}
{% if session.user.moderator or session.user.owner %}
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
{{ torrent.name }}
</a>
{% if torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% endif %}
{% else %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }}
{% else %}
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
{{ torrent.name }}
</a>
{% endif %}
{% endif %}
</div>
<div class="column width-20 text-right">
{{ added | format_ago }}
</div>
</div>

View file

@ -0,0 +1,26 @@
<item>
<title>
{{ 'User' | trans }}
#{{ user.id }}
{{ 'have approved poster edition' | trans }}
#{{ torrent.poster.id }}
{{ 'for torrent' | trans }}
{% if session.user.moderator or session.user.owner %}
{{ torrent.name }}
{% else %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }}
{% else %}
{{ torrent.name }}
{% endif %}
{% endif %}
</title>
<author>#{{ user.id }}</author>
<pubDate>{{ added | date('D, d M Y h:i:s O') }}</pubDate>
<guid>{{ url('torrent_poster_edit', { torrentId : torrent.id, torrentPosterId : torrent.poster.id }) }}#activity-{{ id }}</guid>
<link>{{ url('torrent_poster_edit', { torrentId : torrent.id, torrentPosterId : torrent.poster.id }) }}#activity</link>
</item>

View file

@ -0,0 +1,39 @@
<div class="row">
<div class="column width-80">
<a class="margin-r-4-px" href="{{ path('user_info', { userId : user.id }) }}">
<img class="border-radius-50 border-color-default vertical-align-middle" src="{{ user.identicon }}" alt="{{ 'identicon' | trans }}" />
</a>
{{ 'have disapproved poster edition' | trans }}
{% if torrent.poster.exist %}
<a href="{{ path('torrent_poster_edit', { torrentId : torrent.id, torrentPosterId : torrent.poster.id }) }}">
#{{ torrent.poster.id }}
</a>
{% else %}
#{{ torrent.poster.id }}
{% endif %}
{{ 'for torrent' | trans }}
{% if session.user.moderator or session.user.owner %}
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
{{ torrent.name }}
</a>
{% if torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% endif %}
{% else %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }}
{% else %}
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
{{ torrent.name }}
</a>
{% endif %}
{% endif %}
</div>
<div class="column width-20 text-right">
{{ added | format_ago }}
</div>
</div>

View file

@ -0,0 +1,26 @@
<item>
<title>
{{ 'User' | trans }}
#{{ user.id }}
{{ 'have disapproved poster edition' | trans }}
#{{ torrent.poster.id }}
{{ 'for torrent' | trans }}
{% if session.user.moderator or session.user.owner %}
{{ torrent.name }}
{% else %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }}
{% else %}
{{ torrent.name }}
{% endif %}
{% endif %}
</title>
<author>#{{ user.id }}</author>
<pubDate>{{ added | date('D, d M Y h:i:s O') }}</pubDate>
<guid>{{ url('torrent_poster_edit', { torrentId : torrent.id, torrentPosterId : torrent.poster.id }) }}#activity-{{ id }}</guid>
<link>{{ url('torrent_poster_edit', { torrentId : torrent.id, torrentPosterId : torrent.poster.id }) }}#activity</link>
</item>

View file

@ -0,0 +1,39 @@
<div class="row">
<div class="column width-80">
<a class="margin-r-4-px" href="{{ path('user_info', { userId : user.id }) }}">
<img class="border-radius-50 border-color-default vertical-align-middle" src="{{ user.identicon }}" alt="{{ 'identicon' | trans }}" />
</a>
{{ 'have deleted poster edition' | trans }}
{% if torrent.poster.exist %}
<a href="{{ path('torrent_poster_edit', { torrentId : torrent.id, torrentPosterId : torrent.poster.id }) }}">
#{{ torrent.poster.id }}
</a>
{% else %}
#{{ torrent.poster.id }}
{% endif %}
{{ 'for torrent' | trans }}
{% if session.user.moderator or session.user.owner %}
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
{{ torrent.name }}
</a>
{% if torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% endif %}
{% else %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }}
{% else %}
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
{{ torrent.name }}
</a>
{% endif %}
{% endif %}
</div>
<div class="column width-20 text-right">
{{ added | format_ago }}
</div>
</div>

View file

@ -0,0 +1,26 @@
<item>
<title>
{{ 'User' | trans }}
#{{ user.id }}
{{ 'have deleted poster edition' | trans }}
#{{ torrent.poster.id }}
{{ 'for torrent' | trans }}
{% if session.user.moderator or session.user.owner %}
{{ torrent.name }}
{% else %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }}
{% else %}
{{ torrent.name }}
{% endif %}
{% endif %}
</title>
<author>#{{ user.id }}</author>
<pubDate>{{ added | date('D, d M Y h:i:s O') }}</pubDate>
<guid>{{ url('torrent_poster_edit', { torrentId : torrent.id }) }}#activity-{{ id }}</guid>
<link>{{ url('torrent_poster_edit', { torrentId : torrent.id }) }}#activity</link>
</item>

View file

@ -20,10 +20,12 @@
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% endif %}
{% else %}
{% if torrent.approved == false %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true %}
#{{ torrent.id }} ({{ 'sensitive' | trans }})
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }}
{% else %}
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
{{ torrent.name }}

View file

@ -8,10 +8,12 @@
{% if session.user.moderator or session.user.owner %}
{{ torrent.name }}
{% else %}
{% if torrent.approved == false %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true %}
#{{ torrent.id }} ({{ 'sensitive' | trans }})
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }}
{% else %}
{{ torrent.name }}
{% endif %}

View file

@ -20,10 +20,12 @@
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% endif %}
{% else %}
{% if torrent.approved == false %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true %}
#{{ torrent.id }} ({{ 'sensitive' | trans }})
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }}
{% else %}
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
{{ torrent.name }}

View file

@ -8,10 +8,12 @@
{% if session.user.moderator or session.user.owner %}
{{ torrent.name }}
{% else %}
{% if torrent.approved == false %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true %}
#{{ torrent.id }} ({{ 'sensitive' | trans }})
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }}
{% else %}
{{ torrent.name }}
{% endif %}

View file

@ -20,10 +20,12 @@
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% endif %}
{% else %}
{% if torrent.approved == false %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true %}
#{{ torrent.id }} ({{ 'sensitive' | trans }})
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }}
{% else %}
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
{{ torrent.name }}

View file

@ -8,10 +8,12 @@
{% if session.user.moderator or session.user.owner %}
{{ torrent.name }}
{% else %}
{% if torrent.approved == false %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true %}
#{{ torrent.id }} ({{ 'sensitive' | trans }})
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }}
{% else %}
{{ torrent.name }}
{% endif %}

View file

@ -20,10 +20,12 @@
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% endif %}
{% else %}
{% if torrent.approved == false %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true %}
#{{ torrent.id }} ({{ 'sensitive' | trans }})
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }}
{% else %}
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
{{ torrent.name }}

View file

@ -8,10 +8,12 @@
{% if session.user.moderator or session.user.owner %}
{{ torrent.name }}
{% else %}
{% if torrent.approved == false %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true %}
#{{ torrent.id }} ({{ 'sensitive' | trans }})
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }}
{% else %}
{{ torrent.name }}
{% endif %}

View file

@ -12,9 +12,11 @@
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% endif %}
{% else %}
{% if torrent.approved == false %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true %}
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }} ({{ 'sensitive' | trans }})
{% else %}
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">

View file

@ -6,9 +6,11 @@
{% if session.user.moderator or session.user.owner %}
{{ torrent.name }}
{% else %}
{% if torrent.approved == false %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true %}
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }} ({{ 'sensitive' | trans }})
{% else %}
{{ torrent.name }}

View file

@ -13,9 +13,11 @@
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% endif %}
{% else %}
{% if torrent.approved == false %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true %}
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }} ({{ 'sensitive' | trans }})
{% else %}
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">

View file

@ -6,9 +6,11 @@
{% if session.user.moderator or session.user.owner %}
{{ torrent.name }}
{% else %}
{% if torrent.approved == false %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true %}
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }} ({{ 'sensitive' | trans }})
{% else %}
{{ torrent.name }}

View file

@ -0,0 +1,30 @@
<div class="row">
<div class="column width-80">
<a href="{{ path('user_info', { userId : user.id }) }}">
<img class="border-radius-50 border-color-default vertical-align-middle" src="{{ user.identicon }}" alt="{{ 'identicon' | trans }}" />
</a>
<span class="margin-l-4-px">
{{ 'have enabled torrent' | trans }}
</span>
{% if session.user.moderator or session.user.owner %}
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
{{ torrent.name }}
</a>
{% else %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }} ({{ 'sensitive' | trans }})
{% else %}
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
{{ torrent.name }}
</a>
{% endif %}
{% endif %}
</div>
<div class="column width-20 text-right">
{{ added | format_ago }}
</div>
</div>

View file

@ -0,0 +1,26 @@
<item>
<title>
{{ 'User' | trans }}
#{{ user.id }}
{{ 'have enabled torrent' | trans }}
{% if session.user.moderator or session.user.owner %}
{{ torrent.name }}
{% else %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }} ({{ 'sensitive' | trans }})
{% else %}
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
{{ torrent.name }}
</a>
{% endif %}
{% endif %}
</title>
<author>#{{ user.id }}</author>
<pubDate>{{ added | date('D, d M Y h:i:s O') }}</pubDate>
<guid>{{ url('torrent_info', { torrentId : torrent.id }) }}#activity-{{ id }}</guid>
<link>{{ url('torrent_info', { torrentId : torrent.id }) }}#activity</link>
</item>

View file

@ -0,0 +1,30 @@
<div class="row">
<div class="column width-80">
<a href="{{ path('user_info', { userId : user.id }) }}">
<img class="border-radius-50 border-color-default vertical-align-middle" src="{{ user.identicon }}" alt="{{ 'identicon' | trans }}" />
</a>
<span class="margin-l-4-px">
{{ 'have disabled torrent' | trans }}
</span>
{% if session.user.moderator or session.user.owner %}
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
{{ torrent.name }}
</a>
{% else %}
{% if torrent.status == false %}
#{{ torrent.id }}
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }} ({{ 'sensitive' | trans }})
{% else %}
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
{{ torrent.name }}
</a>
{% endif %}
{% endif %}
</div>
<div class="column width-20 text-right">
{{ added | format_ago }}
</div>
</div>

View file

@ -0,0 +1,26 @@
<item>
<title>
{{ 'User' | trans }}
#{{ user.id }}
{{ 'have disabled torrent' | trans }}
{% if session.user.moderator or session.user.owner %}
{{ torrent.name }}
{% else %}
{% if torrent.status == false %}
#{{ torrent.id }}
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }} ({{ 'sensitive' | trans }})
{% else %}
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
{{ torrent.name }}
</a>
{% endif %}
{% endif %}
</title>
<author>#{{ user.id }}</author>
<pubDate>{{ added | date('D, d M Y h:i:s O') }}</pubDate>
<guid>{{ url('torrent_info', { torrentId : torrent.id }) }}#activity-{{ id }}</guid>
<link>{{ url('torrent_info', { torrentId : torrent.id }) }}#activity</link>
</item>

View file

@ -6,7 +6,11 @@
{{ torrent.name }}
</a>
{% else %}
{% if torrent.sensitive == true %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }} ({{ 'sensitive' | trans }})
{% else %}
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">

View file

@ -4,7 +4,11 @@
{% if session.user.moderator or session.user.owner %}
{{ torrent.name }}
{% else %}
{% if torrent.sensitive == true %}
{% if torrent.status == false %}
#{{ torrent.id }} ({{ 'disabled' | trans }})
{% elseif torrent.approved == false %}
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
#{{ torrent.id }} ({{ 'sensitive' | trans }})
{% else %}
{{ torrent.name }}

View file

@ -16,18 +16,19 @@
<header>
<div class="container">
<div class="row margin-y-16-px text-center">
<a class="logo display-inline-block margin-b-8-px" href="{{ path('torrent_recent') }}">
<a class="logo display-inline-block{#32 margin-b-8-px #}" href="{{ path('torrent_recent') }}">
<span>YGG</span>tracker
</a>
{#32
<div class="font-size-10-px text-center text-color-night">
{{ '<a href="%s">Upload</a> any torrent - download with Yggdrasil' | trans | format(path('torrent_submit')) | raw }}
</div>
#}
{% block header_search %}
{{ render(controller(
'App\\Controller\\SearchController::module',
{
query : app.request.get('query'),
type : app.request.get('type')
request: app.request
}
)) }}
{% endblock %}

View file

@ -1,4 +1,69 @@
<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 }}" />
<input {% if query %}class="button-green"{% endif %} type="submit" value="{{ 'Search' | trans }}" />
{% if filter %}
<input type="hidden" name="filter" value="true" />
<div class="text-left">
<div class="margin-t-16-px margin-b-4-px padding-x-4-px text-right">
{{ 'Locales' | trans }}
</div>
<div class="padding-t-16-px padding-b-8-px padding-x-24-px border-top-default">
{% for locale in locales | sort %}
{#{% if locale.total %}#}
<div class="margin-t-4-px margin-b-8-px margin-r-8-px display-inline-block min-width-120-px">
{% if locale.checked %}
<input name="locales[]" id="{{ locale.value }}" type="checkbox" value="{{ locale.value }}" checked="checked" />
{% else %}
<input name="locales[]" id="{{ locale.value }}" type="checkbox" value="{{ locale.value }}" />
{% endif %}
<label class="margin-x-4-px" for="{{ locale.value }}">
{{ locale.value | locale_name(locale.value) | u.title }}
<span class="text-color-night">
({{ locale.total }})
</span>
</label>
</div>
{#{% endif %}#}
{% endfor %}
</div>
<div class="margin-b-4-px padding-x-4-px text-right">
{{ 'Categories' | trans }}
</div>
<div class="padding-t-16-px padding-b-8-px padding-x-24-px border-top-default">
{% for category in categories | sort %}
{#{% if category.total %}#}
<div class="margin-t-4-px margin-b-8-px margin-r-8-px display-inline-block min-width-120-px">
{% if category.checked %}
<input name="categories[]" id="{{ category.value }}" type="checkbox" value="{{ category.value }}" checked="checked" />
{% else %}
<input name="categories[]" id="{{ category.value }}" type="checkbox" value="{{ category.value }}" />
{% endif %}
<label class="margin-x-4-px" for="{{ category.value }}">
{{ category.value | trans_category | u.title }}
<span class="text-color-night">
({{ category.total }})
</span>
</label>
</div>
{#{% endif %}#}
{% endfor %}
</div>
<div class="margin-b-4-px padding-x-4-px text-right">
{{ 'other' | trans | u.title }}
</div>
<div class="padding-t-16-px padding-b-8-px padding-x-24-px border-top-default">
{% if sensitive.checked %}
<input name="sensitive" id="sensitive" type="checkbox" value="true" checked="checked" />
{% else %}
<input name="sensitive" id="sensitive" type="checkbox" value="true" />
{% endif %}
<label class="margin-x-4-px" for="sensitive">
{{ 'Sensitive' | trans }}
<span class="text-color-night">
({{ sensitive.total }})
</span>
</label>
</div>
</div>
{% endif %}
</form>

View file

@ -0,0 +1,109 @@
{% extends 'default/layout.html.twig' %}
{% block title %}{{'Edit categories'|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-16-px padding-b-16-px border-bottom-default">
<h1>
{{'Edit categories for torrent' | trans }}
<a href="{{ path('torrent_info', { torrentId : torrentId }) }}">#{{ torrentId }}</a>
</h1>
</div>
<form name="categories" method="post" action="{{ path('torrent_categories_edit', { torrentId : torrentId }) }}">
<div class="margin-y-16-px">
<label for="categories">
{{'Content category'|trans }}
</label>
<sub class="opacity-0 parent-hover-opacity-09" title="{{ 'This torrent have selected categories' | trans }}">
<svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" fill="currentColor" viewBox="0 0 16 16">
<path d="M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"/>
</svg>
</sub>
{% for error in form.categories.error %}
<div class="text-color-red margin-y-8-px">
{{ error }}
</div>
{% endfor %}
<div class="margin-t-8-px margin-b-16-px">
{% for category in categories | sort %}
<div class="margin-t-8-px margin-b-4-px margin-r-8-px display-inline-block min-width-120-px">
{% if category in form.categories.attribute.value %}
<input type="checkbox" name="categories[]" id="{{ category }}" value="{{ category }}" checked="checked" />
{% else %}
<input type="checkbox" name="categories[]" id="{{ category }}" value="{{ category }}" />
{% endif %}
<label class="margin-l-4-px" for="{{ category }}">
{{ category | trans_category | u.title }}
</label>
</div>
{% endfor %}
{#
<option class="padding-x-8-px padding-y-8-px" value="other">
{{'Other...'|trans }}
</option>
#}
</div>
<div class="margin-b-16-px border-bottom-default"></div>
</div>
<div class="text-right">
<a class="margin-r-8-px" href="{{ path('torrent_info', { torrentId : torrentId }) }}">
{{'cancel'|trans }}
</a>
<input class="button-green" type="submit" value="{{'Submit'|trans }}" />
</div>
</form>
</div>
{% for edition in editions %}
<div class="padding-x-24-px padding-y-16-px margin-y-8-px border-radius-3-px {% if edition.active %}background-color-night-light{% else %}background-color-night{% endif %} ">
{% if edition.active %}
{{ edition.added | format_ago }}
{% else %}
<a href="{{ path('torrent_categories_edit', { torrentId : torrentId, torrentCategoriesId : edition.id }) }}">
{{ edition.added | format_ago }}
</a>
{% endif %}
{{ '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>
<div class="float-right">
{% if session.moderator or session.owner %}
<a class="margin-r-8-px text-color-red" href="{{ path('torrent_categories_delete', { torrentId : torrentId, torrentCategoriesId : edition.id }) }}" title="{{ 'Delete' | trans }}">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-circle" viewBox="0 0 16 16">
<path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"/>
<path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"/>
</svg>
</a>
{% endif %}
{% if edition.approved %}
{% if session.moderator %}
<a href="{{ path('torrent_categories_approve', { torrentId : torrentId, torrentCategoriesId : edition.id }) }}" title="{{ 'Disapprove' | trans }}">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
<path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z"/>
</svg>
</a>
{% else %}
<span title="{{ 'Approved' | trans }}">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
<path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z"/>
</svg>
</span>
{% endif %}
{% else %}
{% if session.moderator %}
<a href="{{ path('torrent_categories_approve', { torrentId : torrentId, torrentCategoriesId : edition.id }) }}" title="{{ 'Approve' | trans }}">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-hourglass" viewBox="0 0 16 16">
<path d="M2 1.5a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-1v1a4.5 4.5 0 0 1-2.557 4.06c-.29.139-.443.377-.443.59v.7c0 .213.154.451.443.59A4.5 4.5 0 0 1 12.5 13v1h1a.5.5 0 0 1 0 1h-11a.5.5 0 1 1 0-1h1v-1a4.5 4.5 0 0 1 2.557-4.06c.29-.139.443-.377.443-.59v-.7c0-.213-.154-.451-.443-.59A4.5 4.5 0 0 1 3.5 3V2h-1a.5.5 0 0 1-.5-.5zm2.5.5v1a3.5 3.5 0 0 0 1.989 3.158c.533.256 1.011.791 1.011 1.491v.702c0 .7-.478 1.235-1.011 1.491A3.5 3.5 0 0 0 4.5 13v1h7v-1a3.5 3.5 0 0 0-1.989-3.158C8.978 9.586 8.5 9.052 8.5 8.351v-.702c0-.7.478-1.235 1.011-1.491A3.5 3.5 0 0 0 11.5 3V2h-7z"/>
</svg>
</a>
{% else %}
<span title="{{ 'Waiting for approve' | trans }}">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-hourglass" viewBox="0 0 16 16">
<path d="M2 1.5a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-1v1a4.5 4.5 0 0 1-2.557 4.06c-.29.139-.443.377-.443.59v.7c0 .213.154.451.443.59A4.5 4.5 0 0 1 12.5 13v1h1a.5.5 0 0 1 0 1h-11a.5.5 0 1 1 0-1h1v-1a4.5 4.5 0 0 1 2.557-4.06c.29-.139.443-.377.443-.59v-.7c0-.213-.154-.451-.443-.59A4.5 4.5 0 0 1 3.5 3V2h-1a.5.5 0 0 1-.5-.5zm2.5.5v1a3.5 3.5 0 0 0 1.989 3.158c.533.256 1.011.791 1.011 1.491v.702c0 .7-.478 1.235-1.011 1.491A3.5 3.5 0 0 0 4.5 13v1h7v-1a3.5 3.5 0 0 0-1.989-3.158C8.978 9.586 8.5 9.052 8.5 8.351v-.702c0-.7.478-1.235 1.011-1.491A3.5 3.5 0 0 0 11.5 3V2h-7z"/>
</svg>
</span>
{% endif %}
{% endif %}
</div>
</div>
{% endfor %}
{% endblock %}

View file

@ -24,7 +24,7 @@
</div>
{% endfor %}
<div class="margin-t-8-px margin-b-16-px">
{% for locale in locales %}
{% for locale in locales | sort %}
<div class="margin-t-8-px margin-b-4-px margin-r-8-px display-inline-block min-width-120-px">
{% if locale in form.locales.attribute.value %}
<input type="checkbox" name="locales[]" id="{{ locale }}" value="{{ locale }}" checked="checked" />

View file

@ -0,0 +1,121 @@
{% extends 'default/layout.html.twig' %}
{% block title %}{{ 'Edit torrent poster' | 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 poster for torrent' | trans }}
<a href="{{ path('torrent_info', { torrentId : torrentId }) }}">#{{ torrentId }}</a>
</h1>
</div>
<form name="poster" method="post" enctype="multipart/form-data" action="{{ path('torrent_poster_edit', { torrentId : torrentId }) }}">
<div class="margin-y-16-px">
{% for error in form.poster.error %}
<div class="text-color-red margin-b-8-px">
{{ error }}
</div>
{% endfor %}
<input class="width-100" type="file" name="poster" value="" />
</div>
<div class="margin-y-16-px">
<input type="radio" name="position" id="position-center" value="center" {% if form.position.attribute.value == 'center' %}checked="checked"{% endif %} />
<label class="margin-x-4-px" for="position-center">
{{ 'Center' | trans }}
</label>
<input type="radio" name="position" id="position-top" value="top" {% if form.position.attribute.value == 'top' %}checked="checked"{% endif %} />
<label class="margin-x-4-px" for="position-top">
{{ 'Top' | trans }}
</label>
<input type="radio" name="position" id="position-bottom" value="bottom" {% if form.position.attribute.value == 'bottom' %}checked="checked"{% endif %} />
<label class="margin-x-4-px" for="position-bottom">
{{ 'Bottom' | trans }}
</label>
</div>
<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 }}
</a>
<input class="button-green" type="submit" value="{{'Submit'|trans }}" />
</div>
</form>
</div>
{% for edition in editions %}
<div class="padding-x-24-px padding-y-16-px margin-y-8-px border-radius-3-px {% if edition.active %}background-color-night-light{% else %}background-color-night{% endif %} {% if edition.poster %}background-poster{% endif %}"
{% if edition.poster %}style="background-image:url('{{ edition.poster }}');background-position:{{ edition.position }}"{% endif %}>
{% if edition.active %}
{{ edition.added | format_ago }}
{% else %}
<a href="{{ path('torrent_poster_edit', { torrentId : torrentId, torrentPosterId : edition.id }) }}">
{{ edition.added | format_ago }}
</a>
{% endif %}
{{ '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>
<div class="float-right">
{% if session.moderator or session.owner %}
<a class="margin-r-8-px text-color-red" href="{{ path('torrent_poster_delete', { torrentId : torrentId, torrentPosterId : edition.id }) }}" title="{{ 'Delete' | trans }}">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-circle" viewBox="0 0 16 16">
<path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"/>
<path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"/>
</svg>
</a>
{% endif %}
{% if edition.approved %}
{% if session.moderator %}
<a href="{{ path('torrent_poster_approve', { torrentId : torrentId, torrentPosterId : edition.id }) }}" title="{{ 'Disapprove' | trans }}">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
<path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z"/>
</svg>
</a>
{% else %}
<span title="{{ 'Approved' | trans }}">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
<path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z"/>
</svg>
</span>
{% endif %}
{% else %}
{% if session.moderator %}
<a href="{{ path('torrent_poster_approve', { torrentId : torrentId, torrentPosterId : edition.id }) }}" title="{{ 'Approve' | trans }}">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-hourglass" viewBox="0 0 16 16">
<path d="M2 1.5a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-1v1a4.5 4.5 0 0 1-2.557 4.06c-.29.139-.443.377-.443.59v.7c0 .213.154.451.443.59A4.5 4.5 0 0 1 12.5 13v1h1a.5.5 0 0 1 0 1h-11a.5.5 0 1 1 0-1h1v-1a4.5 4.5 0 0 1 2.557-4.06c.29-.139.443-.377.443-.59v-.7c0-.213-.154-.451-.443-.59A4.5 4.5 0 0 1 3.5 3V2h-1a.5.5 0 0 1-.5-.5zm2.5.5v1a3.5 3.5 0 0 0 1.989 3.158c.533.256 1.011.791 1.011 1.491v.702c0 .7-.478 1.235-1.011 1.491A3.5 3.5 0 0 0 4.5 13v1h7v-1a3.5 3.5 0 0 0-1.989-3.158C8.978 9.586 8.5 9.052 8.5 8.351v-.702c0-.7.478-1.235 1.011-1.491A3.5 3.5 0 0 0 11.5 3V2h-7z"/>
</svg>
</a>
{% else %}
<span title="{{ 'Waiting for approve' | trans }}">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-hourglass" viewBox="0 0 16 16">
<path d="M2 1.5a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-1v1a4.5 4.5 0 0 1-2.557 4.06c-.29.139-.443.377-.443.59v.7c0 .213.154.451.443.59A4.5 4.5 0 0 1 12.5 13v1h1a.5.5 0 0 1 0 1h-11a.5.5 0 1 1 0-1h1v-1a4.5 4.5 0 0 1 2.557-4.06c.29-.139.443-.377.443-.59v-.7c0-.213-.154-.451-.443-.59A4.5 4.5 0 0 1 3.5 3V2h-1a.5.5 0 0 1-.5-.5zm2.5.5v1a3.5 3.5 0 0 0 1.989 3.158c.533.256 1.011.791 1.011 1.491v.702c0 .7-.478 1.235-1.011 1.491A3.5 3.5 0 0 0 4.5 13v1h7v-1a3.5 3.5 0 0 0-1.989-3.158C8.978 9.586 8.5 9.052 8.5 8.351v-.702c0-.7.478-1.235 1.011-1.491A3.5 3.5 0 0 0 11.5 3V2h-7z"/>
</svg>
</span>
{% endif %}
{% endif %}
</div>
{% if edition.active %}
<form name="poster-edition-{{ edition.id }}" method="post" action="{{ path('torrent_poster_edit', { torrentId : torrentId }) }}">
<input type="hidden" name="id" value="{{ edition.id }}" />
<div class="margin-y-16-px">
<input type="radio" name="position" id="poster-edition-{{ edition.id }}-position-center" value="center" {% if edition.position == 'center' %}checked="checked"{% endif %} />
<label class="margin-x-4-px" for="poster-edition-{{ edition.id }}-position-center">
{{ 'Center' | trans }}
</label>
<input type="radio" name="position" id="poster-edition-{{ edition.id }}-position-top" value="top" {% if edition.position == 'top' %}checked="checked"{% endif %} />
<label class="margin-x-4-px" for="poster-edition-{{ edition.id }}-position-top">
{{ 'Top' | trans }}
</label>
<input type="radio" name="position" id="poster-edition-{{ edition.id }}-position-bottom" value="bottom" {% if edition.position == 'bottom' %}checked="checked"{% endif %} />
<label class="margin-x-4-px" for="poster-edition-{{ edition.id }}-position-bottom">
{{ 'Bottom' | trans }}
</label>
</div>
<div class="padding-t-4-px margin-b-16-px border-bottom-default"></div>
<div class="text-right">
<input class="button-green" type="submit" value="{{'Submit'|trans }}" />
</div>
</form>
{% endif %}
</div>
{% endfor %}
{% endblock %}

View file

@ -2,16 +2,18 @@
{% import _self as self %}
{% for key, value in tree %}
{% if value is iterable %}
<div class="padding-l-8-px cursor-default">
<div class="padding-y-4-px">
{{ key }}
</div>
<div class="padding-x-4-px margin-b-4-px cursor-default line-height-20-px word-break">
{{ key }}
</div>
<div class="padding-l-8-px">
{{ self.recursive_file_tree(value) }}
</div>
{% else %}
<div class="padding-y-4-px padding-l-8-px background-color-hover-night-light cursor-default">
{{ key }}
<div class="float-right padding-x-8-px">
<div class="row padding-x-4-px margin-b-4-px cursor-default background-color-hover-night-light word-break">
<div class="column width-80 line-height-20-px">
{{ key }}
</div>
<div class="column width-20 line-height-20-px text-right">
{{ value | format_bytes }}
</div>
</div>
@ -27,7 +29,8 @@
{% endif %}
{% endblock %}
{% block main_content %}
<div class="padding-24-px margin-y-8-px border-radius-3-px background-color-night">
<div class="padding-24-px margin-y-8-px border-radius-3-px background-color-night {% if torrent.poster %}background-poster{% endif %}"
{% if torrent.poster %}style="background-image:url('{{ torrent.poster.url }}');background-position:{{ torrent.poster.position }}"{% endif %}>
<h1 class="display-block text-center margin-b-16-px">
{{ file.name }}
{#{{ 'Torrent' | trans }} #{{ torrent.id }}#}
@ -78,7 +81,7 @@
</div>
<table class="width-100">
<tbody>
{% if session.moderator %}
{% if session.moderator or session.owner %}
<tr>
<td colspan="2">
<div class="padding-y-8-px border-bottom-default text-right">
@ -88,19 +91,19 @@
</tr>
<tr>
<td class="padding-t-16-px">
{{ 'Approved' | trans }}
{{ 'Enabled' | trans }}
</td>
<td class="padding-t-16-px">
{% if torrent.approved %}
{% if torrent.status %}
{{ 'Yes' | trans }}
<a class="float-right" href="{{ path('torrent_approve_toggle', { torrentId : torrent.id }) }}" title="{{ 'Toggle' | trans }}">
<a rel="nofollow" class="float-right" href="{{ path('torrent_status_toggle', { torrentId : torrent.id }) }}" title="{{ 'Toggle' | trans }}">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
<path d="M5 3a5 5 0 0 0 0 10h6a5 5 0 0 0 0-10H5zm6 9a4 4 0 1 1 0-8 4 4 0 0 1 0 8z"/>
</svg>
</a>
{% else %}
{{ 'No' | trans }}
<a class="float-right text-color-red" href="{{ path('torrent_approve_toggle', { torrentId : torrent.id }) }}" title="{{ 'Toggle' | trans }}">
<a rel="nofollow" class="float-right text-color-red" href="{{ path('torrent_status_toggle', { torrentId : torrent.id }) }}" title="{{ 'Toggle' | trans }}">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
<path d="M11 4a4 4 0 0 1 0 8H8a4.992 4.992 0 0 0 2-4 4.992 4.992 0 0 0-2-4h3zm-6 8a4 4 0 1 1 0-8 4 4 0 0 1 0 8zM0 8a5 5 0 0 0 5 5h6a5 5 0 0 0 0-10H5a5 5 0 0 0-5 5z"/>
</svg>
@ -108,6 +111,30 @@
{% endif %}
</td>
</tr>
{% if session.moderator %}
<tr>
<td>
{{ 'Approved' | trans }}
</td>
<td>
{% if torrent.approved %}
{{ 'Yes' | trans }}
<a rel="nofollow" class="float-right" href="{{ path('torrent_approve_toggle', { torrentId : torrent.id }) }}" title="{{ 'Toggle' | trans }}">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
<path d="M5 3a5 5 0 0 0 0 10h6a5 5 0 0 0 0-10H5zm6 9a4 4 0 1 1 0-8 4 4 0 0 1 0 8z"/>
</svg>
</a>
{% else %}
{{ 'No' | trans }}
<a rel="nofollow" class="float-right text-color-red" href="{{ path('torrent_approve_toggle', { torrentId : torrent.id }) }}" title="{{ 'Toggle' | trans }}">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
<path d="M11 4a4 4 0 0 1 0 8H8a4.992 4.992 0 0 0 2-4 4.992 4.992 0 0 0-2-4h3zm-6 8a4 4 0 1 1 0-8 4 4 0 0 1 0 8zM0 8a5 5 0 0 0 5 5h6a5 5 0 0 0 0-10H5a5 5 0 0 0-5 5z"/>
</svg>
</a>
{% endif %}
</td>
</tr>
{% endif %}
{% endif %}
<tr>
<td colspan="2">
@ -193,13 +220,26 @@
</td>
</tr>
{% endif %}
<tr>
<td>
{{ 'Private' | trans }}
</td>
<td>
{% if file.private %}
{{ 'Yes' | trans }}
{% else %}
{{ 'No' | trans }}
{% endif %}
</td>
</tr>
{% if file.source %}
<tr>
<td>
{{ 'Source' | trans }}
</td>
<td>
{{ file.source }}
{# strip all tags then apply whitelist markdown filters to prevent ping from remote #}
{{ file.source | trim | striptags | url_to_markdown | markdown_to_html | nl2br }}
</td>
</tr>
{% endif %}
@ -209,7 +249,8 @@
{{ 'Software' | trans }}
</td>
<td>
{{ file.software }}
{# strip all tags then apply whitelist markdown filters to prevent ping from remote #}
{{ file.software | trim | striptags | url_to_markdown | markdown_to_html | nl2br }}
</td>
</tr>
{% endif %}
@ -219,7 +260,8 @@
{{ 'Comment' | trans }}
</td>
<td>
{{ file.comment }}
{# strip all tags then apply whitelist markdown filters to prevent ping from remote #}
{{ file.comment | trim | striptags | url_to_markdown | markdown_to_html | nl2br }}
</td>
</tr>
{% endif %}
@ -290,7 +332,7 @@
</div>
<div class="padding-y-16-px">
{% for tracker, status in trackers %}
<div class="padding-y-4-px">
<div class="padding-y-4-px word-break">
{% if status %}
{{ tracker }}
{% else %}
@ -307,23 +349,41 @@
{% endfor %}
</div>
<div class="text-right">
<a class="margin-r-4-px{#opacity-0 parent-hover-opacity-09#}" href="{{ path('torrent_locales_edit', { torrentId : torrent.id }) }}" title="{{'Edit'|trans }}">
<a rel="nofollow" class="margin-r-4-px{#opacity-0 parent-hover-opacity-09#}" href="{{ path('torrent_locales_edit', { torrentId : torrent.id }) }}" title="{{ 'Edit' | trans }}">
<svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" fill="currentColor" viewBox="0 0 16 16">
<path d="M12.854.146a.5.5 0 0 0-.707 0L10.5 1.793 14.207 5.5l1.647-1.646a.5.5 0 0 0 0-.708l-3-3zm.646 6.061L9.793 2.5 3.293 9H3.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.207l6.5-6.5zm-7.468 7.468A.5.5 0 0 1 6 13.5V13h-.5a.5.5 0 0 1-.5-.5V12h-.5a.5.5 0 0 1-.5-.5V11h-.5a.5.5 0 0 1-.5-.5V10h-.5a.499.499 0 0 1-.175-.032l-.179.178a.5.5 0 0 0-.11.168l-2 5a.5.5 0 0 0 .65.65l5-2a.5.5 0 0 0 .168-.11l.178-.178z"/>
</svg>
</a>
{{ 'Locales' | trans }}
{{ 'Locale' | trans }}
<div class="padding-b-8-px border-bottom-default"></div>
<div class="padding-t-16-px text-left">
{% if torrent.locales %}
<div class="padding-y-4-px">
{% for i, locale in torrent.locales %}{% if i > 0 %},{% endif %} {{ locale|locale_name(locale)|u.title }}{% endfor %}
{% set i = 0 %}
{% for locale in torrent.locales | sort %}{% if i > 0 %},{% endif %} {{ locale | locale_name(locale) | u.title }}{% set i = i + 1 %}{% endfor %}
</div>
{% endif %}
</div>
</div>
<div class="text-right">
<a class="margin-r-4-px{#opacity-0 parent-hover-opacity-09#}" href="{{ path('torrent_sensitive_edit', { torrentId : torrent.id }) }}" title="{{'Edit'|trans }}">
<a rel="nofollow" class="margin-r-4-px{#opacity-0 parent-hover-opacity-09#}" href="{{ path('torrent_categories_edit', { torrentId : torrent.id }) }}" title="{{ 'Edit' | trans }}">
<svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" fill="currentColor" viewBox="0 0 16 16">
<path d="M12.854.146a.5.5 0 0 0-.707 0L10.5 1.793 14.207 5.5l1.647-1.646a.5.5 0 0 0 0-.708l-3-3zm.646 6.061L9.793 2.5 3.293 9H3.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.207l6.5-6.5zm-7.468 7.468A.5.5 0 0 1 6 13.5V13h-.5a.5.5 0 0 1-.5-.5V12h-.5a.5.5 0 0 1-.5-.5V11h-.5a.5.5 0 0 1-.5-.5V10h-.5a.499.499 0 0 1-.175-.032l-.179.178a.5.5 0 0 0-.11.168l-2 5a.5.5 0 0 0 .65.65l5-2a.5.5 0 0 0 .168-.11l.178-.178z"/>
</svg>
</a>
{{ 'Category' | trans }}
<div class="padding-b-8-px border-bottom-default"></div>
<div class="padding-t-16-px text-left">
{% if torrent.categories %}
<div class="padding-y-4-px">
{% set i = 0 %}
{% for category in torrent.categories | sort %}{% if i > 0 %},{% endif %} {{ category | trans_category | u.title }}{% set i = i + 1 %}{% endfor %}
</div>
{% endif %}
</div>
</div>
<div class="text-right">
<a rel="nofollow" class="margin-r-4-px{#opacity-0 parent-hover-opacity-09#}" href="{{ path('torrent_sensitive_edit', { torrentId : torrent.id }) }}" title="{{ 'Edit' | trans }}">
<svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" fill="currentColor" viewBox="0 0 16 16">
<path d="M12.854.146a.5.5 0 0 0-.707 0L10.5 1.793 14.207 5.5l1.647-1.646a.5.5 0 0 0 0-.708l-3-3zm.646 6.061L9.793 2.5 3.293 9H3.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.207l6.5-6.5zm-7.468 7.468A.5.5 0 0 1 6 13.5V13h-.5a.5.5 0 0 1-.5-.5V12h-.5a.5.5 0 0 1-.5-.5V11h-.5a.5.5 0 0 1-.5-.5V10h-.5a.499.499 0 0 1-.175-.032l-.179.178a.5.5 0 0 0-.11.168l-2 5a.5.5 0 0 0 .65.65l5-2a.5.5 0 0 0 .168-.11l.178-.178z"/>
</svg>
@ -338,6 +398,22 @@
{% endif %}
</div>
</div>
<div class="text-right">
<a rel="nofollow" class="margin-r-4-px{#opacity-0 parent-hover-opacity-09#}" href="{{ path('torrent_poster_edit', { torrentId : torrent.id }) }}" title="{{ 'Edit' | trans }}">
<svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" fill="currentColor" viewBox="0 0 16 16">
<path d="M12.854.146a.5.5 0 0 0-.707 0L10.5 1.793 14.207 5.5l1.647-1.646a.5.5 0 0 0 0-.708l-3-3zm.646 6.061L9.793 2.5 3.293 9H3.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.207l6.5-6.5zm-7.468 7.468A.5.5 0 0 1 6 13.5V13h-.5a.5.5 0 0 1-.5-.5V12h-.5a.5.5 0 0 1-.5-.5V11h-.5a.5.5 0 0 1-.5-.5V10h-.5a.499.499 0 0 1-.175-.032l-.179.178a.5.5 0 0 0-.11.168l-2 5a.5.5 0 0 0 .65.65l5-2a.5.5 0 0 0 .168-.11l.178-.178z"/>
</svg>
</a>
{{ 'Poster' | trans }}
<div class="padding-b-8-px border-bottom-default"></div>
<div class="padding-t-16-px text-left">
{% if torrent.poster %}
{{ 'Yes' | trans }}
{% else %}
{{ 'No' | trans }}
{% endif %}
</div>
</div>
</div>
<a name="activity"></a>
<div class="padding-t-16-px padding-b-8-px text-right">

View file

@ -5,11 +5,33 @@
{% if query %}
<h2>{{ 'Search results' | trans }}</h2>
<sub>
<a class="text-color-night margin-x-4-px" href="{{ path('rss_torrents_recent', { query : query | url_encode(true) }) }}" 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>
{% if app.request.get('filter') %}
<a class="margin-l-4-px" rel="nofollow" href="{{ path('torrent_search', { query : query | url_encode(true) }) }}" title="{{ 'Hide filter' | trans }}">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-filter-square-fill" 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-2H2zm.5 5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1 0-1zM4 8.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zm2 3a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5z"/>
</svg>
</a>
<a class="text-color-night margin-x-4-px" href="{{ path('rss_torrents_recent', { query : query | url_encode(true),
locales : app.request.get('locales'),
categories : app.request.get('categories'),
sensitive : app.request.get('sensitive'),
filter : app.request.get('filter') }) }}" 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>
{% else %}
<a class="text-color-night margin-l-4-px" rel="nofollow" href="{{ path('torrent_search', { query : query | url_encode(true), filter : 'true' }) }}" title="{{ 'Show filter' | trans }}">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-filter-square-fill" 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-2H2zm.5 5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1 0-1zM4 8.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zm2 3a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5z"/>
</svg>
</a>
<a class="text-color-night margin-x-4-px" href="{{ path('rss_torrents_recent', { query : query | url_encode(true) }) }}" 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>
{% endif %}
</sub>
{% else %}
<h2>{{ 'Recent uploads' | trans }}</h2>
@ -24,7 +46,8 @@
</div>
{% if torrents %}
{% for torrent in torrents %}
<div class="padding-24-px margin-y-8-px border-radius-3-px background-color-night">
<div class="padding-24-px margin-y-8-px border-radius-3-px background-color-night {% if torrent.poster %}background-poster{% endif %}"
{% if torrent.poster %}style="background-image:url('{{ torrent.poster.url }}');background-position:{{ torrent.poster.position }}"{% endif %}>
<a name="{{ torrent.id }}"></a>
<div class="margin-b-16-px">
<h2>
@ -34,11 +57,20 @@
</h2>
{% if torrent.scrape.leechers > 0 and torrent.scrape.seeders == 0 %}
<a href="{{ path('torrent_file_wanted', { torrentId : torrent.id }) }}"
class="label label-green margin-l-4-px font-size-10-px position-relative top--2"
title="{{ 'Active leechers waiting for seeders' | trans }}">
class="label label-green font-size-10-px position-relative display-inline-block"
title="{{ 'Active leechers waiting for seeders' | trans }}"
rel="nofollow">
{{ 'wanted' | trans }}
</a>
{% endif %}
{% if torrent.status == false %}
<sub class="margin-l-8-px float-right opacity-06 hover-opacity-1" title="{{ 'Disabled' | trans }}">
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="currentColor" viewBox="0 0 16 16">
<path d="m10.79 12.912-1.614-1.615a3.5 3.5 0 0 1-4.474-4.474l-2.06-2.06C.938 6.278 0 8 0 8s3 5.5 8 5.5a7.029 7.029 0 0 0 2.79-.588zM5.21 3.088A7.028 7.028 0 0 1 8 2.5c5 0 8 5.5 8 5.5s-.939 1.721-2.641 3.238l-2.062-2.062a3.5 3.5 0 0 0-4.474-4.474L5.21 3.089z"/>
<path d="M5.525 7.646a2.5 2.5 0 0 0 2.829 2.829l-2.83-2.829zm4.95.708-2.829-2.83a2.5 2.5 0 0 1 2.829 2.829zm3.171 6-12-12 .708-.708 12 12-.708.708z"/>
</svg>
</sub>
{% endif %}
{% if torrent.approved == false %}
<sub class="margin-l-8-px float-right opacity-06 hover-opacity-1" title="{{ 'Waiting for approve' | trans }}">
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="currentColor" viewBox="0 0 16 16">
@ -47,7 +79,7 @@
</sub>
{% endif %}
{% if torrent.sensitive == true %}
<sub class="margin-l-8-px float-right opacity-06 hover-opacity-1" title="{{ 'Content visible for non sensitive users only' | trans }}">
<sub class="margin-l-8-px float-right opacity-06 hover-opacity-1" title="{{ 'Sensitive' | trans }}">
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="currentColor" viewBox="0 0 16 16">
<path d="m9.97 4.88.953 3.811C10.159 8.878 9.14 9 8 9c-1.14 0-2.158-.122-2.923-.309L6.03 4.88C6.635 4.957 7.3 5 8 5s1.365-.043 1.97-.12zm-.245-.978L8.97.88C8.718-.13 7.282-.13 7.03.88L6.275 3.9C6.8 3.965 7.382 4 8 4c.618 0 1.2-.036 1.725-.098zm4.396 8.613a.5.5 0 0 1 .037.96l-6 2a.5.5 0 0 1-.316 0l-6-2a.5.5 0 0 1 .037-.96l2.391-.598.565-2.257c.862.212 1.964.339 3.165.339s2.303-.127 3.165-.339l.565 2.257 2.391.598z"/>
</svg>
@ -71,22 +103,17 @@
{% if torrent.keywords %}
<div class="margin-b-16-px">
{% for keyword, quantity in torrent.keywords %}
<a href="{{ path('torrent_search', { query : keyword | url_encode(true) }) }}">
<a href="{{ path('torrent_search', { query : keyword | url_encode(true),
locales : app.request.get('locales'),
categories : app.request.get('categories'),
sensitive : app.request.get('sensitive'),
filter : app.request.get('filter') }) }}">
#{{ keyword }}
</a>
{% endfor %}
</div>
{% endif %}
<div class="margin-b-16-px border-bottom-default"></div>
{#
<sup>
{{ torrent.added | format_ago }}
{{ 'by' | trans }}
<a href="{{ path('user_info', { userId : torrent.user.id }) }}">
<img class="border-radius-50 border-color-default vertical-align-middle margin-x-4-px" src="{{ torrent.user.identicon }}" alt="{{ 'identicon' | trans }}" />
</a>
</sup>
#}
<span class="margin-r-4-px cursor-default" title="{{ 'Size' | trans }}">
<small>
{{ torrent.file.size | format_bytes }}
@ -169,17 +196,31 @@
{% if query %}
{% if pagination.page > 1 %}
{% if pagination.page == 2 %}
<a rel="nofollow" class="button margin-l-8-px" href="{{ path('torrent_search', { query : query | url_encode(true) | raw }) }}">
<a rel="nofollow" class="button margin-l-8-px" href="{{ path('torrent_search', { query : query | url_encode(true),
locales : app.request.get('locales'),
categories : app.request.get('categories'),
sensitive : app.request.get('sensitive'),
filter : app.request.get('filter') }) }}">
{{ 'Back' | trans | lower }}
</a>
{% else %}
<a rel="nofollow" class="button margin-l-8-px" href="{{ path('torrent_search', { query : query | url_encode(true), page : pagination.page - 1 }) }}">
<a rel="nofollow" class="button margin-l-8-px" href="{{ path('torrent_search', { query : query | url_encode(true),
page : pagination.page - 1,
locales : app.request.get('locales'),
categories : app.request.get('categories'),
sensitive : app.request.get('sensitive'),
filter : app.request.get('filter') }) }}">
{{ 'Back' | trans | lower }}
</a>
{% endif %}
{% endif %}
{% if pagination.page < pagination.pages %}
<a rel="nofollow" class="button margin-l-8-px" href="{{ path('torrent_search', { query : query | url_encode(true), page : pagination.page + 1 }) }}">
<a rel="nofollow" class="button margin-l-8-px" href="{{ path('torrent_search', { query : query | url_encode(true),
page : pagination.page + 1,
locales : app.request.get('locales'),
categories : app.request.get('categories'),
sensitive : app.request.get('sensitive'),
filter : app.request.get('filter') }) }}">
{{ 'Next' | trans | lower }}
</a>
{% endif %}

View file

@ -31,7 +31,7 @@
</div>
{% endfor %}
</div>
{% for locale in locales %}
{% for locale in locales | sort %}
<div class="margin-t-8-px margin-b-4-px margin-r-8-px display-inline-block min-width-120-px">
{% if locale in form.locales.attribute.value %}
<input type="checkbox" name="locales[]" id="{{ locale }}" value="{{ locale }}" checked="checked" />
@ -48,9 +48,42 @@
#}
</div>
<div class="margin-b-16-px border-bottom-default"></div>
<div class="margin-y-16-px">
<div class="margin-b-8-px">
<label for="categories">
{{'Content category' | trans }}
</label>
<sub class="opacity-0 parent-hover-opacity-09" title="{{ 'This torrent have selected categories' | trans }}">
<svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" fill="currentColor" viewBox="0 0 16 16">
<path d="M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"/>
</svg>
</sub>
{% for error in form.categories.error %}
<div class="text-color-red margin-y-8-px">
{{ error }}
</div>
{% endfor %}
</div>
{% for category in categories | sort %}
<div class="margin-t-8-px margin-b-4-px margin-r-8-px display-inline-block min-width-120-px">
{% if category in form.categories.attribute.value %}
<input type="checkbox" name="categories[]" id="{{ category }}" value="{{ category }}" checked="checked" />
{% else %}
<input type="checkbox" name="categories[]" id="{{ category }}" value="{{ category }}" />
{% endif %}
<label class="margin-l-4-px" for="{{ category }}">
{{ category | trans_category | u.title }}
</label>
</div>
{% endfor %}
{#
{{'Other...'|trans }}
#}
</div>
<div class="margin-b-16-px border-bottom-default"></div>
<div>
<input type="checkbox" name="sensitive" id="sensitive" value="true" {% if form.sensitive.attribute.value %}checked="checked"{% endif %} />
<label for="sensitive">
<label class="margin-l-4-px" for="sensitive">
{{'Sensitive'|trans }}
</label>
<sub class="opacity-0 parent-hover-opacity-09" title="{{ 'Mark torrent content as sensitive' | trans }}">

View file

@ -172,7 +172,29 @@
{{ 'Languages' | trans }}
</td>
<td class="width-80 line-height-20-px">
{% for i, locale in user.locales %}{% if i > 0 %},{% endif %} {{ locale|locale_name(locale)|u.title }}{% endfor %}
{% set i = 0 %}
{% for locale in user.locales | sort %}{% if i > 0 %},{% endif %} {{ locale | locale_name(locale) | u.title }}{% set i = i + 1 %}{% endfor %}
</td>
</tr>
<tr>
<td class="width-20">
{{ 'Categories' | trans }}
</td>
<td class="width-80 line-height-20-px">
{% set i = 0 %}
{% for category in user.categories | sort %}{% if i > 0 %},{% endif %} {{ category | trans_category | u.title }}{% set i = i + 1 %}{% endfor %}
</td>
</tr>
<tr>
<td>
{{ 'Posters' | trans }}
</td>
<td>
{% if user.posters %}
{{ 'Yes' | trans }}
{% else %}
{{ 'No' | trans }}
{% endif %}
</td>
</tr>
<tr>

View file

@ -58,6 +58,23 @@
</div>
</td>
</tr>
<tr>
<td class="padding-y-12-px">
{{ 'Posters' | trans }}
</td>
<td class="padding-y-12-px">
<div class="margin-r-8-px">
{% if user.posters %}
<input name="posters" id="posters" type="checkbox" value="true" checked="checked" />
{% else %}
<input name="posters" id="posters" type="checkbox" value="true" />
{% endif %}
<label class="margin-x-4-px" for="posters">
{{ 'Enabled' | trans }}
</label>
</div>
</td>
</tr>
<tr>
<td class="padding-b-8-px border-bottom-default text-right" colspan="2">
{{ 'Search' | trans }}
@ -65,34 +82,60 @@
</tr>
<tr>
<td class="padding-t-16-px">
{{ 'Content' | trans }}
<div class="margin-t-4-px">
{{ 'Locales' | trans }}
</div>
</td>
<td class="padding-t-16-px">
{% for locale in locales %}
<div class="margin-t-8-px margin-b-4-px margin-r-8-px display-inline-block min-width-120-px">
<td class="padding-t-16-px padding-b-8-px">
{% for locale in locales | sort %}
<div class="margin-t-4-px margin-b-8-px margin-r-8-px display-inline-block min-width-120-px">
{% if locale in user.locales %}
<input name="locales[]" id="{{ locale }}" type="checkbox" value="{{ locale }}" checked="checked" />
{% else %}
<input name="locales[]" id="{{ locale }}" type="checkbox" value="{{ locale }}" />
{% endif %}
<label for="{{ locale }}">
{{ locale|locale_name(locale)|u.title }}
<label class="margin-x-4-px" for="{{ locale }}">
{{ locale | locale_name(locale) | u.title }}
</label>
</div>
{% endfor %}
</td>
</tr>
<tr>
<td class="padding-t-8-px">
<td class="padding-y-16-px">
<div class="margin-t-4-px">
{{ 'Categories' | trans }}
</div>
</td>
<td class="padding-t-16-px padding-b-8-px border-top-default">
{% for category in categories | sort %}
<div class="margin-t-4-px margin-b-8-px margin-r-8-px display-inline-block min-width-120-px">
{% if category in user.categories %}
<input name="categories[]" id="{{ category }}" type="checkbox" value="{{ category }}" checked="checked" />
{% else %}
<input name="categories[]" id="{{ category }}" type="checkbox" value="{{ category }}" />
{% endif %}
<label class="margin-x-4-px" for="{{ category }}">
{{ category | trans_category | u.title }}
</label>
</div>
{% endfor %}
</td>
</tr>
<tr>
<td class="padding-y-16-px">
{{ 'Sensitive' | trans }}
</td>
<td>
<div class="padding-t-8-px">
<td class="padding-t-16-px padding-b-8-px border-top-default">
<div class="margin-r-8-px">
{% if user.sensitive %}
<input name="sensitive" type="checkbox" value="true" checked="checked" />
<input name="sensitive" id="sensitive" type="checkbox" value="true" checked="checked" />
{% else %}
<input name="sensitive" type="checkbox" value="true" />
<input name="sensitive" id="sensitive" type="checkbox" value="true" />
{% endif %}
<label class="margin-x-4-px" for="sensitive">
{{ 'Hide' | trans }}
</label>
</div>
</td>
</tr>
@ -104,20 +147,22 @@
<tr>
<td colspan="2"></td>
</tr>
{% set i = 0 %}
{% for group, event in events %}
{% set i = i + 1 %}
<tr>
<td class="padding-t-8-px">
<td class="padding-y-12-px">
{{ group }}
</td>
<td class="padding-t-8-px">
<td class="padding-t-8-px {% if i > 1 %}border-top-default{% endif %}">
{% for key, value in event %}
<span class="margin-r-8-px">
<span class="margin-t-4-px margin-b-8-px margin-r-8-px display-inline-block min-width-120-px">
{% if value in user.events %}
<input name="events[]" id="event-{{ value }}" type="checkbox" value="{{ value }}" checked="checked" />
{% else %}
<input name="events[]" id="event-{{ value }}" type="checkbox" value="{{ value }}" />
{% endif %}
<label for="event-{{ value }}">
<label class="margin-x-4-px" for="event-{{ value }}">
{{ key }}
</label>
</span>
@ -136,10 +181,13 @@
</td>
<td class="padding-y-16-px">
{% if user.yggdrasil %}
<input name="yggdrasil" type="checkbox" value="true" checked="checked" />
<input name="yggdrasil" id="yggdrasil" type="checkbox" value="true" checked="checked" />
{% else %}
<input name="yggdrasil" type="checkbox" value="true" />
<input name="yggdrasil" id="yggdrasil" type="checkbox" value="true" />
{% endif %}
<label class="margin-x-4-px" for="yggdrasil">
{{ 'Enabled' | trans }}
</label>
</td>
</tr>
</tbody>

View file

@ -169,10 +169,6 @@
<source>Waiting for approve</source>
<target>Waiting for approve</target>
</trans-unit>
<trans-unit id="uP0WnsM" resname="Content visible for non sensitive users only">
<source>Content visible for non sensitive users only</source>
<target>Content visible for non sensitive users only</target>
</trans-unit>
<trans-unit id="GvhRkHM" resname="Size">
<source>Size</source>
<target>Size</target>
@ -397,10 +393,6 @@
<source>Join translation</source>
<target>Join translation</target>
</trans-unit>
<trans-unit id="R70pB1_" resname="Content">
<source>Content</source>
<target>Content</target>
</trans-unit>
<trans-unit id="ONoVBcq" resname="Activity">
<source>Activity</source>
<target>Activity</target>
@ -729,6 +721,198 @@
<source>Seeders wanted for torrent</source>
<target>Seeders wanted for torrent</target>
</trans-unit>
<trans-unit id="rCCle.3" resname="Hide">
<source>Hide</source>
<target>Hide</target>
</trans-unit>
<trans-unit id="m11TRpU" resname="have disabled torrent">
<source>have disabled torrent</source>
<target>have disabled torrent</target>
</trans-unit>
<trans-unit id="qfr4ljO" resname="have enabled torrent">
<source>have enabled torrent</source>
<target>have enabled torrent</target>
</trans-unit>
<trans-unit id="F_s8AWj" resname="disabled">
<source>disabled</source>
<target>disabled</target>
</trans-unit>
<trans-unit id="3HqhHgY" resname="Poster file out of size limit">
<source>Poster file out of size limit</source>
<target>Poster file out of size limit</target>
</trans-unit>
<trans-unit id="xKW1PAN" resname="Image file not supported">
<source>Image file not supported</source>
<target>Image file not supported</target>
</trans-unit>
<trans-unit id=".r0pj7s" resname="Poster file required">
<source>Poster file required</source>
<target>Poster file required</target>
</trans-unit>
<trans-unit id="OpO8m_n" resname="Edit torrent poster">
<source>Edit torrent poster</source>
<target>Edit torrent poster</target>
</trans-unit>
<trans-unit id="hO4zays" resname="Edit poster for torrent">
<source>Edit poster for torrent</source>
<target>Edit poster for torrent</target>
</trans-unit>
<trans-unit id="G6dup_P" resname="Poster">
<source>Poster</source>
<target>Poster</target>
</trans-unit>
<trans-unit id="HHOEGv4" resname="Posters">
<source>Posters</source>
<target>Posters</target>
</trans-unit>
<trans-unit id="dv2khYF" resname="have deleted poster edition">
<source>have deleted poster edition</source>
<target>have deleted poster edition</target>
</trans-unit>
<trans-unit id="CaAjDOQ" resname="have disapproved poster edition">
<source>have disapproved poster edition</source>
<target>have disapproved poster edition</target>
</trans-unit>
<trans-unit id="u26pehE" resname="have approved poster edition">
<source>have approved poster edition</source>
<target>have approved poster edition</target>
</trans-unit>
<trans-unit id="_jJysd3" resname="have added poster edition">
<source>have added poster edition</source>
<target>have added poster edition</target>
</trans-unit>
<trans-unit id="WDtpCq_" resname="Torrent posters">
<source>Torrent posters</source>
<target>Torrent posters</target>
</trans-unit>
<trans-unit id="2UYGdCf" resname="Center">
<source>Center</source>
<target>Center</target>
</trans-unit>
<trans-unit id="1c389.9" resname="Top">
<source>Top</source>
<target>Top</target>
</trans-unit>
<trans-unit id="R5rSGsk" resname="Bottom">
<source>Bottom</source>
<target>Bottom</target>
</trans-unit>
<trans-unit id="uLHYlMa" resname="Categories">
<source>Categories</source>
<target>Categories</target>
</trans-unit>
<trans-unit id="R2SmYMn" resname="At least one category required">
<source>At least one category required</source>
<target>At least one category required</target>
</trans-unit>
<trans-unit id="QmNxufM" resname="Content category">
<source>Content category</source>
<target>Content category</target>
</trans-unit>
<trans-unit id="zRrq72V" resname="This torrent have selected categories">
<source>This torrent have selected categories</source>
<target>This torrent have selected categories</target>
</trans-unit>
<trans-unit id="o_ep6hc" resname="Edit categories">
<source>Edit categories</source>
<target>Edit categories</target>
</trans-unit>
<trans-unit id="2SVm4J_" resname="Edit categories for torrent">
<source>Edit categories for torrent</source>
<target>Edit categories for torrent</target>
</trans-unit>
<trans-unit id="yj3GEvR" resname="Locale">
<source>Locale</source>
<target>Locale</target>
</trans-unit>
<trans-unit id="KSwG8AR" resname="Category">
<source>Category</source>
<target>Category</target>
</trans-unit>
<trans-unit id="AlYAkS1" resname="Torrent categories">
<source>Torrent categories</source>
<target>Torrent categories</target>
</trans-unit>
<trans-unit id="Yfrv1ti" resname="have deleted categories edition">
<source>have deleted categories edition</source>
<target>have deleted categories edition</target>
</trans-unit>
<trans-unit id="LAnRgSg" resname="have disapproved categories edition">
<source>have disapproved categories edition</source>
<target>have disapproved categories edition</target>
</trans-unit>
<trans-unit id="uF9AEqp" resname="have approved categories edition">
<source>have approved categories edition</source>
<target>have approved categories edition</target>
</trans-unit>
<trans-unit id="oVNdrer" resname="have added categories edition">
<source>have added categories edition</source>
<target>have added categories edition</target>
</trans-unit>
<trans-unit id="imujLJv" resname="movie">
<source>movie</source>
<target>movie</target>
</trans-unit>
<trans-unit id="nNo46jo" resname="series">
<source>series</source>
<target>series</target>
</trans-unit>
<trans-unit id="pG5dK74" resname="tv">
<source>tv</source>
<target>tv</target>
</trans-unit>
<trans-unit id="7CPO8DE" resname="animation">
<source>animation</source>
<target>animation</target>
</trans-unit>
<trans-unit id="gPGJmE5" resname="music">
<source>music</source>
<target>music</target>
</trans-unit>
<trans-unit id="bKXKt35" resname="game">
<source>game</source>
<target>game</target>
</trans-unit>
<trans-unit id="PYW9Udx" resname="audiobook">
<source>audiobook</source>
<target>audiobook</target>
</trans-unit>
<trans-unit id="9ippfeB" resname="podcast">
<source>podcast</source>
<target>podcast</target>
</trans-unit>
<trans-unit id="knGf4M_" resname="book">
<source>book</source>
<target>book</target>
</trans-unit>
<trans-unit id="DrPja.s" resname="archive">
<source>archive</source>
<target>archive</target>
</trans-unit>
<trans-unit id="LOonTQv" resname="picture">
<source>picture</source>
<target>picture</target>
</trans-unit>
<trans-unit id="NTkPVFP" resname="software">
<source>software</source>
<target>software</target>
</trans-unit>
<trans-unit id="2SmKENG" resname="other">
<source>other</source>
<target>other</target>
</trans-unit>
<trans-unit id="v7fLnQX" resname="Hide filter">
<source>Hide filter</source>
<target>Hide filter</target>
</trans-unit>
<trans-unit id="45aF7iu" resname="Show filter">
<source>Show filter</source>
<target>Show filter</target>
</trans-unit>
<trans-unit id="xj62cgx" resname="Private">
<source>Private</source>
<target>Private</target>
</trans-unit>
</body>
</file>
</xliff>

View file

@ -169,10 +169,6 @@
<source>Waiting for approve</source>
<target>Waiting for approve</target>
</trans-unit>
<trans-unit id="uP0WnsM" resname="Content visible for non sensitive users only">
<source>Content visible for non sensitive users only</source>
<target>Content visible for non sensitive users only</target>
</trans-unit>
<trans-unit id="GvhRkHM" resname="Size">
<source>Size</source>
<target>Size</target>
@ -397,10 +393,6 @@
<source>Join translation</source>
<target>Join translation</target>
</trans-unit>
<trans-unit id="R70pB1_" resname="Content">
<source>Content</source>
<target>Content</target>
</trans-unit>
<trans-unit id="ONoVBcq" resname="Activity">
<source>Activity</source>
<target>Activity</target>
@ -729,6 +721,198 @@
<source>Seeders wanted for torrent</source>
<target>Seeders wanted for torrent</target>
</trans-unit>
<trans-unit id="rCCle.3" resname="Hide">
<source>Hide</source>
<target>Hide</target>
</trans-unit>
<trans-unit id="m11TRpU" resname="have disabled torrent">
<source>have disabled torrent</source>
<target>have disabled torrent</target>
</trans-unit>
<trans-unit id="qfr4ljO" resname="have enabled torrent">
<source>have enabled torrent</source>
<target>have enabled torrent</target>
</trans-unit>
<trans-unit id="F_s8AWj" resname="disabled">
<source>disabled</source>
<target>disabled</target>
</trans-unit>
<trans-unit id="3HqhHgY" resname="Poster file out of size limit">
<source>Poster file out of size limit</source>
<target>Poster file out of size limit</target>
</trans-unit>
<trans-unit id="xKW1PAN" resname="Image file not supported">
<source>Image file not supported</source>
<target>Image file not supported</target>
</trans-unit>
<trans-unit id=".r0pj7s" resname="Poster file required">
<source>Poster file required</source>
<target>Poster file required</target>
</trans-unit>
<trans-unit id="OpO8m_n" resname="Edit torrent poster">
<source>Edit torrent poster</source>
<target>Edit torrent poster</target>
</trans-unit>
<trans-unit id="hO4zays" resname="Edit poster for torrent">
<source>Edit poster for torrent</source>
<target>Edit poster for torrent</target>
</trans-unit>
<trans-unit id="G6dup_P" resname="Poster">
<source>Poster</source>
<target>Poster</target>
</trans-unit>
<trans-unit id="HHOEGv4" resname="Posters">
<source>Posters</source>
<target>Posters</target>
</trans-unit>
<trans-unit id="dv2khYF" resname="have deleted poster edition">
<source>have deleted poster edition</source>
<target>have deleted poster edition</target>
</trans-unit>
<trans-unit id="CaAjDOQ" resname="have disapproved poster edition">
<source>have disapproved poster edition</source>
<target>have disapproved poster edition</target>
</trans-unit>
<trans-unit id="u26pehE" resname="have approved poster edition">
<source>have approved poster edition</source>
<target>have approved poster edition</target>
</trans-unit>
<trans-unit id="_jJysd3" resname="have added poster edition">
<source>have added poster edition</source>
<target>have added poster edition</target>
</trans-unit>
<trans-unit id="WDtpCq_" resname="Torrent posters">
<source>Torrent posters</source>
<target>Torrent posters</target>
</trans-unit>
<trans-unit id="2UYGdCf" resname="Center">
<source>Center</source>
<target>Center</target>
</trans-unit>
<trans-unit id="1c389.9" resname="Top">
<source>Top</source>
<target>Top</target>
</trans-unit>
<trans-unit id="R5rSGsk" resname="Bottom">
<source>Bottom</source>
<target>Bottom</target>
</trans-unit>
<trans-unit id="uLHYlMa" resname="Categories">
<source>Categories</source>
<target>Categories</target>
</trans-unit>
<trans-unit id="R2SmYMn" resname="At least one category required">
<source>At least one category required</source>
<target>At least one category required</target>
</trans-unit>
<trans-unit id="QmNxufM" resname="Content category">
<source>Content category</source>
<target>Content category</target>
</trans-unit>
<trans-unit id="zRrq72V" resname="This torrent have selected categories">
<source>This torrent have selected categories</source>
<target>This torrent have selected categories</target>
</trans-unit>
<trans-unit id="o_ep6hc" resname="Edit categories">
<source>Edit categories</source>
<target>Edit categories</target>
</trans-unit>
<trans-unit id="2SVm4J_" resname="Edit categories for torrent">
<source>Edit categories for torrent</source>
<target>Edit categories for torrent</target>
</trans-unit>
<trans-unit id="yj3GEvR" resname="Locale">
<source>Locale</source>
<target>Locale</target>
</trans-unit>
<trans-unit id="KSwG8AR" resname="Category">
<source>Category</source>
<target>Category</target>
</trans-unit>
<trans-unit id="AlYAkS1" resname="Torrent categories">
<source>Torrent categories</source>
<target>Torrent categories</target>
</trans-unit>
<trans-unit id="Yfrv1ti" resname="have deleted categories edition">
<source>have deleted categories edition</source>
<target>have deleted categories edition</target>
</trans-unit>
<trans-unit id="LAnRgSg" resname="have disapproved categories edition">
<source>have disapproved categories edition</source>
<target>have disapproved categories edition</target>
</trans-unit>
<trans-unit id="uF9AEqp" resname="have approved categories edition">
<source>have approved categories edition</source>
<target>have approved categories edition</target>
</trans-unit>
<trans-unit id="oVNdrer" resname="have added categories edition">
<source>have added categories edition</source>
<target>have added categories edition</target>
</trans-unit>
<trans-unit id="imujLJv" resname="movie">
<source>movie</source>
<target>movie</target>
</trans-unit>
<trans-unit id="nNo46jo" resname="series">
<source>series</source>
<target>series</target>
</trans-unit>
<trans-unit id="pG5dK74" resname="tv">
<source>tv</source>
<target>tv</target>
</trans-unit>
<trans-unit id="7CPO8DE" resname="animation">
<source>animation</source>
<target>animation</target>
</trans-unit>
<trans-unit id="gPGJmE5" resname="music">
<source>music</source>
<target>music</target>
</trans-unit>
<trans-unit id="bKXKt35" resname="game">
<source>game</source>
<target>game</target>
</trans-unit>
<trans-unit id="PYW9Udx" resname="audiobook">
<source>audiobook</source>
<target>audiobook</target>
</trans-unit>
<trans-unit id="9ippfeB" resname="podcast">
<source>podcast</source>
<target>podcast</target>
</trans-unit>
<trans-unit id="knGf4M_" resname="book">
<source>book</source>
<target>book</target>
</trans-unit>
<trans-unit id="DrPja.s" resname="archive">
<source>archive</source>
<target>archive</target>
</trans-unit>
<trans-unit id="LOonTQv" resname="picture">
<source>picture</source>
<target>picture</target>
</trans-unit>
<trans-unit id="NTkPVFP" resname="software">
<source>software</source>
<target>software</target>
</trans-unit>
<trans-unit id="2SmKENG" resname="other">
<source>other</source>
<target>other</target>
</trans-unit>
<trans-unit id="v7fLnQX" resname="Hide filter">
<source>Hide filter</source>
<target>Hide filter</target>
</trans-unit>
<trans-unit id="45aF7iu" resname="Show filter">
<source>Show filter</source>
<target>Show filter</target>
</trans-unit>
<trans-unit id="xj62cgx" resname="Private">
<source>Private</source>
<target>Private</target>
</trans-unit>
</body>
</file>
</xliff>

View file

@ -169,10 +169,6 @@
<source>Waiting for approve</source>
<target>Waiting for approve</target>
</trans-unit>
<trans-unit id="uP0WnsM" resname="Content visible for non sensitive users only">
<source>Content visible for non sensitive users only</source>
<target>Content visible for non sensitive users only</target>
</trans-unit>
<trans-unit id="GvhRkHM" resname="Size">
<source>Size</source>
<target>Size</target>
@ -397,10 +393,6 @@
<source>Join translation</source>
<target>Join translation</target>
</trans-unit>
<trans-unit id="R70pB1_" resname="Content">
<source>Content</source>
<target>Content</target>
</trans-unit>
<trans-unit id="ONoVBcq" resname="Activity">
<source>Activity</source>
<target>Activity</target>
@ -729,6 +721,198 @@
<source>Seeders wanted for torrent</source>
<target>Seeders wanted for torrent</target>
</trans-unit>
<trans-unit id="rCCle.3" resname="Hide">
<source>Hide</source>
<target>Hide</target>
</trans-unit>
<trans-unit id="m11TRpU" resname="have disabled torrent">
<source>have disabled torrent</source>
<target>have disabled torrent</target>
</trans-unit>
<trans-unit id="qfr4ljO" resname="have enabled torrent">
<source>have enabled torrent</source>
<target>have enabled torrent</target>
</trans-unit>
<trans-unit id="F_s8AWj" resname="disabled">
<source>disabled</source>
<target>disabled</target>
</trans-unit>
<trans-unit id="3HqhHgY" resname="Poster file out of size limit">
<source>Poster file out of size limit</source>
<target>Poster file out of size limit</target>
</trans-unit>
<trans-unit id="xKW1PAN" resname="Image file not supported">
<source>Image file not supported</source>
<target>Image file not supported</target>
</trans-unit>
<trans-unit id=".r0pj7s" resname="Poster file required">
<source>Poster file required</source>
<target>Poster file required</target>
</trans-unit>
<trans-unit id="OpO8m_n" resname="Edit torrent poster">
<source>Edit torrent poster</source>
<target>Edit torrent poster</target>
</trans-unit>
<trans-unit id="hO4zays" resname="Edit poster for torrent">
<source>Edit poster for torrent</source>
<target>Edit poster for torrent</target>
</trans-unit>
<trans-unit id="G6dup_P" resname="Poster">
<source>Poster</source>
<target>Poster</target>
</trans-unit>
<trans-unit id="HHOEGv4" resname="Posters">
<source>Posters</source>
<target>Posters</target>
</trans-unit>
<trans-unit id="dv2khYF" resname="have deleted poster edition">
<source>have deleted poster edition</source>
<target>have deleted poster edition</target>
</trans-unit>
<trans-unit id="CaAjDOQ" resname="have disapproved poster edition">
<source>have disapproved poster edition</source>
<target>have disapproved poster edition</target>
</trans-unit>
<trans-unit id="u26pehE" resname="have approved poster edition">
<source>have approved poster edition</source>
<target>have approved poster edition</target>
</trans-unit>
<trans-unit id="_jJysd3" resname="have added poster edition">
<source>have added poster edition</source>
<target>have added poster edition</target>
</trans-unit>
<trans-unit id="WDtpCq_" resname="Torrent posters">
<source>Torrent posters</source>
<target>Torrent posters</target>
</trans-unit>
<trans-unit id="2UYGdCf" resname="Center">
<source>Center</source>
<target>Center</target>
</trans-unit>
<trans-unit id="1c389.9" resname="Top">
<source>Top</source>
<target>Top</target>
</trans-unit>
<trans-unit id="R5rSGsk" resname="Bottom">
<source>Bottom</source>
<target>Bottom</target>
</trans-unit>
<trans-unit id="uLHYlMa" resname="Categories">
<source>Categories</source>
<target>Categories</target>
</trans-unit>
<trans-unit id="R2SmYMn" resname="At least one category required">
<source>At least one category required</source>
<target>At least one category required</target>
</trans-unit>
<trans-unit id="QmNxufM" resname="Content category">
<source>Content category</source>
<target>Content category</target>
</trans-unit>
<trans-unit id="zRrq72V" resname="This torrent have selected categories">
<source>This torrent have selected categories</source>
<target>This torrent have selected categories</target>
</trans-unit>
<trans-unit id="o_ep6hc" resname="Edit categories">
<source>Edit categories</source>
<target>Edit categories</target>
</trans-unit>
<trans-unit id="2SVm4J_" resname="Edit categories for torrent">
<source>Edit categories for torrent</source>
<target>Edit categories for torrent</target>
</trans-unit>
<trans-unit id="yj3GEvR" resname="Locale">
<source>Locale</source>
<target>Locale</target>
</trans-unit>
<trans-unit id="KSwG8AR" resname="Category">
<source>Category</source>
<target>Category</target>
</trans-unit>
<trans-unit id="AlYAkS1" resname="Torrent categories">
<source>Torrent categories</source>
<target>Torrent categories</target>
</trans-unit>
<trans-unit id="Yfrv1ti" resname="have deleted categories edition">
<source>have deleted categories edition</source>
<target>have deleted categories edition</target>
</trans-unit>
<trans-unit id="LAnRgSg" resname="have disapproved categories edition">
<source>have disapproved categories edition</source>
<target>have disapproved categories edition</target>
</trans-unit>
<trans-unit id="uF9AEqp" resname="have approved categories edition">
<source>have approved categories edition</source>
<target>have approved categories edition</target>
</trans-unit>
<trans-unit id="oVNdrer" resname="have added categories edition">
<source>have added categories edition</source>
<target>have added categories edition</target>
</trans-unit>
<trans-unit id="imujLJv" resname="movie">
<source>movie</source>
<target>movie</target>
</trans-unit>
<trans-unit id="nNo46jo" resname="series">
<source>series</source>
<target>series</target>
</trans-unit>
<trans-unit id="pG5dK74" resname="tv">
<source>tv</source>
<target>tv</target>
</trans-unit>
<trans-unit id="7CPO8DE" resname="animation">
<source>animation</source>
<target>animation</target>
</trans-unit>
<trans-unit id="gPGJmE5" resname="music">
<source>music</source>
<target>music</target>
</trans-unit>
<trans-unit id="bKXKt35" resname="game">
<source>game</source>
<target>game</target>
</trans-unit>
<trans-unit id="PYW9Udx" resname="audiobook">
<source>audiobook</source>
<target>audiobook</target>
</trans-unit>
<trans-unit id="9ippfeB" resname="podcast">
<source>podcast</source>
<target>podcast</target>
</trans-unit>
<trans-unit id="knGf4M_" resname="book">
<source>book</source>
<target>book</target>
</trans-unit>
<trans-unit id="DrPja.s" resname="archive">
<source>archive</source>
<target>archive</target>
</trans-unit>
<trans-unit id="LOonTQv" resname="picture">
<source>picture</source>
<target>picture</target>
</trans-unit>
<trans-unit id="NTkPVFP" resname="software">
<source>software</source>
<target>software</target>
</trans-unit>
<trans-unit id="2SmKENG" resname="other">
<source>other</source>
<target>other</target>
</trans-unit>
<trans-unit id="v7fLnQX" resname="Hide filter">
<source>Hide filter</source>
<target>Hide filter</target>
</trans-unit>
<trans-unit id="45aF7iu" resname="Show filter">
<source>Show filter</source>
<target>Show filter</target>
</trans-unit>
<trans-unit id="xj62cgx" resname="Private">
<source>Private</source>
<target>Private</target>
</trans-unit>
</body>
</file>
</xliff>

View file

@ -169,10 +169,6 @@
<source>Waiting for approve</source>
<target>Waiting for approve</target>
</trans-unit>
<trans-unit id="uP0WnsM" resname="Content visible for non sensitive users only">
<source>Content visible for non sensitive users only</source>
<target>Content visible for non sensitive users only</target>
</trans-unit>
<trans-unit id="GvhRkHM" resname="Size">
<source>Size</source>
<target>Size</target>
@ -397,10 +393,6 @@
<source>Join translation</source>
<target>Join translation</target>
</trans-unit>
<trans-unit id="R70pB1_" resname="Content">
<source>Content</source>
<target>Content</target>
</trans-unit>
<trans-unit id="ONoVBcq" resname="Activity">
<source>Activity</source>
<target>Activity</target>
@ -729,6 +721,198 @@
<source>Seeders wanted for torrent</source>
<target>Seeders wanted for torrent</target>
</trans-unit>
<trans-unit id="rCCle.3" resname="Hide">
<source>Hide</source>
<target>Hide</target>
</trans-unit>
<trans-unit id="m11TRpU" resname="have disabled torrent">
<source>have disabled torrent</source>
<target>have disabled torrent</target>
</trans-unit>
<trans-unit id="qfr4ljO" resname="have enabled torrent">
<source>have enabled torrent</source>
<target>have enabled torrent</target>
</trans-unit>
<trans-unit id="F_s8AWj" resname="disabled">
<source>disabled</source>
<target>disabled</target>
</trans-unit>
<trans-unit id="3HqhHgY" resname="Poster file out of size limit">
<source>Poster file out of size limit</source>
<target>Poster file out of size limit</target>
</trans-unit>
<trans-unit id="xKW1PAN" resname="Image file not supported">
<source>Image file not supported</source>
<target>Image file not supported</target>
</trans-unit>
<trans-unit id=".r0pj7s" resname="Poster file required">
<source>Poster file required</source>
<target>Poster file required</target>
</trans-unit>
<trans-unit id="OpO8m_n" resname="Edit torrent poster">
<source>Edit torrent poster</source>
<target>Edit torrent poster</target>
</trans-unit>
<trans-unit id="hO4zays" resname="Edit poster for torrent">
<source>Edit poster for torrent</source>
<target>Edit poster for torrent</target>
</trans-unit>
<trans-unit id="G6dup_P" resname="Poster">
<source>Poster</source>
<target>Poster</target>
</trans-unit>
<trans-unit id="HHOEGv4" resname="Posters">
<source>Posters</source>
<target>Posters</target>
</trans-unit>
<trans-unit id="dv2khYF" resname="have deleted poster edition">
<source>have deleted poster edition</source>
<target>have deleted poster edition</target>
</trans-unit>
<trans-unit id="CaAjDOQ" resname="have disapproved poster edition">
<source>have disapproved poster edition</source>
<target>have disapproved poster edition</target>
</trans-unit>
<trans-unit id="u26pehE" resname="have approved poster edition">
<source>have approved poster edition</source>
<target>have approved poster edition</target>
</trans-unit>
<trans-unit id="_jJysd3" resname="have added poster edition">
<source>have added poster edition</source>
<target>have added poster edition</target>
</trans-unit>
<trans-unit id="WDtpCq_" resname="Torrent posters">
<source>Torrent posters</source>
<target>Torrent posters</target>
</trans-unit>
<trans-unit id="2UYGdCf" resname="Center">
<source>Center</source>
<target>Center</target>
</trans-unit>
<trans-unit id="1c389.9" resname="Top">
<source>Top</source>
<target>Top</target>
</trans-unit>
<trans-unit id="R5rSGsk" resname="Bottom">
<source>Bottom</source>
<target>Bottom</target>
</trans-unit>
<trans-unit id="uLHYlMa" resname="Categories">
<source>Categories</source>
<target>Categories</target>
</trans-unit>
<trans-unit id="R2SmYMn" resname="At least one category required">
<source>At least one category required</source>
<target>At least one category required</target>
</trans-unit>
<trans-unit id="QmNxufM" resname="Content category">
<source>Content category</source>
<target>Content category</target>
</trans-unit>
<trans-unit id="zRrq72V" resname="This torrent have selected categories">
<source>This torrent have selected categories</source>
<target>This torrent have selected categories</target>
</trans-unit>
<trans-unit id="o_ep6hc" resname="Edit categories">
<source>Edit categories</source>
<target>Edit categories</target>
</trans-unit>
<trans-unit id="2SVm4J_" resname="Edit categories for torrent">
<source>Edit categories for torrent</source>
<target>Edit categories for torrent</target>
</trans-unit>
<trans-unit id="yj3GEvR" resname="Locale">
<source>Locale</source>
<target>Locale</target>
</trans-unit>
<trans-unit id="KSwG8AR" resname="Category">
<source>Category</source>
<target>Category</target>
</trans-unit>
<trans-unit id="AlYAkS1" resname="Torrent categories">
<source>Torrent categories</source>
<target>Torrent categories</target>
</trans-unit>
<trans-unit id="Yfrv1ti" resname="have deleted categories edition">
<source>have deleted categories edition</source>
<target>have deleted categories edition</target>
</trans-unit>
<trans-unit id="LAnRgSg" resname="have disapproved categories edition">
<source>have disapproved categories edition</source>
<target>have disapproved categories edition</target>
</trans-unit>
<trans-unit id="uF9AEqp" resname="have approved categories edition">
<source>have approved categories edition</source>
<target>have approved categories edition</target>
</trans-unit>
<trans-unit id="oVNdrer" resname="have added categories edition">
<source>have added categories edition</source>
<target>have added categories edition</target>
</trans-unit>
<trans-unit id="imujLJv" resname="movie">
<source>movie</source>
<target>movie</target>
</trans-unit>
<trans-unit id="nNo46jo" resname="series">
<source>series</source>
<target>series</target>
</trans-unit>
<trans-unit id="pG5dK74" resname="tv">
<source>tv</source>
<target>tv</target>
</trans-unit>
<trans-unit id="7CPO8DE" resname="animation">
<source>animation</source>
<target>animation</target>
</trans-unit>
<trans-unit id="gPGJmE5" resname="music">
<source>music</source>
<target>music</target>
</trans-unit>
<trans-unit id="bKXKt35" resname="game">
<source>game</source>
<target>game</target>
</trans-unit>
<trans-unit id="PYW9Udx" resname="audiobook">
<source>audiobook</source>
<target>audiobook</target>
</trans-unit>
<trans-unit id="9ippfeB" resname="podcast">
<source>podcast</source>
<target>podcast</target>
</trans-unit>
<trans-unit id="knGf4M_" resname="book">
<source>book</source>
<target>book</target>
</trans-unit>
<trans-unit id="DrPja.s" resname="archive">
<source>archive</source>
<target>archive</target>
</trans-unit>
<trans-unit id="LOonTQv" resname="picture">
<source>picture</source>
<target>picture</target>
</trans-unit>
<trans-unit id="NTkPVFP" resname="software">
<source>software</source>
<target>software</target>
</trans-unit>
<trans-unit id="2SmKENG" resname="other">
<source>other</source>
<target>other</target>
</trans-unit>
<trans-unit id="v7fLnQX" resname="Hide filter">
<source>Hide filter</source>
<target>Hide filter</target>
</trans-unit>
<trans-unit id="45aF7iu" resname="Show filter">
<source>Show filter</source>
<target>Show filter</target>
</trans-unit>
<trans-unit id="xj62cgx" resname="Private">
<source>Private</source>
<target>Private</target>
</trans-unit>
</body>
</file>
</xliff>

View file

@ -169,10 +169,6 @@
<source>Waiting for approve</source>
<target>Waiting for approve</target>
</trans-unit>
<trans-unit id="uP0WnsM" resname="Content visible for non sensitive users only">
<source>Content visible for non sensitive users only</source>
<target>Content visible for non sensitive users only</target>
</trans-unit>
<trans-unit id="GvhRkHM" resname="Size">
<source>Size</source>
<target>Size</target>
@ -397,10 +393,6 @@
<source>Join translation</source>
<target>Join translation</target>
</trans-unit>
<trans-unit id="R70pB1_" resname="Content">
<source>Content</source>
<target>Content</target>
</trans-unit>
<trans-unit id="ONoVBcq" resname="Activity">
<source>Activity</source>
<target>Activity</target>
@ -729,6 +721,198 @@
<source>Seeders wanted for torrent</source>
<target>Seeders wanted for torrent</target>
</trans-unit>
<trans-unit id="rCCle.3" resname="Hide">
<source>Hide</source>
<target>Hide</target>
</trans-unit>
<trans-unit id="m11TRpU" resname="have disabled torrent">
<source>have disabled torrent</source>
<target>have disabled torrent</target>
</trans-unit>
<trans-unit id="qfr4ljO" resname="have enabled torrent">
<source>have enabled torrent</source>
<target>have enabled torrent</target>
</trans-unit>
<trans-unit id="F_s8AWj" resname="disabled">
<source>disabled</source>
<target>disabled</target>
</trans-unit>
<trans-unit id="3HqhHgY" resname="Poster file out of size limit">
<source>Poster file out of size limit</source>
<target>Poster file out of size limit</target>
</trans-unit>
<trans-unit id="xKW1PAN" resname="Image file not supported">
<source>Image file not supported</source>
<target>Image file not supported</target>
</trans-unit>
<trans-unit id=".r0pj7s" resname="Poster file required">
<source>Poster file required</source>
<target>Poster file required</target>
</trans-unit>
<trans-unit id="OpO8m_n" resname="Edit torrent poster">
<source>Edit torrent poster</source>
<target>Edit torrent poster</target>
</trans-unit>
<trans-unit id="hO4zays" resname="Edit poster for torrent">
<source>Edit poster for torrent</source>
<target>Edit poster for torrent</target>
</trans-unit>
<trans-unit id="G6dup_P" resname="Poster">
<source>Poster</source>
<target>Poster</target>
</trans-unit>
<trans-unit id="HHOEGv4" resname="Posters">
<source>Posters</source>
<target>Posters</target>
</trans-unit>
<trans-unit id="dv2khYF" resname="have deleted poster edition">
<source>have deleted poster edition</source>
<target>have deleted poster edition</target>
</trans-unit>
<trans-unit id="CaAjDOQ" resname="have disapproved poster edition">
<source>have disapproved poster edition</source>
<target>have disapproved poster edition</target>
</trans-unit>
<trans-unit id="u26pehE" resname="have approved poster edition">
<source>have approved poster edition</source>
<target>have approved poster edition</target>
</trans-unit>
<trans-unit id="_jJysd3" resname="have added poster edition">
<source>have added poster edition</source>
<target>have added poster edition</target>
</trans-unit>
<trans-unit id="WDtpCq_" resname="Torrent posters">
<source>Torrent posters</source>
<target>Torrent posters</target>
</trans-unit>
<trans-unit id="2UYGdCf" resname="Center">
<source>Center</source>
<target>Center</target>
</trans-unit>
<trans-unit id="1c389.9" resname="Top">
<source>Top</source>
<target>Top</target>
</trans-unit>
<trans-unit id="R5rSGsk" resname="Bottom">
<source>Bottom</source>
<target>Bottom</target>
</trans-unit>
<trans-unit id="uLHYlMa" resname="Categories">
<source>Categories</source>
<target>Categories</target>
</trans-unit>
<trans-unit id="R2SmYMn" resname="At least one category required">
<source>At least one category required</source>
<target>At least one category required</target>
</trans-unit>
<trans-unit id="QmNxufM" resname="Content category">
<source>Content category</source>
<target>Content category</target>
</trans-unit>
<trans-unit id="zRrq72V" resname="This torrent have selected categories">
<source>This torrent have selected categories</source>
<target>This torrent have selected categories</target>
</trans-unit>
<trans-unit id="o_ep6hc" resname="Edit categories">
<source>Edit categories</source>
<target>Edit categories</target>
</trans-unit>
<trans-unit id="2SVm4J_" resname="Edit categories for torrent">
<source>Edit categories for torrent</source>
<target>Edit categories for torrent</target>
</trans-unit>
<trans-unit id="yj3GEvR" resname="Locale">
<source>Locale</source>
<target>Locale</target>
</trans-unit>
<trans-unit id="KSwG8AR" resname="Category">
<source>Category</source>
<target>Category</target>
</trans-unit>
<trans-unit id="AlYAkS1" resname="Torrent categories">
<source>Torrent categories</source>
<target>Torrent categories</target>
</trans-unit>
<trans-unit id="Yfrv1ti" resname="have deleted categories edition">
<source>have deleted categories edition</source>
<target>have deleted categories edition</target>
</trans-unit>
<trans-unit id="LAnRgSg" resname="have disapproved categories edition">
<source>have disapproved categories edition</source>
<target>have disapproved categories edition</target>
</trans-unit>
<trans-unit id="uF9AEqp" resname="have approved categories edition">
<source>have approved categories edition</source>
<target>have approved categories edition</target>
</trans-unit>
<trans-unit id="oVNdrer" resname="have added categories edition">
<source>have added categories edition</source>
<target>have added categories edition</target>
</trans-unit>
<trans-unit id="imujLJv" resname="movie">
<source>movie</source>
<target>movie</target>
</trans-unit>
<trans-unit id="nNo46jo" resname="series">
<source>series</source>
<target>series</target>
</trans-unit>
<trans-unit id="pG5dK74" resname="tv">
<source>tv</source>
<target>tv</target>
</trans-unit>
<trans-unit id="7CPO8DE" resname="animation">
<source>animation</source>
<target>animation</target>
</trans-unit>
<trans-unit id="gPGJmE5" resname="music">
<source>music</source>
<target>music</target>
</trans-unit>
<trans-unit id="bKXKt35" resname="game">
<source>game</source>
<target>game</target>
</trans-unit>
<trans-unit id="PYW9Udx" resname="audiobook">
<source>audiobook</source>
<target>audiobook</target>
</trans-unit>
<trans-unit id="9ippfeB" resname="podcast">
<source>podcast</source>
<target>podcast</target>
</trans-unit>
<trans-unit id="knGf4M_" resname="book">
<source>book</source>
<target>book</target>
</trans-unit>
<trans-unit id="DrPja.s" resname="archive">
<source>archive</source>
<target>archive</target>
</trans-unit>
<trans-unit id="LOonTQv" resname="picture">
<source>picture</source>
<target>picture</target>
</trans-unit>
<trans-unit id="NTkPVFP" resname="software">
<source>software</source>
<target>software</target>
</trans-unit>
<trans-unit id="2SmKENG" resname="other">
<source>other</source>
<target>other</target>
</trans-unit>
<trans-unit id="v7fLnQX" resname="Hide filter">
<source>Hide filter</source>
<target>Hide filter</target>
</trans-unit>
<trans-unit id="45aF7iu" resname="Show filter">
<source>Show filter</source>
<target>Show filter</target>
</trans-unit>
<trans-unit id="xj62cgx" resname="Private">
<source>Private</source>
<target>Private</target>
</trans-unit>
</body>
</file>
</xliff>

View file

@ -169,10 +169,6 @@
<source>Waiting for approve</source>
<target>Waiting for approve</target>
</trans-unit>
<trans-unit id="uP0WnsM" resname="Content visible for non sensitive users only">
<source>Content visible for non sensitive users only</source>
<target>Content visible for non sensitive users only</target>
</trans-unit>
<trans-unit id="GvhRkHM" resname="Size">
<source>Size</source>
<target>Size</target>
@ -397,10 +393,6 @@
<source>Join translation</source>
<target>Join translation</target>
</trans-unit>
<trans-unit id="R70pB1_" resname="Content">
<source>Content</source>
<target>Content</target>
</trans-unit>
<trans-unit id="ONoVBcq" resname="Activity">
<source>Activity</source>
<target>Activity</target>
@ -729,6 +721,198 @@
<source>Seeders wanted for torrent</source>
<target>Seeders wanted for torrent</target>
</trans-unit>
<trans-unit id="rCCle.3" resname="Hide">
<source>Hide</source>
<target>Hide</target>
</trans-unit>
<trans-unit id="m11TRpU" resname="have disabled torrent">
<source>have disabled torrent</source>
<target>have disabled torrent</target>
</trans-unit>
<trans-unit id="qfr4ljO" resname="have enabled torrent">
<source>have enabled torrent</source>
<target>have enabled torrent</target>
</trans-unit>
<trans-unit id="F_s8AWj" resname="disabled">
<source>disabled</source>
<target>disabled</target>
</trans-unit>
<trans-unit id="3HqhHgY" resname="Poster file out of size limit">
<source>Poster file out of size limit</source>
<target>Poster file out of size limit</target>
</trans-unit>
<trans-unit id="xKW1PAN" resname="Image file not supported">
<source>Image file not supported</source>
<target>Image file not supported</target>
</trans-unit>
<trans-unit id=".r0pj7s" resname="Poster file required">
<source>Poster file required</source>
<target>Poster file required</target>
</trans-unit>
<trans-unit id="OpO8m_n" resname="Edit torrent poster">
<source>Edit torrent poster</source>
<target>Edit torrent poster</target>
</trans-unit>
<trans-unit id="hO4zays" resname="Edit poster for torrent">
<source>Edit poster for torrent</source>
<target>Edit poster for torrent</target>
</trans-unit>
<trans-unit id="G6dup_P" resname="Poster">
<source>Poster</source>
<target>Poster</target>
</trans-unit>
<trans-unit id="HHOEGv4" resname="Posters">
<source>Posters</source>
<target>Posters</target>
</trans-unit>
<trans-unit id="dv2khYF" resname="have deleted poster edition">
<source>have deleted poster edition</source>
<target>have deleted poster edition</target>
</trans-unit>
<trans-unit id="CaAjDOQ" resname="have disapproved poster edition">
<source>have disapproved poster edition</source>
<target>have disapproved poster edition</target>
</trans-unit>
<trans-unit id="u26pehE" resname="have approved poster edition">
<source>have approved poster edition</source>
<target>have approved poster edition</target>
</trans-unit>
<trans-unit id="_jJysd3" resname="have added poster edition">
<source>have added poster edition</source>
<target>have added poster edition</target>
</trans-unit>
<trans-unit id="WDtpCq_" resname="Torrent posters">
<source>Torrent posters</source>
<target>Torrent posters</target>
</trans-unit>
<trans-unit id="2UYGdCf" resname="Center">
<source>Center</source>
<target>Center</target>
</trans-unit>
<trans-unit id="1c389.9" resname="Top">
<source>Top</source>
<target>Top</target>
</trans-unit>
<trans-unit id="R5rSGsk" resname="Bottom">
<source>Bottom</source>
<target>Bottom</target>
</trans-unit>
<trans-unit id="uLHYlMa" resname="Categories">
<source>Categories</source>
<target>Categories</target>
</trans-unit>
<trans-unit id="R2SmYMn" resname="At least one category required">
<source>At least one category required</source>
<target>At least one category required</target>
</trans-unit>
<trans-unit id="QmNxufM" resname="Content category">
<source>Content category</source>
<target>Content category</target>
</trans-unit>
<trans-unit id="zRrq72V" resname="This torrent have selected categories">
<source>This torrent have selected categories</source>
<target>This torrent have selected categories</target>
</trans-unit>
<trans-unit id="o_ep6hc" resname="Edit categories">
<source>Edit categories</source>
<target>Edit categories</target>
</trans-unit>
<trans-unit id="2SVm4J_" resname="Edit categories for torrent">
<source>Edit categories for torrent</source>
<target>Edit categories for torrent</target>
</trans-unit>
<trans-unit id="yj3GEvR" resname="Locale">
<source>Locale</source>
<target>Locale</target>
</trans-unit>
<trans-unit id="KSwG8AR" resname="Category">
<source>Category</source>
<target>Category</target>
</trans-unit>
<trans-unit id="AlYAkS1" resname="Torrent categories">
<source>Torrent categories</source>
<target>Torrent categories</target>
</trans-unit>
<trans-unit id="Yfrv1ti" resname="have deleted categories edition">
<source>have deleted categories edition</source>
<target>have deleted categories edition</target>
</trans-unit>
<trans-unit id="LAnRgSg" resname="have disapproved categories edition">
<source>have disapproved categories edition</source>
<target>have disapproved categories edition</target>
</trans-unit>
<trans-unit id="uF9AEqp" resname="have approved categories edition">
<source>have approved categories edition</source>
<target>have approved categories edition</target>
</trans-unit>
<trans-unit id="oVNdrer" resname="have added categories edition">
<source>have added categories edition</source>
<target>have added categories edition</target>
</trans-unit>
<trans-unit id="imujLJv" resname="movie">
<source>movie</source>
<target>movie</target>
</trans-unit>
<trans-unit id="nNo46jo" resname="series">
<source>series</source>
<target>series</target>
</trans-unit>
<trans-unit id="pG5dK74" resname="tv">
<source>tv</source>
<target>tv</target>
</trans-unit>
<trans-unit id="7CPO8DE" resname="animation">
<source>animation</source>
<target>animation</target>
</trans-unit>
<trans-unit id="gPGJmE5" resname="music">
<source>music</source>
<target>music</target>
</trans-unit>
<trans-unit id="bKXKt35" resname="game">
<source>game</source>
<target>game</target>
</trans-unit>
<trans-unit id="PYW9Udx" resname="audiobook">
<source>audiobook</source>
<target>audiobook</target>
</trans-unit>
<trans-unit id="9ippfeB" resname="podcast">
<source>podcast</source>
<target>podcast</target>
</trans-unit>
<trans-unit id="knGf4M_" resname="book">
<source>book</source>
<target>book</target>
</trans-unit>
<trans-unit id="DrPja.s" resname="archive">
<source>archive</source>
<target>archive</target>
</trans-unit>
<trans-unit id="LOonTQv" resname="picture">
<source>picture</source>
<target>picture</target>
</trans-unit>
<trans-unit id="NTkPVFP" resname="software">
<source>software</source>
<target>software</target>
</trans-unit>
<trans-unit id="2SmKENG" resname="other">
<source>other</source>
<target>other</target>
</trans-unit>
<trans-unit id="v7fLnQX" resname="Hide filter">
<source>Hide filter</source>
<target>Hide filter</target>
</trans-unit>
<trans-unit id="45aF7iu" resname="Show filter">
<source>Show filter</source>
<target>Show filter</target>
</trans-unit>
<trans-unit id="xj62cgx" resname="Private">
<source>Private</source>
<target>Private</target>
</trans-unit>
</body>
</file>
</xliff>

View file

@ -169,10 +169,6 @@
<source>Waiting for approve</source>
<target>Waiting for approve</target>
</trans-unit>
<trans-unit id="uP0WnsM" resname="Content visible for non sensitive users only">
<source>Content visible for non sensitive users only</source>
<target>Content visible for non sensitive users only</target>
</trans-unit>
<trans-unit id="GvhRkHM" resname="Size">
<source>Size</source>
<target>Size</target>
@ -397,10 +393,6 @@
<source>Join translation</source>
<target>Join translation</target>
</trans-unit>
<trans-unit id="R70pB1_" resname="Content">
<source>Content</source>
<target>Content</target>
</trans-unit>
<trans-unit id="ONoVBcq" resname="Activity">
<source>Activity</source>
<target>Activity</target>
@ -729,6 +721,198 @@
<source>Seeders wanted for torrent</source>
<target>Seeders wanted for torrent</target>
</trans-unit>
<trans-unit id="rCCle.3" resname="Hide">
<source>Hide</source>
<target>Hide</target>
</trans-unit>
<trans-unit id="m11TRpU" resname="have disabled torrent">
<source>have disabled torrent</source>
<target>have disabled torrent</target>
</trans-unit>
<trans-unit id="qfr4ljO" resname="have enabled torrent">
<source>have enabled torrent</source>
<target>have enabled torrent</target>
</trans-unit>
<trans-unit id="F_s8AWj" resname="disabled">
<source>disabled</source>
<target>disabled</target>
</trans-unit>
<trans-unit id="3HqhHgY" resname="Poster file out of size limit">
<source>Poster file out of size limit</source>
<target>Poster file out of size limit</target>
</trans-unit>
<trans-unit id="xKW1PAN" resname="Image file not supported">
<source>Image file not supported</source>
<target>Image file not supported</target>
</trans-unit>
<trans-unit id=".r0pj7s" resname="Poster file required">
<source>Poster file required</source>
<target>Poster file required</target>
</trans-unit>
<trans-unit id="OpO8m_n" resname="Edit torrent poster">
<source>Edit torrent poster</source>
<target>Edit torrent poster</target>
</trans-unit>
<trans-unit id="hO4zays" resname="Edit poster for torrent">
<source>Edit poster for torrent</source>
<target>Edit poster for torrent</target>
</trans-unit>
<trans-unit id="G6dup_P" resname="Poster">
<source>Poster</source>
<target>Poster</target>
</trans-unit>
<trans-unit id="HHOEGv4" resname="Posters">
<source>Posters</source>
<target>Posters</target>
</trans-unit>
<trans-unit id="dv2khYF" resname="have deleted poster edition">
<source>have deleted poster edition</source>
<target>have deleted poster edition</target>
</trans-unit>
<trans-unit id="CaAjDOQ" resname="have disapproved poster edition">
<source>have disapproved poster edition</source>
<target>have disapproved poster edition</target>
</trans-unit>
<trans-unit id="u26pehE" resname="have approved poster edition">
<source>have approved poster edition</source>
<target>have approved poster edition</target>
</trans-unit>
<trans-unit id="_jJysd3" resname="have added poster edition">
<source>have added poster edition</source>
<target>have added poster edition</target>
</trans-unit>
<trans-unit id="WDtpCq_" resname="Torrent posters">
<source>Torrent posters</source>
<target>Torrent posters</target>
</trans-unit>
<trans-unit id="2UYGdCf" resname="Center">
<source>Center</source>
<target>Center</target>
</trans-unit>
<trans-unit id="1c389.9" resname="Top">
<source>Top</source>
<target>Top</target>
</trans-unit>
<trans-unit id="R5rSGsk" resname="Bottom">
<source>Bottom</source>
<target>Bottom</target>
</trans-unit>
<trans-unit id="uLHYlMa" resname="Categories">
<source>Categories</source>
<target>Categories</target>
</trans-unit>
<trans-unit id="R2SmYMn" resname="At least one category required">
<source>At least one category required</source>
<target>At least one category required</target>
</trans-unit>
<trans-unit id="QmNxufM" resname="Content category">
<source>Content category</source>
<target>Content category</target>
</trans-unit>
<trans-unit id="zRrq72V" resname="This torrent have selected categories">
<source>This torrent have selected categories</source>
<target>This torrent have selected categories</target>
</trans-unit>
<trans-unit id="o_ep6hc" resname="Edit categories">
<source>Edit categories</source>
<target>Edit categories</target>
</trans-unit>
<trans-unit id="2SVm4J_" resname="Edit categories for torrent">
<source>Edit categories for torrent</source>
<target>Edit categories for torrent</target>
</trans-unit>
<trans-unit id="yj3GEvR" resname="Locale">
<source>Locale</source>
<target>Locale</target>
</trans-unit>
<trans-unit id="KSwG8AR" resname="Category">
<source>Category</source>
<target>Category</target>
</trans-unit>
<trans-unit id="AlYAkS1" resname="Torrent categories">
<source>Torrent categories</source>
<target>Torrent categories</target>
</trans-unit>
<trans-unit id="Yfrv1ti" resname="have deleted categories edition">
<source>have deleted categories edition</source>
<target>have deleted categories edition</target>
</trans-unit>
<trans-unit id="LAnRgSg" resname="have disapproved categories edition">
<source>have disapproved categories edition</source>
<target>have disapproved categories edition</target>
</trans-unit>
<trans-unit id="uF9AEqp" resname="have approved categories edition">
<source>have approved categories edition</source>
<target>have approved categories edition</target>
</trans-unit>
<trans-unit id="oVNdrer" resname="have added categories edition">
<source>have added categories edition</source>
<target>have added categories edition</target>
</trans-unit>
<trans-unit id="imujLJv" resname="movie">
<source>movie</source>
<target>movie</target>
</trans-unit>
<trans-unit id="nNo46jo" resname="series">
<source>series</source>
<target>series</target>
</trans-unit>
<trans-unit id="pG5dK74" resname="tv">
<source>tv</source>
<target>tv</target>
</trans-unit>
<trans-unit id="7CPO8DE" resname="animation">
<source>animation</source>
<target>animation</target>
</trans-unit>
<trans-unit id="gPGJmE5" resname="music">
<source>music</source>
<target>music</target>
</trans-unit>
<trans-unit id="bKXKt35" resname="game">
<source>game</source>
<target>game</target>
</trans-unit>
<trans-unit id="PYW9Udx" resname="audiobook">
<source>audiobook</source>
<target>audiobook</target>
</trans-unit>
<trans-unit id="9ippfeB" resname="podcast">
<source>podcast</source>
<target>podcast</target>
</trans-unit>
<trans-unit id="knGf4M_" resname="book">
<source>book</source>
<target>book</target>
</trans-unit>
<trans-unit id="DrPja.s" resname="archive">
<source>archive</source>
<target>archive</target>
</trans-unit>
<trans-unit id="LOonTQv" resname="picture">
<source>picture</source>
<target>picture</target>
</trans-unit>
<trans-unit id="NTkPVFP" resname="software">
<source>software</source>
<target>software</target>
</trans-unit>
<trans-unit id="2SmKENG" resname="other">
<source>other</source>
<target>other</target>
</trans-unit>
<trans-unit id="v7fLnQX" resname="Hide filter">
<source>Hide filter</source>
<target>Hide filter</target>
</trans-unit>
<trans-unit id="45aF7iu" resname="Show filter">
<source>Show filter</source>
<target>Show filter</target>
</trans-unit>
<trans-unit id="xj62cgx" resname="Private">
<source>Private</source>
<target>Private</target>
</trans-unit>
</body>
</file>
</xliff>

View file

@ -169,10 +169,6 @@
<source>Waiting for approve</source>
<target>Waiting for approve</target>
</trans-unit>
<trans-unit id="uP0WnsM" resname="Content visible for non sensitive users only">
<source>Content visible for non sensitive users only</source>
<target>Content visible for non sensitive users only</target>
</trans-unit>
<trans-unit id="GvhRkHM" resname="Size">
<source>Size</source>
<target>Size</target>
@ -397,10 +393,6 @@
<source>Join translation</source>
<target>Join translation</target>
</trans-unit>
<trans-unit id="R70pB1_" resname="Content">
<source>Content</source>
<target>Content</target>
</trans-unit>
<trans-unit id="ONoVBcq" resname="Activity">
<source>Activity</source>
<target>Activity</target>
@ -729,6 +721,198 @@
<source>Seeders wanted for torrent</source>
<target>Seeders wanted for torrent</target>
</trans-unit>
<trans-unit id="rCCle.3" resname="Hide">
<source>Hide</source>
<target>Hide</target>
</trans-unit>
<trans-unit id="m11TRpU" resname="have disabled torrent">
<source>have disabled torrent</source>
<target>have disabled torrent</target>
</trans-unit>
<trans-unit id="qfr4ljO" resname="have enabled torrent">
<source>have enabled torrent</source>
<target>have enabled torrent</target>
</trans-unit>
<trans-unit id="F_s8AWj" resname="disabled">
<source>disabled</source>
<target>disabled</target>
</trans-unit>
<trans-unit id="3HqhHgY" resname="Poster file out of size limit">
<source>Poster file out of size limit</source>
<target>Poster file out of size limit</target>
</trans-unit>
<trans-unit id="xKW1PAN" resname="Image file not supported">
<source>Image file not supported</source>
<target>Image file not supported</target>
</trans-unit>
<trans-unit id=".r0pj7s" resname="Poster file required">
<source>Poster file required</source>
<target>Poster file required</target>
</trans-unit>
<trans-unit id="OpO8m_n" resname="Edit torrent poster">
<source>Edit torrent poster</source>
<target>Edit torrent poster</target>
</trans-unit>
<trans-unit id="hO4zays" resname="Edit poster for torrent">
<source>Edit poster for torrent</source>
<target>Edit poster for torrent</target>
</trans-unit>
<trans-unit id="G6dup_P" resname="Poster">
<source>Poster</source>
<target>Poster</target>
</trans-unit>
<trans-unit id="HHOEGv4" resname="Posters">
<source>Posters</source>
<target>Posters</target>
</trans-unit>
<trans-unit id="dv2khYF" resname="have deleted poster edition">
<source>have deleted poster edition</source>
<target>have deleted poster edition</target>
</trans-unit>
<trans-unit id="CaAjDOQ" resname="have disapproved poster edition">
<source>have disapproved poster edition</source>
<target>have disapproved poster edition</target>
</trans-unit>
<trans-unit id="u26pehE" resname="have approved poster edition">
<source>have approved poster edition</source>
<target>have approved poster edition</target>
</trans-unit>
<trans-unit id="_jJysd3" resname="have added poster edition">
<source>have added poster edition</source>
<target>have added poster edition</target>
</trans-unit>
<trans-unit id="WDtpCq_" resname="Torrent posters">
<source>Torrent posters</source>
<target>Torrent posters</target>
</trans-unit>
<trans-unit id="2UYGdCf" resname="Center">
<source>Center</source>
<target>Center</target>
</trans-unit>
<trans-unit id="1c389.9" resname="Top">
<source>Top</source>
<target>Top</target>
</trans-unit>
<trans-unit id="R5rSGsk" resname="Bottom">
<source>Bottom</source>
<target>Bottom</target>
</trans-unit>
<trans-unit id="uLHYlMa" resname="Categories">
<source>Categories</source>
<target>Categories</target>
</trans-unit>
<trans-unit id="R2SmYMn" resname="At least one category required">
<source>At least one category required</source>
<target>At least one category required</target>
</trans-unit>
<trans-unit id="QmNxufM" resname="Content category">
<source>Content category</source>
<target>Content category</target>
</trans-unit>
<trans-unit id="zRrq72V" resname="This torrent have selected categories">
<source>This torrent have selected categories</source>
<target>This torrent have selected categories</target>
</trans-unit>
<trans-unit id="o_ep6hc" resname="Edit categories">
<source>Edit categories</source>
<target>Edit categories</target>
</trans-unit>
<trans-unit id="2SVm4J_" resname="Edit categories for torrent">
<source>Edit categories for torrent</source>
<target>Edit categories for torrent</target>
</trans-unit>
<trans-unit id="yj3GEvR" resname="Locale">
<source>Locale</source>
<target>Locale</target>
</trans-unit>
<trans-unit id="KSwG8AR" resname="Category">
<source>Category</source>
<target>Category</target>
</trans-unit>
<trans-unit id="AlYAkS1" resname="Torrent categories">
<source>Torrent categories</source>
<target>Torrent categories</target>
</trans-unit>
<trans-unit id="Yfrv1ti" resname="have deleted categories edition">
<source>have deleted categories edition</source>
<target>have deleted categories edition</target>
</trans-unit>
<trans-unit id="LAnRgSg" resname="have disapproved categories edition">
<source>have disapproved categories edition</source>
<target>have disapproved categories edition</target>
</trans-unit>
<trans-unit id="uF9AEqp" resname="have approved categories edition">
<source>have approved categories edition</source>
<target>have approved categories edition</target>
</trans-unit>
<trans-unit id="oVNdrer" resname="have added categories edition">
<source>have added categories edition</source>
<target>have added categories edition</target>
</trans-unit>
<trans-unit id="imujLJv" resname="movie">
<source>movie</source>
<target>movie</target>
</trans-unit>
<trans-unit id="nNo46jo" resname="series">
<source>series</source>
<target>series</target>
</trans-unit>
<trans-unit id="pG5dK74" resname="tv">
<source>tv</source>
<target>tv</target>
</trans-unit>
<trans-unit id="7CPO8DE" resname="animation">
<source>animation</source>
<target>animation</target>
</trans-unit>
<trans-unit id="gPGJmE5" resname="music">
<source>music</source>
<target>music</target>
</trans-unit>
<trans-unit id="bKXKt35" resname="game">
<source>game</source>
<target>game</target>
</trans-unit>
<trans-unit id="PYW9Udx" resname="audiobook">
<source>audiobook</source>
<target>audiobook</target>
</trans-unit>
<trans-unit id="9ippfeB" resname="podcast">
<source>podcast</source>
<target>podcast</target>
</trans-unit>
<trans-unit id="knGf4M_" resname="book">
<source>book</source>
<target>book</target>
</trans-unit>
<trans-unit id="DrPja.s" resname="archive">
<source>archive</source>
<target>archive</target>
</trans-unit>
<trans-unit id="LOonTQv" resname="picture">
<source>picture</source>
<target>picture</target>
</trans-unit>
<trans-unit id="NTkPVFP" resname="software">
<source>software</source>
<target>software</target>
</trans-unit>
<trans-unit id="2SmKENG" resname="other">
<source>other</source>
<target>other</target>
</trans-unit>
<trans-unit id="v7fLnQX" resname="Hide filter">
<source>Hide filter</source>
<target>Hide filter</target>
</trans-unit>
<trans-unit id="45aF7iu" resname="Show filter">
<source>Show filter</source>
<target>Show filter</target>
</trans-unit>
<trans-unit id="xj62cgx" resname="Private">
<source>Private</source>
<target>Private</target>
</trans-unit>
</body>
</file>
</xliff>

View file

@ -0,0 +1,918 @@
<?xml version="1.0" encoding="utf-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
<file source-language="en" target-language="ja" datatype="plaintext" original="file.ext">
<header>
<tool tool-id="symfony" tool-name="Symfony"/>
</header>
<body>
<trans-unit id="awzJBNC" resname="Users">
<source>Users</source>
<target>Users</target>
</trans-unit>
<trans-unit id="aTGLDGq" resname="Joined">
<source>Joined</source>
<target>Joined</target>
</trans-unit>
<trans-unit id="h7QuQMK" resname="Approved">
<source>Approved</source>
<target>Approved</target>
</trans-unit>
<trans-unit id="4DA0L1y" resname="Disapproved">
<source>Disapproved</source>
<target>Disapproved</target>
</trans-unit>
<trans-unit id="RJ.LE0Z" resname="User statuses">
<source>User statuses</source>
<target>User statuses</target>
</trans-unit>
<trans-unit id="ksHN.fT" resname="Enabled">
<source>Enabled</source>
<target>Enabled</target>
</trans-unit>
<trans-unit id="dQgbWT0" resname="Disabled">
<source>Disabled</source>
<target>Disabled</target>
</trans-unit>
<trans-unit id="a8mndct" resname="User moderators">
<source>User moderators</source>
<target>User moderators</target>
</trans-unit>
<trans-unit id="awLg02O" resname="Added">
<source>Added</source>
<target>Added</target>
</trans-unit>
<trans-unit id="QRj7T_0" resname="Removed">
<source>Removed</source>
<target>Removed</target>
</trans-unit>
<trans-unit id="kg68hPN" resname="User stars">
<source>User stars</source>
<target>User stars</target>
</trans-unit>
<trans-unit id="ohibNaT" resname="Torrents">
<source>Torrents</source>
<target>Torrents</target>
</trans-unit>
<trans-unit id="lq4iox7" resname="Torrent locales">
<source>Torrent locales</source>
<target>Torrent locales</target>
</trans-unit>
<trans-unit id="tI.znC4" resname="Deleted">
<source>Deleted</source>
<target>Deleted</target>
</trans-unit>
<trans-unit id="Vt2WDnJ" resname="Torrent sensitive">
<source>Torrent sensitive</source>
<target>Torrent sensitive</target>
</trans-unit>
<trans-unit id="tL8VElY" resname="Torrent stars">
<source>Torrent stars</source>
<target>Torrent stars</target>
</trans-unit>
<trans-unit id="ZxMky2X" resname="Torrent downloads">
<source>Torrent downloads</source>
<target>Torrent downloads</target>
</trans-unit>
<trans-unit id="q8fpiSg" resname="Files">
<source>Files</source>
<target>Files</target>
</trans-unit>
<trans-unit id="0y.A5if" resname="Magnet links">
<source>Magnet links</source>
<target>Magnet links</target>
</trans-unit>
<trans-unit id="zBHUFdk" resname="Access denied">
<source>Access denied</source>
<target>Access denied</target>
</trans-unit>
<trans-unit id="_ji6HWn" resname="At least one locale required">
<source>At least one locale required</source>
<target>At least one locale required</target>
</trans-unit>
<trans-unit id="fYxwFh4" resname="Torrent file out of size limit">
<source>Torrent file out of size limit</source>
<target>Torrent file out of size limit</target>
</trans-unit>
<trans-unit id="J4iakCK" resname="Torrent file already exists">
<source>Torrent file already exists</source>
<target>Torrent file already exists</target>
</trans-unit>
<trans-unit id="OMHLqqs" resname="Could not parse torrent file">
<source>Could not parse torrent file</source>
<target>Could not parse torrent file</target>
</trans-unit>
<trans-unit id="6rhNefb" resname="Torrent file required">
<source>Torrent file required</source>
<target>Torrent file required</target>
</trans-unit>
<trans-unit id="335w5QI" resname="B">
<source>B</source>
<target>B</target>
</trans-unit>
<trans-unit id="pNfcu5." resname="Kb">
<source>Kb</source>
<target>Kb</target>
</trans-unit>
<trans-unit id="mhI2lhb" resname="Mb">
<source>Mb</source>
<target>Mb</target>
</trans-unit>
<trans-unit id="e0K0oQ5" resname="Gb">
<source>Gb</source>
<target>Gb</target>
</trans-unit>
<trans-unit id="wI8AiyL" resname="Tb">
<source>Tb</source>
<target>Tb</target>
</trans-unit>
<trans-unit id="cfWnmQc" resname="Pb">
<source>Pb</source>
<target>Pb</target>
</trans-unit>
<trans-unit id="0YVBcLX" resname="Eb">
<source>Eb</source>
<target>Eb</target>
</trans-unit>
<trans-unit id="IISijB3" resname="Zb">
<source>Zb</source>
<target>Zb</target>
</trans-unit>
<trans-unit id="xh_ZAt3" resname="Yb">
<source>Yb</source>
<target>Yb</target>
</trans-unit>
<trans-unit id="7V65o34" resname="now">
<source>now</source>
<target>now</target>
</trans-unit>
<trans-unit id="aw2VQXS" resname="Keyword, file, hash...">
<source>Keyword, file, hash...</source>
<target>Keyword, file, hash...</target>
</trans-unit>
<trans-unit id="ScJmuqq" resname="Search">
<source>Search</source>
<target>Search</target>
</trans-unit>
<trans-unit id="k8s5Jex" resname="Recent uploads">
<source>Recent uploads</source>
<target>Recent uploads</target>
</trans-unit>
<trans-unit id="xQ9.bKM" resname="Active leechers waiting for seeders">
<source>Active leechers waiting for seeders</source>
<target>Active leechers waiting for seeders</target>
</trans-unit>
<trans-unit id="ypBmhzv" resname="wanted">
<source>wanted</source>
<target>wanted</target>
</trans-unit>
<trans-unit id="R138zpi" resname="Waiting for approve">
<source>Waiting for approve</source>
<target>Waiting for approve</target>
</trans-unit>
<trans-unit id="GvhRkHM" resname="Size">
<source>Size</source>
<target>Size</target>
</trans-unit>
<trans-unit id="QKvXHnR" resname="Seeders">
<source>Seeders</source>
<target>Seeders</target>
</trans-unit>
<trans-unit id="ZLdpvK_" resname="Peers">
<source>Peers</source>
<target>Peers</target>
</trans-unit>
<trans-unit id="mR8Ug6L" resname="Leechers">
<source>Leechers</source>
<target>Leechers</target>
</trans-unit>
<trans-unit id="E_vs9Gs" resname="Open magnet link">
<source>Open magnet link</source>
<target>Open magnet link</target>
</trans-unit>
<trans-unit id="ybPDgkf" resname="Total">
<source>Total</source>
<target>Total</target>
</trans-unit>
<trans-unit id="5Y_6cg2" resname="Download torrent file">
<source>Download torrent file</source>
<target>Download torrent file</target>
</trans-unit>
<trans-unit id="41fTloc" resname="Star">
<source>Star</source>
<target>Star</target>
</trans-unit>
<trans-unit id="n1ysPPL" resname="Nothing found">
<source>Nothing found</source>
<target>Nothing found</target>
</trans-unit>
<trans-unit id="gtAEXOf" resname="* share new torrent file to change it">
<source>* share new torrent file to change it</source>
<target>* share new torrent file to change it</target>
</trans-unit>
<trans-unit id="FV_BbAQ" resname="Submit">
<source>Submit</source>
<target>Submit</target>
</trans-unit>
<trans-unit id="ZTfB0U1" resname="Submit torrent">
<source>Submit torrent</source>
<target>Submit torrent</target>
</trans-unit>
<trans-unit id="wAsU1pF" resname="Content language">
<source>Content language</source>
<target>Content language</target>
</trans-unit>
<trans-unit id="y_ytxTz" resname="This torrent contains selected languages">
<source>This torrent contains selected languages</source>
<target>This torrent contains selected languages</target>
</trans-unit>
<trans-unit id="LGTAMNS" resname="Sensitive">
<source>Sensitive</source>
<target>Sensitive</target>
</trans-unit>
<trans-unit id="fhhVD.B" resname="Mark torrent content as sensitive">
<source>Mark torrent content as sensitive</source>
<target>Mark torrent content as sensitive</target>
</trans-unit>
<trans-unit id="2ZuDCA5" resname="Edit locales">
<source>Edit locales</source>
<target>Edit locales</target>
</trans-unit>
<trans-unit id="OBSQFyT" resname="Torrent">
<source>Torrent</source>
<target>Torrent</target>
</trans-unit>
<trans-unit id="kE0Fugk" resname="Edit locales for torrent">
<source>Edit locales for torrent</source>
<target>Edit locales for torrent</target>
</trans-unit>
<trans-unit id="I3TZF5S" resname="cancel">
<source>cancel</source>
<target>cancel</target>
</trans-unit>
<trans-unit id="p_LSbo0" resname="by">
<source>by</source>
<target>by</target>
</trans-unit>
<trans-unit id="kONatGQ" resname="identicon">
<source>identicon</source>
<target>identicon</target>
</trans-unit>
<trans-unit id="4tClSWj" resname="Delete">
<source>Delete</source>
<target>Delete</target>
</trans-unit>
<trans-unit id="GFXm4Yt" resname="Disapprove">
<source>Disapprove</source>
<target>Disapprove</target>
</trans-unit>
<trans-unit id="YAesvjC" resname="Approve">
<source>Approve</source>
<target>Approve</target>
</trans-unit>
<trans-unit id="Iqk3OBD" resname="Edit sensitive status">
<source>Edit sensitive status</source>
<target>Edit sensitive status</target>
</trans-unit>
<trans-unit id="rzkdzo_" resname="Edit sensitive status for torrent">
<source>Edit sensitive status for torrent</source>
<target>Edit sensitive status for torrent</target>
</trans-unit>
<trans-unit id="CjCoFdZ" resname="Page">
<source>Page</source>
<target>Page</target>
</trans-unit>
<trans-unit id="Em1EFUR" resname="Moderation">
<source>Moderation</source>
<target>Moderation</target>
</trans-unit>
<trans-unit id="haOas0X" resname="Yes">
<source>Yes</source>
<target>Yes</target>
</trans-unit>
<trans-unit id="PQOh3qV" resname="Toggle">
<source>Toggle</source>
<target>Toggle</target>
</trans-unit>
<trans-unit id="HqRCoTS" resname="No">
<source>No</source>
<target>No</target>
</trans-unit>
<trans-unit id="MJlV4Ah" resname="Common">
<source>Common</source>
<target>Common</target>
</trans-unit>
<trans-unit id="OEOXHc." resname="ID">
<source>ID</source>
<target>ID</target>
</trans-unit>
<trans-unit id="ZCcQ4t2" resname="MD5">
<source>MD5</source>
<target>MD5</target>
</trans-unit>
<trans-unit id="T3Un3Wo" resname="Info hash v1">
<source>Info hash v1</source>
<target>Info hash v1</target>
</trans-unit>
<trans-unit id="k77N_dn" resname="Info hash v2">
<source>Info hash v2</source>
<target>Info hash v2</target>
</trans-unit>
<trans-unit id="1wueJLy" resname="Created">
<source>Created</source>
<target>Created</target>
</trans-unit>
<trans-unit id="3QXQ4kf" resname="Pieces">
<source>Pieces</source>
<target>Pieces</target>
</trans-unit>
<trans-unit id="DlcMpvq" resname="Source">
<source>Source</source>
<target>Source</target>
</trans-unit>
<trans-unit id="mzKJo4W" resname="Software">
<source>Software</source>
<target>Software</target>
</trans-unit>
<trans-unit id="RPXj__x" resname="Comment">
<source>Comment</source>
<target>Comment</target>
</trans-unit>
<trans-unit id="NQrUM8Q" resname="Contributors">
<source>Contributors</source>
<target>Contributors</target>
</trans-unit>
<trans-unit id="mvYF.Ky" resname="Scrape">
<source>Scrape</source>
<target>Scrape</target>
</trans-unit>
<trans-unit id="Bud8ddd" resname="Trackers">
<source>Trackers</source>
<target>Trackers</target>
</trans-unit>
<trans-unit id="Ph5aqB7" resname="Filtered by settings">
<source>Filtered by settings</source>
<target>Filtered by settings</target>
</trans-unit>
<trans-unit id="RkxP.QG" resname="Edit">
<source>Edit</source>
<target>Edit</target>
</trans-unit>
<trans-unit id="g7KFKj7" resname="Locales">
<source>Locales</source>
<target>Locales</target>
</trans-unit>
<trans-unit id="bLRLVjN" resname="Recent activity">
<source>Recent activity</source>
<target>Recent activity</target>
</trans-unit>
<trans-unit id="dpAPG.0" resname="Back">
<source>Back</source>
<target>Back</target>
</trans-unit>
<trans-unit id="H.V6Kdf" resname="Next">
<source>Next</source>
<target>Next</target>
</trans-unit>
<trans-unit id="dKiDoDe" resname="Settings">
<source>Settings</source>
<target>Settings</target>
</trans-unit>
<trans-unit id="wms_1M5" resname="Interface">
<source>Interface</source>
<target>Interface</target>
</trans-unit>
<trans-unit id="77UucXK" resname="Theme">
<source>Theme</source>
<target>Theme</target>
</trans-unit>
<trans-unit id="pP5lJk7" resname="Language">
<source>Language</source>
<target>Language</target>
</trans-unit>
<trans-unit id="ByvVctG" resname="Join translation">
<source>Join translation</source>
<target>Join translation</target>
</trans-unit>
<trans-unit id="ONoVBcq" resname="Activity">
<source>Activity</source>
<target>Activity</target>
</trans-unit>
<trans-unit id="1f3BrwI" resname="Downloads">
<source>Downloads</source>
<target>Downloads</target>
</trans-unit>
<trans-unit id="zmgk0li" resname="Yggdrasil only">
<source>Yggdrasil only</source>
<target>Yggdrasil only</target>
</trans-unit>
<trans-unit id="FQn1YfJ" resname="Save">
<source>Save</source>
<target>Save</target>
</trans-unit>
<trans-unit id="OnhpU4i" resname="Home">
<source>Home</source>
<target>Home</target>
</trans-unit>
<trans-unit id="1pajW90" resname="Profile">
<source>Profile</source>
<target>Profile</target>
</trans-unit>
<trans-unit id="tRLZfny" resname="User">
<source>User</source>
<target>User</target>
</trans-unit>
<trans-unit id="G6xAB4g" resname="Bookmark">
<source>Bookmark</source>
<target>Bookmark</target>
</trans-unit>
<trans-unit id="Vu_PIJV" resname="Address">
<source>Address</source>
<target>Address</target>
</trans-unit>
<trans-unit id="3VuNjXf" resname="Address hidden for others">
<source>Address hidden for others</source>
<target>Address hidden for others</target>
</trans-unit>
<trans-unit id="7Fugq7c" resname="Access">
<source>Access</source>
<target>Access</target>
</trans-unit>
<trans-unit id="kg5BPH1" resname="Status">
<source>Status</source>
<target>Status</target>
</trans-unit>
<trans-unit id="kjQGlYm" resname="Active">
<source>Active</source>
<target>Active</target>
</trans-unit>
<trans-unit id="Z0jsi3Z" resname="Moderator">
<source>Moderator</source>
<target>Moderator</target>
</trans-unit>
<trans-unit id="MYZVzqS" resname="Languages">
<source>Languages</source>
<target>Languages</target>
</trans-unit>
<trans-unit id="CLoCFMI" resname="Events subscribed">
<source>Events subscribed</source>
<target>Events subscribed</target>
</trans-unit>
<trans-unit id="qqJclwn" resname="undefined event">
<source>undefined event</source>
<target>undefined event</target>
</trans-unit>
<trans-unit id="4Il4Y5X" resname="have downloaded torrent file">
<source>have downloaded torrent file</source>
<target>have downloaded torrent file</target>
</trans-unit>
<trans-unit id="h80m7iF" resname="waiting for approve">
<source>waiting for approve</source>
<target>waiting for approve</target>
</trans-unit>
<trans-unit id="LV6GAKT" resname="sensitive">
<source>sensitive</source>
<target>sensitive</target>
</trans-unit>
<trans-unit id="t_REuxn" resname="have downloaded magnet link">
<source>have downloaded magnet link</source>
<target>have downloaded magnet link</target>
</trans-unit>
<trans-unit id="GUgRc6p" resname="have disapproved torrent">
<source>have disapproved torrent</source>
<target>have disapproved torrent</target>
</trans-unit>
<trans-unit id="peGPPOh" resname="have approved torrent">
<source>have approved torrent</source>
<target>have approved torrent</target>
</trans-unit>
<trans-unit id="Ax4hwgW" resname="have added torrent">
<source>have added torrent</source>
<target>have added torrent</target>
</trans-unit>
<trans-unit id="kOS_6Om" resname="have deleted locales edition">
<source>have deleted locales edition</source>
<target>have deleted locales edition</target>
</trans-unit>
<trans-unit id="naGLbTA" resname="for torrent">
<source>for torrent</source>
<target>for torrent</target>
</trans-unit>
<trans-unit id="eD4JIr7" resname="have disapproved locales edition">
<source>have disapproved locales edition</source>
<target>have disapproved locales edition</target>
</trans-unit>
<trans-unit id="L8_5bk0" resname="have approved locales edition">
<source>have approved locales edition</source>
<target>have approved locales edition</target>
</trans-unit>
<trans-unit id="gbo5PRi" resname="have added locales edition">
<source>have added locales edition</source>
<target>have added locales edition</target>
</trans-unit>
<trans-unit id="aazoJuz" resname="have removed star from torrent">
<source>have removed star from torrent</source>
<target>have removed star from torrent</target>
</trans-unit>
<trans-unit id="cES0sXy" resname="have added star for torrent">
<source>have added star for torrent</source>
<target>have added star for torrent</target>
</trans-unit>
<trans-unit id="DJ7R0RO" resname="have deleted sensitive edition">
<source>have deleted sensitive edition</source>
<target>have deleted sensitive edition</target>
</trans-unit>
<trans-unit id="hDJxvYG" resname="have disapproved sensitive edition">
<source>have disapproved sensitive edition</source>
<target>have disapproved sensitive edition</target>
</trans-unit>
<trans-unit id="46W8iLj" resname="have approved sensitive edition">
<source>have approved sensitive edition</source>
<target>have approved sensitive edition</target>
</trans-unit>
<trans-unit id="oAC9LIa" resname="have added sensitive edition">
<source>have added sensitive edition</source>
<target>have added sensitive edition</target>
</trans-unit>
<trans-unit id="BQifRyb" resname="have disabled">
<source>have disabled</source>
<target>have disabled</target>
</trans-unit>
<trans-unit id="LdA3apc" resname="have disabled user">
<source>have disabled user</source>
<target>have disabled user</target>
</trans-unit>
<trans-unit id="ksNGaFf" resname="have enabled">
<source>have enabled</source>
<target>have enabled</target>
</trans-unit>
<trans-unit id="qA2qjC5" resname="have enabled user">
<source>have enabled user</source>
<target>have enabled user</target>
</trans-unit>
<trans-unit id="gXbWkeB" resname="have disapproved">
<source>have disapproved</source>
<target>have disapproved</target>
</trans-unit>
<trans-unit id="kFzblGl" resname="have disapproved user">
<source>have disapproved user</source>
<target>have disapproved user</target>
</trans-unit>
<trans-unit id="Gm8.zqs" resname="have approved">
<source>have approved</source>
<target>have approved</target>
</trans-unit>
<trans-unit id="9m0Bjnq" resname="have approved user">
<source>have approved user</source>
<target>have approved user</target>
</trans-unit>
<trans-unit id="6lqK6b6" resname="have joined">
<source>have joined</source>
<target>have joined</target>
</trans-unit>
<trans-unit id="yEC_h0o" resname="have removed moderator permissions from">
<source>have removed moderator permissions from</source>
<target>have removed moderator permissions from</target>
</trans-unit>
<trans-unit id="xU4ckhu" resname="have removed moderator permissions from user">
<source>have removed moderator permissions from user</source>
<target>have removed moderator permissions from user</target>
</trans-unit>
<trans-unit id="aiqFdWc" resname="have granted moderator permissions to">
<source>have granted moderator permissions to</source>
<target>have granted moderator permissions to</target>
</trans-unit>
<trans-unit id="IygeMVn" resname="have granted moderator permissions to user">
<source>have granted moderator permissions to user</source>
<target>have granted moderator permissions to user</target>
</trans-unit>
<trans-unit id="H06V5cY" resname="have removed star from">
<source>have removed star from</source>
<target>have removed star from</target>
</trans-unit>
<trans-unit id="7_4hNGn" resname="have removed star from user">
<source>have removed star from user</source>
<target>have removed star from user</target>
</trans-unit>
<trans-unit id="ojDrmfX" resname="have added star for">
<source>have added star for</source>
<target>have added star for</target>
</trans-unit>
<trans-unit id="iN2_Dtz" resname="have added star for user">
<source>have added star for user</source>
<target>have added star for user</target>
</trans-unit>
<trans-unit id="VKDowX6" resname="Error">
<source>Error</source>
<target>Error</target>
</trans-unit>
<trans-unit id="g0SUekA" resname="Oops!">
<source>Oops!</source>
<target>Oops!</target>
</trans-unit>
<trans-unit id="9010RFH" resname="Internal server error">
<source>Internal server error</source>
<target>Internal server error</target>
</trans-unit>
<trans-unit id="ts54jZe" resname="Report">
<source>Report</source>
<target>Report</target>
</trans-unit>
<trans-unit id="4_uqFt2" resname="Not found">
<source>Not found</source>
<target>Not found</target>
</trans-unit>
<trans-unit id="hestk9M" resname="Page not found!">
<source>Page not found!</source>
<target>Page not found!</target>
</trans-unit>
<trans-unit id="HfJe0N1" resname="BitTorrent protocol version 2">
<source>BitTorrent protocol version 2</source>
<target>BitTorrent protocol version 2</target>
</trans-unit>
<trans-unit id="U4t_NWU" resname="BitTorrent protocol version 1">
<source>BitTorrent protocol version 1</source>
<target>BitTorrent protocol version 1</target>
</trans-unit>
<trans-unit id="FEgqWb_" resname="year ago">
<source>year ago</source>
<target>year ago</target>
</trans-unit>
<trans-unit id="pfk9V_Q" resname="month ago">
<source>month ago</source>
<target>month ago</target>
</trans-unit>
<trans-unit id="5rpeYTJ" resname="day ago">
<source>day ago</source>
<target>day ago</target>
</trans-unit>
<trans-unit id="hM62aMH" resname="hour ago">
<source>hour ago</source>
<target>hour ago</target>
</trans-unit>
<trans-unit id="r2QgE4i" resname="minute ago">
<source>minute ago</source>
<target>minute ago</target>
</trans-unit>
<trans-unit id="RbqRzDS" resname="second ago">
<source>second ago</source>
<target>second ago</target>
</trans-unit>
<trans-unit id="TQof7nK" resname="years ago">
<source>years ago</source>
<target>years ago</target>
</trans-unit>
<trans-unit id="fEGjy26" resname="months ago">
<source>months ago</source>
<target>months ago</target>
</trans-unit>
<trans-unit id="N9rZHfe" resname="days ago">
<source>days ago</source>
<target>days ago</target>
</trans-unit>
<trans-unit id="JQ76A_T" resname="hours ago">
<source>hours ago</source>
<target>hours ago</target>
</trans-unit>
<trans-unit id="HhrazP8" resname="minutes ago">
<source>minutes ago</source>
<target>minutes ago</target>
</trans-unit>
<trans-unit id="IsfvBWU" resname="seconds ago">
<source>seconds ago</source>
<target>seconds ago</target>
</trans-unit>
<trans-unit id="KGg3UPj" resname=" years ago">
<source> years ago</source>
<target> years ago</target>
</trans-unit>
<trans-unit id="LJz20sI" resname=" months ago">
<source> months ago</source>
<target> months ago</target>
</trans-unit>
<trans-unit id="r7fyHp0" resname=" days ago">
<source> days ago</source>
<target> days ago</target>
</trans-unit>
<trans-unit id="mga12oW" resname=" hours ago">
<source> hours ago</source>
<target> hours ago</target>
</trans-unit>
<trans-unit id="BAlvYYB" resname=" minutes ago">
<source> minutes ago</source>
<target> minutes ago</target>
</trans-unit>
<trans-unit id="m4YrK9n" resname=" seconds ago">
<source> seconds ago</source>
<target> seconds ago</target>
</trans-unit>
<trans-unit id="6XiwDeR" resname="Search results">
<source>Search results</source>
<target>Search results</target>
</trans-unit>
<trans-unit id="HSCiIv7" resname="&lt;a href=&quot;%s&quot;&gt;Upload&lt;/a&gt; any torrent - download with Yggdrasil">
<source>&lt;a href="%s"&gt;Upload&lt;/a&gt; any torrent - download with Yggdrasil</source>
<target><![CDATA[<a href="%s">Upload</a> any torrent - download with Yggdrasil]]></target>
</trans-unit>
<trans-unit id="wpaDJlY" resname="Wanted">
<source>Wanted</source>
<target>Wanted</target>
</trans-unit>
<trans-unit id="SK4nQBL" resname="Seeders wanted for torrent">
<source>Seeders wanted for torrent</source>
<target>Seeders wanted for torrent</target>
</trans-unit>
<trans-unit id="rCCle.3" resname="Hide">
<source>Hide</source>
<target>Hide</target>
</trans-unit>
<trans-unit id="m11TRpU" resname="have disabled torrent">
<source>have disabled torrent</source>
<target>have disabled torrent</target>
</trans-unit>
<trans-unit id="qfr4ljO" resname="have enabled torrent">
<source>have enabled torrent</source>
<target>have enabled torrent</target>
</trans-unit>
<trans-unit id="F_s8AWj" resname="disabled">
<source>disabled</source>
<target>disabled</target>
</trans-unit>
<trans-unit id="3HqhHgY" resname="Poster file out of size limit">
<source>Poster file out of size limit</source>
<target>Poster file out of size limit</target>
</trans-unit>
<trans-unit id="xKW1PAN" resname="Image file not supported">
<source>Image file not supported</source>
<target>Image file not supported</target>
</trans-unit>
<trans-unit id=".r0pj7s" resname="Poster file required">
<source>Poster file required</source>
<target>Poster file required</target>
</trans-unit>
<trans-unit id="OpO8m_n" resname="Edit torrent poster">
<source>Edit torrent poster</source>
<target>Edit torrent poster</target>
</trans-unit>
<trans-unit id="hO4zays" resname="Edit poster for torrent">
<source>Edit poster for torrent</source>
<target>Edit poster for torrent</target>
</trans-unit>
<trans-unit id="G6dup_P" resname="Poster">
<source>Poster</source>
<target>Poster</target>
</trans-unit>
<trans-unit id="HHOEGv4" resname="Posters">
<source>Posters</source>
<target>Posters</target>
</trans-unit>
<trans-unit id="dv2khYF" resname="have deleted poster edition">
<source>have deleted poster edition</source>
<target>have deleted poster edition</target>
</trans-unit>
<trans-unit id="CaAjDOQ" resname="have disapproved poster edition">
<source>have disapproved poster edition</source>
<target>have disapproved poster edition</target>
</trans-unit>
<trans-unit id="u26pehE" resname="have approved poster edition">
<source>have approved poster edition</source>
<target>have approved poster edition</target>
</trans-unit>
<trans-unit id="_jJysd3" resname="have added poster edition">
<source>have added poster edition</source>
<target>have added poster edition</target>
</trans-unit>
<trans-unit id="WDtpCq_" resname="Torrent posters">
<source>Torrent posters</source>
<target>Torrent posters</target>
</trans-unit>
<trans-unit id="2UYGdCf" resname="Center">
<source>Center</source>
<target>Center</target>
</trans-unit>
<trans-unit id="1c389.9" resname="Top">
<source>Top</source>
<target>Top</target>
</trans-unit>
<trans-unit id="R5rSGsk" resname="Bottom">
<source>Bottom</source>
<target>Bottom</target>
</trans-unit>
<trans-unit id="uLHYlMa" resname="Categories">
<source>Categories</source>
<target>Categories</target>
</trans-unit>
<trans-unit id="R2SmYMn" resname="At least one category required">
<source>At least one category required</source>
<target>At least one category required</target>
</trans-unit>
<trans-unit id="QmNxufM" resname="Content category">
<source>Content category</source>
<target>Content category</target>
</trans-unit>
<trans-unit id="zRrq72V" resname="This torrent have selected categories">
<source>This torrent have selected categories</source>
<target>This torrent have selected categories</target>
</trans-unit>
<trans-unit id="o_ep6hc" resname="Edit categories">
<source>Edit categories</source>
<target>Edit categories</target>
</trans-unit>
<trans-unit id="2SVm4J_" resname="Edit categories for torrent">
<source>Edit categories for torrent</source>
<target>Edit categories for torrent</target>
</trans-unit>
<trans-unit id="yj3GEvR" resname="Locale">
<source>Locale</source>
<target>Locale</target>
</trans-unit>
<trans-unit id="KSwG8AR" resname="Category">
<source>Category</source>
<target>Category</target>
</trans-unit>
<trans-unit id="AlYAkS1" resname="Torrent categories">
<source>Torrent categories</source>
<target>Torrent categories</target>
</trans-unit>
<trans-unit id="Yfrv1ti" resname="have deleted categories edition">
<source>have deleted categories edition</source>
<target>have deleted categories edition</target>
</trans-unit>
<trans-unit id="LAnRgSg" resname="have disapproved categories edition">
<source>have disapproved categories edition</source>
<target>have disapproved categories edition</target>
</trans-unit>
<trans-unit id="uF9AEqp" resname="have approved categories edition">
<source>have approved categories edition</source>
<target>have approved categories edition</target>
</trans-unit>
<trans-unit id="oVNdrer" resname="have added categories edition">
<source>have added categories edition</source>
<target>have added categories edition</target>
</trans-unit>
<trans-unit id="imujLJv" resname="movie">
<source>movie</source>
<target>movie</target>
</trans-unit>
<trans-unit id="nNo46jo" resname="series">
<source>series</source>
<target>series</target>
</trans-unit>
<trans-unit id="pG5dK74" resname="tv">
<source>tv</source>
<target>tv</target>
</trans-unit>
<trans-unit id="7CPO8DE" resname="animation">
<source>animation</source>
<target>animation</target>
</trans-unit>
<trans-unit id="gPGJmE5" resname="music">
<source>music</source>
<target>music</target>
</trans-unit>
<trans-unit id="bKXKt35" resname="game">
<source>game</source>
<target>game</target>
</trans-unit>
<trans-unit id="PYW9Udx" resname="audiobook">
<source>audiobook</source>
<target>audiobook</target>
</trans-unit>
<trans-unit id="9ippfeB" resname="podcast">
<source>podcast</source>
<target>podcast</target>
</trans-unit>
<trans-unit id="knGf4M_" resname="book">
<source>book</source>
<target>book</target>
</trans-unit>
<trans-unit id="DrPja.s" resname="archive">
<source>archive</source>
<target>archive</target>
</trans-unit>
<trans-unit id="LOonTQv" resname="picture">
<source>picture</source>
<target>picture</target>
</trans-unit>
<trans-unit id="NTkPVFP" resname="software">
<source>software</source>
<target>software</target>
</trans-unit>
<trans-unit id="2SmKENG" resname="other">
<source>other</source>
<target>other</target>
</trans-unit>
<trans-unit id="v7fLnQX" resname="Hide filter">
<source>Hide filter</source>
<target>Hide filter</target>
</trans-unit>
<trans-unit id="45aF7iu" resname="Show filter">
<source>Show filter</source>
<target>Show filter</target>
</trans-unit>
<trans-unit id="xj62cgx" resname="Private">
<source>Private</source>
<target>Private</target>
</trans-unit>
</body>
</file>
</xliff>

View file

@ -169,10 +169,6 @@
<source>Waiting for approve</source>
<target>Waiting for approve</target>
</trans-unit>
<trans-unit id="uP0WnsM" resname="Content visible for non sensitive users only">
<source>Content visible for non sensitive users only</source>
<target>Content visible for non sensitive users only</target>
</trans-unit>
<trans-unit id="GvhRkHM" resname="Size">
<source>Size</source>
<target>Size</target>
@ -397,10 +393,6 @@
<source>Join translation</source>
<target>Join translation</target>
</trans-unit>
<trans-unit id="R70pB1_" resname="Content">
<source>Content</source>
<target>Content</target>
</trans-unit>
<trans-unit id="ONoVBcq" resname="Activity">
<source>Activity</source>
<target>Activity</target>
@ -729,6 +721,198 @@
<source>Seeders wanted for torrent</source>
<target>Seeders wanted for torrent</target>
</trans-unit>
<trans-unit id="rCCle.3" resname="Hide">
<source>Hide</source>
<target>Hide</target>
</trans-unit>
<trans-unit id="m11TRpU" resname="have disabled torrent">
<source>have disabled torrent</source>
<target>have disabled torrent</target>
</trans-unit>
<trans-unit id="qfr4ljO" resname="have enabled torrent">
<source>have enabled torrent</source>
<target>have enabled torrent</target>
</trans-unit>
<trans-unit id="F_s8AWj" resname="disabled">
<source>disabled</source>
<target>disabled</target>
</trans-unit>
<trans-unit id="3HqhHgY" resname="Poster file out of size limit">
<source>Poster file out of size limit</source>
<target>Poster file out of size limit</target>
</trans-unit>
<trans-unit id="xKW1PAN" resname="Image file not supported">
<source>Image file not supported</source>
<target>Image file not supported</target>
</trans-unit>
<trans-unit id=".r0pj7s" resname="Poster file required">
<source>Poster file required</source>
<target>Poster file required</target>
</trans-unit>
<trans-unit id="OpO8m_n" resname="Edit torrent poster">
<source>Edit torrent poster</source>
<target>Edit torrent poster</target>
</trans-unit>
<trans-unit id="hO4zays" resname="Edit poster for torrent">
<source>Edit poster for torrent</source>
<target>Edit poster for torrent</target>
</trans-unit>
<trans-unit id="G6dup_P" resname="Poster">
<source>Poster</source>
<target>Poster</target>
</trans-unit>
<trans-unit id="HHOEGv4" resname="Posters">
<source>Posters</source>
<target>Posters</target>
</trans-unit>
<trans-unit id="dv2khYF" resname="have deleted poster edition">
<source>have deleted poster edition</source>
<target>have deleted poster edition</target>
</trans-unit>
<trans-unit id="CaAjDOQ" resname="have disapproved poster edition">
<source>have disapproved poster edition</source>
<target>have disapproved poster edition</target>
</trans-unit>
<trans-unit id="u26pehE" resname="have approved poster edition">
<source>have approved poster edition</source>
<target>have approved poster edition</target>
</trans-unit>
<trans-unit id="_jJysd3" resname="have added poster edition">
<source>have added poster edition</source>
<target>have added poster edition</target>
</trans-unit>
<trans-unit id="WDtpCq_" resname="Torrent posters">
<source>Torrent posters</source>
<target>Torrent posters</target>
</trans-unit>
<trans-unit id="2UYGdCf" resname="Center">
<source>Center</source>
<target>Center</target>
</trans-unit>
<trans-unit id="1c389.9" resname="Top">
<source>Top</source>
<target>Top</target>
</trans-unit>
<trans-unit id="R5rSGsk" resname="Bottom">
<source>Bottom</source>
<target>Bottom</target>
</trans-unit>
<trans-unit id="uLHYlMa" resname="Categories">
<source>Categories</source>
<target>Categories</target>
</trans-unit>
<trans-unit id="R2SmYMn" resname="At least one category required">
<source>At least one category required</source>
<target>At least one category required</target>
</trans-unit>
<trans-unit id="QmNxufM" resname="Content category">
<source>Content category</source>
<target>Content category</target>
</trans-unit>
<trans-unit id="zRrq72V" resname="This torrent have selected categories">
<source>This torrent have selected categories</source>
<target>This torrent have selected categories</target>
</trans-unit>
<trans-unit id="o_ep6hc" resname="Edit categories">
<source>Edit categories</source>
<target>Edit categories</target>
</trans-unit>
<trans-unit id="2SVm4J_" resname="Edit categories for torrent">
<source>Edit categories for torrent</source>
<target>Edit categories for torrent</target>
</trans-unit>
<trans-unit id="yj3GEvR" resname="Locale">
<source>Locale</source>
<target>Locale</target>
</trans-unit>
<trans-unit id="KSwG8AR" resname="Category">
<source>Category</source>
<target>Category</target>
</trans-unit>
<trans-unit id="AlYAkS1" resname="Torrent categories">
<source>Torrent categories</source>
<target>Torrent categories</target>
</trans-unit>
<trans-unit id="Yfrv1ti" resname="have deleted categories edition">
<source>have deleted categories edition</source>
<target>have deleted categories edition</target>
</trans-unit>
<trans-unit id="LAnRgSg" resname="have disapproved categories edition">
<source>have disapproved categories edition</source>
<target>have disapproved categories edition</target>
</trans-unit>
<trans-unit id="uF9AEqp" resname="have approved categories edition">
<source>have approved categories edition</source>
<target>have approved categories edition</target>
</trans-unit>
<trans-unit id="oVNdrer" resname="have added categories edition">
<source>have added categories edition</source>
<target>have added categories edition</target>
</trans-unit>
<trans-unit id="imujLJv" resname="movie">
<source>movie</source>
<target>movie</target>
</trans-unit>
<trans-unit id="nNo46jo" resname="series">
<source>series</source>
<target>series</target>
</trans-unit>
<trans-unit id="pG5dK74" resname="tv">
<source>tv</source>
<target>tv</target>
</trans-unit>
<trans-unit id="7CPO8DE" resname="animation">
<source>animation</source>
<target>animation</target>
</trans-unit>
<trans-unit id="gPGJmE5" resname="music">
<source>music</source>
<target>music</target>
</trans-unit>
<trans-unit id="bKXKt35" resname="game">
<source>game</source>
<target>game</target>
</trans-unit>
<trans-unit id="PYW9Udx" resname="audiobook">
<source>audiobook</source>
<target>audiobook</target>
</trans-unit>
<trans-unit id="9ippfeB" resname="podcast">
<source>podcast</source>
<target>podcast</target>
</trans-unit>
<trans-unit id="knGf4M_" resname="book">
<source>book</source>
<target>book</target>
</trans-unit>
<trans-unit id="DrPja.s" resname="archive">
<source>archive</source>
<target>archive</target>
</trans-unit>
<trans-unit id="LOonTQv" resname="picture">
<source>picture</source>
<target>picture</target>
</trans-unit>
<trans-unit id="NTkPVFP" resname="software">
<source>software</source>
<target>software</target>
</trans-unit>
<trans-unit id="2SmKENG" resname="other">
<source>other</source>
<target>other</target>
</trans-unit>
<trans-unit id="v7fLnQX" resname="Hide filter">
<source>Hide filter</source>
<target>Hide filter</target>
</trans-unit>
<trans-unit id="45aF7iu" resname="Show filter">
<source>Show filter</source>
<target>Show filter</target>
</trans-unit>
<trans-unit id="xj62cgx" resname="Private">
<source>Private</source>
<target>Private</target>
</trans-unit>
</body>
</file>
</xliff>

View file

@ -169,10 +169,6 @@
<source>Waiting for approve</source>
<target>Waiting for approve</target>
</trans-unit>
<trans-unit id="uP0WnsM" resname="Content visible for non sensitive users only">
<source>Content visible for non sensitive users only</source>
<target>Content visible for non sensitive users only</target>
</trans-unit>
<trans-unit id="GvhRkHM" resname="Size">
<source>Size</source>
<target>Size</target>
@ -397,10 +393,6 @@
<source>Join translation</source>
<target>Join translation</target>
</trans-unit>
<trans-unit id="R70pB1_" resname="Content">
<source>Content</source>
<target>Content</target>
</trans-unit>
<trans-unit id="ONoVBcq" resname="Activity">
<source>Activity</source>
<target>Activity</target>
@ -729,6 +721,198 @@
<source>Seeders wanted for torrent</source>
<target>Seeders wanted for torrent</target>
</trans-unit>
<trans-unit id="rCCle.3" resname="Hide">
<source>Hide</source>
<target>Hide</target>
</trans-unit>
<trans-unit id="m11TRpU" resname="have disabled torrent">
<source>have disabled torrent</source>
<target>have disabled torrent</target>
</trans-unit>
<trans-unit id="qfr4ljO" resname="have enabled torrent">
<source>have enabled torrent</source>
<target>have enabled torrent</target>
</trans-unit>
<trans-unit id="F_s8AWj" resname="disabled">
<source>disabled</source>
<target>disabled</target>
</trans-unit>
<trans-unit id="3HqhHgY" resname="Poster file out of size limit">
<source>Poster file out of size limit</source>
<target>Poster file out of size limit</target>
</trans-unit>
<trans-unit id="xKW1PAN" resname="Image file not supported">
<source>Image file not supported</source>
<target>Image file not supported</target>
</trans-unit>
<trans-unit id=".r0pj7s" resname="Poster file required">
<source>Poster file required</source>
<target>Poster file required</target>
</trans-unit>
<trans-unit id="OpO8m_n" resname="Edit torrent poster">
<source>Edit torrent poster</source>
<target>Edit torrent poster</target>
</trans-unit>
<trans-unit id="hO4zays" resname="Edit poster for torrent">
<source>Edit poster for torrent</source>
<target>Edit poster for torrent</target>
</trans-unit>
<trans-unit id="G6dup_P" resname="Poster">
<source>Poster</source>
<target>Poster</target>
</trans-unit>
<trans-unit id="HHOEGv4" resname="Posters">
<source>Posters</source>
<target>Posters</target>
</trans-unit>
<trans-unit id="dv2khYF" resname="have deleted poster edition">
<source>have deleted poster edition</source>
<target>have deleted poster edition</target>
</trans-unit>
<trans-unit id="CaAjDOQ" resname="have disapproved poster edition">
<source>have disapproved poster edition</source>
<target>have disapproved poster edition</target>
</trans-unit>
<trans-unit id="u26pehE" resname="have approved poster edition">
<source>have approved poster edition</source>
<target>have approved poster edition</target>
</trans-unit>
<trans-unit id="_jJysd3" resname="have added poster edition">
<source>have added poster edition</source>
<target>have added poster edition</target>
</trans-unit>
<trans-unit id="WDtpCq_" resname="Torrent posters">
<source>Torrent posters</source>
<target>Torrent posters</target>
</trans-unit>
<trans-unit id="2UYGdCf" resname="Center">
<source>Center</source>
<target>Center</target>
</trans-unit>
<trans-unit id="1c389.9" resname="Top">
<source>Top</source>
<target>Top</target>
</trans-unit>
<trans-unit id="R5rSGsk" resname="Bottom">
<source>Bottom</source>
<target>Bottom</target>
</trans-unit>
<trans-unit id="uLHYlMa" resname="Categories">
<source>Categories</source>
<target>Categories</target>
</trans-unit>
<trans-unit id="R2SmYMn" resname="At least one category required">
<source>At least one category required</source>
<target>At least one category required</target>
</trans-unit>
<trans-unit id="QmNxufM" resname="Content category">
<source>Content category</source>
<target>Content category</target>
</trans-unit>
<trans-unit id="zRrq72V" resname="This torrent have selected categories">
<source>This torrent have selected categories</source>
<target>This torrent have selected categories</target>
</trans-unit>
<trans-unit id="o_ep6hc" resname="Edit categories">
<source>Edit categories</source>
<target>Edit categories</target>
</trans-unit>
<trans-unit id="2SVm4J_" resname="Edit categories for torrent">
<source>Edit categories for torrent</source>
<target>Edit categories for torrent</target>
</trans-unit>
<trans-unit id="yj3GEvR" resname="Locale">
<source>Locale</source>
<target>Locale</target>
</trans-unit>
<trans-unit id="KSwG8AR" resname="Category">
<source>Category</source>
<target>Category</target>
</trans-unit>
<trans-unit id="AlYAkS1" resname="Torrent categories">
<source>Torrent categories</source>
<target>Torrent categories</target>
</trans-unit>
<trans-unit id="Yfrv1ti" resname="have deleted categories edition">
<source>have deleted categories edition</source>
<target>have deleted categories edition</target>
</trans-unit>
<trans-unit id="LAnRgSg" resname="have disapproved categories edition">
<source>have disapproved categories edition</source>
<target>have disapproved categories edition</target>
</trans-unit>
<trans-unit id="uF9AEqp" resname="have approved categories edition">
<source>have approved categories edition</source>
<target>have approved categories edition</target>
</trans-unit>
<trans-unit id="oVNdrer" resname="have added categories edition">
<source>have added categories edition</source>
<target>have added categories edition</target>
</trans-unit>
<trans-unit id="imujLJv" resname="movie">
<source>movie</source>
<target>movie</target>
</trans-unit>
<trans-unit id="nNo46jo" resname="series">
<source>series</source>
<target>series</target>
</trans-unit>
<trans-unit id="pG5dK74" resname="tv">
<source>tv</source>
<target>tv</target>
</trans-unit>
<trans-unit id="7CPO8DE" resname="animation">
<source>animation</source>
<target>animation</target>
</trans-unit>
<trans-unit id="gPGJmE5" resname="music">
<source>music</source>
<target>music</target>
</trans-unit>
<trans-unit id="bKXKt35" resname="game">
<source>game</source>
<target>game</target>
</trans-unit>
<trans-unit id="PYW9Udx" resname="audiobook">
<source>audiobook</source>
<target>audiobook</target>
</trans-unit>
<trans-unit id="9ippfeB" resname="podcast">
<source>podcast</source>
<target>podcast</target>
</trans-unit>
<trans-unit id="knGf4M_" resname="book">
<source>book</source>
<target>book</target>
</trans-unit>
<trans-unit id="DrPja.s" resname="archive">
<source>archive</source>
<target>archive</target>
</trans-unit>
<trans-unit id="LOonTQv" resname="picture">
<source>picture</source>
<target>picture</target>
</trans-unit>
<trans-unit id="NTkPVFP" resname="software">
<source>software</source>
<target>software</target>
</trans-unit>
<trans-unit id="2SmKENG" resname="other">
<source>other</source>
<target>other</target>
</trans-unit>
<trans-unit id="v7fLnQX" resname="Hide filter">
<source>Hide filter</source>
<target>Hide filter</target>
</trans-unit>
<trans-unit id="45aF7iu" resname="Show filter">
<source>Show filter</source>
<target>Show filter</target>
</trans-unit>
<trans-unit id="xj62cgx" resname="Private">
<source>Private</source>
<target>Private</target>
</trans-unit>
</body>
</file>
</xliff>

Some files were not shown because too many files have changed in this diff Show more