Removed duplicated templates files

This commit is contained in:
Nicolas Lœuillet
2016-09-30 09:38:08 +02:00
parent fb479be3a0
commit 2ff9991a1d
26 changed files with 18 additions and 494 deletions

View File

@ -21,7 +21,7 @@ class DeveloperController extends Controller
{
$clients = $this->getDoctrine()->getRepository('WallabagApiBundle:Client')->findAll();
return $this->render('WallabagCoreBundle:Developer:index.html.twig', [
return $this->render('@WallabagCore/themes/common/Developer/index.html.twig', [
'clients' => $clients,
]);
}
@ -52,14 +52,14 @@ class DeveloperController extends Controller
$this->get('translator')->trans('flashes.developer.notice.client_created', ['%name%' => $client->getName()])
);
return $this->render('WallabagCoreBundle:Developer:client_parameters.html.twig', [
return $this->render('@WallabagCore/themes/common/Developer/client_parameters.html.twig', [
'client_id' => $client->getPublicId(),
'client_secret' => $client->getSecret(),
'client_name' => $client->getName(),
]);
}
return $this->render('WallabagCoreBundle:Developer:client.html.twig', [
return $this->render('@WallabagCore/themes/common/Developer/client.html.twig', [
'form' => $clientForm->createView(),
]);
}
@ -96,6 +96,6 @@ class DeveloperController extends Controller
*/
public function howtoFirstAppAction()
{
return $this->render('WallabagCoreBundle:Developer:howto_app.html.twig');
return $this->render('@WallabagCore/themes/common/Developer/howto_app.html.twig');
}
}

View File

@ -531,7 +531,7 @@ class EntryController extends Controller
}
return $this->render(
'@WallabagCore/themes/share.html.twig',
'@WallabagCore/themes/common/Entry/share.html.twig',
['entry' => $entry]
);
}

View File

@ -87,7 +87,7 @@ class RssController extends Controller
$perPage = $user->getConfig()->getRssLimit() ?: $this->getParameter('wallabag_core.rss_limit');
$entries->setMaxPerPage($perPage);
return $this->render('WallabagCoreBundle:Entry:entries.xml.twig', [
return $this->render('@WallabagCore/themes/common/Entry/entries.xml.twig', [
'type' => $type,
'entries' => $entries,
]);

View File

@ -15,7 +15,7 @@ class StaticController extends Controller
$addonsUrl = $this->container->getParameter('addons_url');
return $this->render(
'WallabagCoreBundle:Static:howto.html.twig',
'@WallabagCore/themes/common/Static/howto.html.twig',
['addonsUrl' => $addonsUrl]
);
}
@ -26,7 +26,7 @@ class StaticController extends Controller
public function aboutAction()
{
return $this->render(
'WallabagCoreBundle:Static:about.html.twig',
'@WallabagCore/themes/common/Static/about.html.twig',
[
'version' => $this->getParameter('wallabag_core.version'),
'paypal_url' => $this->getParameter('wallabag_core.paypal_url'),
@ -40,7 +40,7 @@ class StaticController extends Controller
public function quickstartAction()
{
return $this->render(
'WallabagCoreBundle:Static:quickstart.html.twig',
'@WallabagCore/themes/common/Static/quickstart.html.twig',
[]
);
}