Migrate first level template references to new notation

This commit is contained in:
Yassine Guedidi
2022-04-29 00:47:22 +02:00
parent 10f1bc5506
commit 9549a90e76
32 changed files with 50 additions and 50 deletions

View File

@ -37,6 +37,6 @@ class ChromeController extends BrowserController
*/
protected function getImportTemplate()
{
return 'WallabagImportBundle:Chrome:index.html.twig';
return '@WallabagImport/Chrome/index.html.twig';
}
}

View File

@ -70,7 +70,7 @@ class DeliciousController extends Controller
);
}
return $this->render('WallabagImportBundle:Delicious:index.html.twig', [
return $this->render('@WallabagImport/Delicious/index.html.twig', [
'form' => $form->createView(),
'import' => $delicious,
]);

View File

@ -37,6 +37,6 @@ class ElcuratorController extends WallabagController
*/
protected function getImportTemplate()
{
return 'WallabagImportBundle:Elcurator:index.html.twig';
return '@WallabagImport/Elcurator/index.html.twig';
}
}

View File

@ -37,6 +37,6 @@ class FirefoxController extends BrowserController
*/
protected function getImportTemplate()
{
return 'WallabagImportBundle:Firefox:index.html.twig';
return '@WallabagImport/Firefox/index.html.twig';
}
}

View File

