diff --git a/public/asset/default/css/common.css b/public/asset/default/css/common.css index ab8b9d6..71856f1 100644 --- a/public/asset/default/css/common.css +++ b/public/asset/default/css/common.css @@ -59,6 +59,10 @@ textarea { opacity: .96; } +input[type="file"] { + padding: 4px 8px; +} + /* main input, main button, @@ -121,4 +125,4 @@ header a.logo { header a.logo > span { color: #96d9a1; -} +} \ No newline at end of file diff --git a/src/Controller/TorrentController.php b/src/Controller/TorrentController.php index 848b595..8373b16 100644 --- a/src/Controller/TorrentController.php +++ b/src/Controller/TorrentController.php @@ -96,6 +96,7 @@ class TorrentController extends AbstractController 'torrent' => [ 'id' => $torrent->getId(), + 'md5file' => $torrent->getMd5File(), 'added' => $torrent->getAdded(), /* 'user' => @@ -227,29 +228,22 @@ class TorrentController extends AbstractController [ 'locales' => [ - 'error' => [], + 'error' => [], 'attribute' => [ - 'value' => $request->get('locales') ? $request->get('locales') : [$request->get('_locale')], - 'placeholder' => $translator->trans('Content language') + 'value' => $request->get('locales') ? $request->get('locales') : [$request->get('_locale')], ] ], 'torrent' => [ - 'error' => [], - 'attribute' => - [ - 'value' => null, // is local file, there is no values passed - 'placeholder' => $translator->trans('Select torrent file') - ] + 'error' => [], ], 'sensitive' => [ 'error' => [], 'attribute' => [ - 'value' => $request->get('sensitive'), - 'placeholder' => $translator->trans('Apply sensitive filters to publication'), + 'value' => $request->get('sensitive'), ] ] ]; diff --git a/src/Controller/UserController.php b/src/Controller/UserController.php index a4a81ad..7e56711 100644 --- a/src/Controller/UserController.php +++ b/src/Controller/UserController.php @@ -67,7 +67,7 @@ class UserController extends AbstractController return $this->render( 'default/user/dashboard.html.twig', [ - 'activities' => $activityService->findLastActivities( + 'activities' => $activityService->findLastActivities( // @TODO locale/sensitive filters $user->getEvents(), $this->getParameter('app.pagination'), ($page - 1) * $this->getParameter('app.pagination') diff --git a/templates/default/torrent/info.html.twig b/templates/default/torrent/info.html.twig index 1a25401..8b213a5 100644 --- a/templates/default/torrent/info.html.twig +++ b/templates/default/torrent/info.html.twig @@ -20,12 +20,13 @@ {% endmacro %} {% from _self import recursive_file_tree %} {% extends 'default/layout.html.twig' %} -{% block title %}{{ 'Torrent' | trans }} #{{ torrent.id }}{% if pagination.page > 1 %} - {{ 'Page' | trans }} {{ pagination.page }}{% endif %} - {{ name }}{% endblock %} +{% block title %}{{ file.name }} - {{ 'Torrent' | trans }} #{{ torrent.id }}{% if pagination.page > 1 %} - {{ 'Page' | trans }} {{ pagination.page }}{% endif %} - {{ name }}{% endblock %} {% block main_content %}