@ -14,7 +14,7 @@ class ImportController extends Controller
*/
public function importAction()
{
return $this->render('WallabagImportBundle:Import:index.html.twig', [
return $this->render('@WallabagImport/Import/index.html.twig', [
'imports' => $this->get(ImportChain::class)->getAll(),
]);
}
@ -31,7 +31,7 @@ class ImportController extends Controller
$rabbitNotInstalled = false;
if (!$this->get('security.authorization_checker')->isGranted('ROLE_SUPER_ADMIN')) {
return $this->render('WallabagImportBundle:Import:check_queue.html.twig');
return $this->render('@WallabagImport/Import/check_queue.html.twig');
}
if ($this->get('craue_config')->get('import_with_rabbitmq')) {
@ -71,7 +71,7 @@ class ImportController extends Controller
}
}
return $this->render('WallabagImportBundle:Import:check_queue.html.twig', [
return $this->render('@WallabagImport/Import/check_queue.html.twig', [
'nbRedisMessages' => $nbRedisMessages,
'nbRabbitMessages' => $nbRabbitMessages,
'redisNotInstalled' => $redisNotInstalled,

View File

@ -70,7 +70,7 @@ class InstapaperController extends Controller
);
}
return $this->render('WallabagImportBundle:Instapaper:index.html.twig', [
return $this->render('@WallabagImport/Instapaper/index.html.twig', [
'form' => $form->createView(),
'import' => $instapaper,
]);

View File

@ -70,7 +70,7 @@ class PinboardController extends Controller
);
}
return $this->render('WallabagImportBundle:Pinboard:index.html.twig', [
return $this->render('@WallabagImport/Pinboard/index.html.twig', [
'form' => $form->createView(),
'import' => $pinboard,
]);

View File

@ -24,7 +24,7 @@ class PocketController extends Controller
])
->getForm();
return $this->render('WallabagImportBundle:Pocket:index.html.twig', [
return $this->render('@WallabagImport/Pocket/index.html.twig', [
'import' => $this->getPocketImportService(),
'has_consumer_key' => '' === trim($this->getUser()->getConfig()->getPocketConsumerKey()) ? false : true,
'form' => $form->createView(),

View File

@ -70,7 +70,7 @@ class ReadabilityController extends Controller
);
}
return $this->render('WallabagImportBundle:Readability:index.html.twig', [
return $this->render('@WallabagImport/Readability/index.html.twig', [
'form' => $form->createView(),
'import' => $readability,
]);

View File

@ -37,6 +37,6 @@ class WallabagV1Controller extends WallabagController
*/
protected function getImportTemplate()
{
return 'WallabagImportBundle:WallabagV1:index.html.twig';
return '@WallabagImport/WallabagV1/index.html.twig';
}
}

View File

@ -37,6 +37,6 @@ class WallabagV2Controller extends WallabagController
*/
protected function getImportTemplate()
{
return 'WallabagImportBundle:WallabagV2:index.html.twig';
return '@WallabagImport/WallabagV2/index.html.twig';
}
}

View File

@ -6,7 +6,7 @@
<div class="row">
<div class="col s12">
<div class="card-panel settings">
{% include 'WallabagImportBundle:Import:_information.html.twig' %}
{% include '@WallabagImport/Import/_information.html.twig' %}
<div class="row">
<blockquote>{{ import.description|trans|raw }}</blockquote>

View File

@ -6,7 +6,7 @@
<div class="row">
<div class="col s12">
<div class="card-panel settings">
{% include 'WallabagImportBundle:Import:_information.html.twig' %}
{% include '@WallabagImport/Import/_information.html.twig' %}
<div class="row">
<blockquote>{{ import.description|trans }}</blockquote>

View File

@ -1,3 +1,3 @@
{% extends "WallabagImportBundle:WallabagV1:index.html.twig" %}
{% extends "@WallabagImport/WallabagV1/index.html.twig" %}
{% block title %}{{ 'import.elcurator.page_title'|trans }}{% endblock %}

View File

@ -6,7 +6,7 @@
<div class="row">
<div class="col s12">
<div class="card-panel settings">
{% include 'WallabagImportBundle:Import:_information.html.twig' %}
{% include '@WallabagImport/Import/_information.html.twig' %}
<div class="row">
<blockquote>{{ import.description|trans|raw }}</blockquote>

View File

@ -12,7 +12,7 @@
<div class="row">
<div class="col s12">
<div class="card-panel settings">
{% include 'WallabagImportBundle:Import:_information.html.twig' %}
{% include '@WallabagImport/Import/_information.html.twig' %}
{{ 'import.page_description'|trans }}
<ul>

View File

@ -6,7 +6,7 @@
<div class="row">
<div class="col s12">
<div class="card-panel settings">
{% include 'WallabagImportBundle:Import:_information.html.twig' %}
{% include '@WallabagImport/Import/_information.html.twig' %}
<div class="row">
<blockquote>{{ import.description|trans }}</blockquote>

View File

@ -6,7 +6,7 @@
<div class="row">
<div class="col s12">
<div class="card-panel settings">
{% include 'WallabagImportBundle:Import:_information.html.twig' %}
{% include '@WallabagImport/Import/_information.html.twig' %}
<div class="row">
<blockquote>{{ import.description|trans }}</blockquote>

View File

@ -6,7 +6,7 @@
<div class="row">
<div class="col s12">
<div class="card-panel settings">
{% include 'WallabagImportBundle:Import:_information.html.twig' %}
{% include '@WallabagImport/Import/_information.html.twig' %}
{% if not has_consumer_key %}
<div class="card-panel red white-text">

View File

@ -6,7 +6,7 @@
<div class="row">
<div class="col s12">
<div class="card-panel settings">
{% include 'WallabagImportBundle:Import:_information.html.twig' %}
{% include '@WallabagImport/Import/_information.html.twig' %}
<div class="row">
<blockquote>{{ import.description|trans }}</blockquote>

View File

@ -6,7 +6,7 @@
<div class="row">
<div class="col s12">
<div class="card-panel settings">
{% include 'WallabagImportBundle:Import:_information.html.twig' %}
{% include '@WallabagImport/Import/_information.html.twig' %}
<div class="row">
<blockquote>{{ import.description|trans }}</blockquote>

View File

@ -1,3 +1,3 @@
{% extends "WallabagImportBundle:WallabagV1:index.html.twig" %}
{% extends "@WallabagImport/WallabagV1/index.html.twig" %}
{% block title %}{{ 'import.wallabag_v2.page_title'|trans }}{% endblock %}