[TEMPLATES] Minor refactoring, extending left was weird

This commit is contained in:
Diogo Peralta Cordeiro 2021-04-29 20:51:13 +01:00 committed by Hugo Sales
parent e9b2b18093
commit 110c2572a4
Signed by untrusted user: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0
19 changed files with 45 additions and 43 deletions

View File

@ -1,4 +1,4 @@
{% extends 'left/left.html.twig' %} {% extends 'stdgrid.html.twig' %}
{% block meta %} {% block meta %}
{{ parent() }} {{ parent() }}

View File

@ -1,4 +1,4 @@
{% extends 'left/left.html.twig' %} {% extends 'stdgrid.html.twig' %}
{% block meta %} {% block meta %}
{{ parent() }} {{ parent() }}

View File

@ -1,5 +1,4 @@
{% extends 'stdgrid.html.twig' %}
{% extends 'left/left.html.twig' %}
{% block meta %} {% block meta %}
{{ parent() }} {{ parent() }}

View File

@ -1,4 +1,4 @@
{% extends 'left/left.html.twig' %} {% extends 'stdgrid.html.twig' %}
{% block meta %} {% block meta %}
{{ parent() }} {{ parent() }}

View File

@ -1,4 +1,4 @@
{% extends 'left/left.html.twig' %} {% extends 'stdgrid.html.twig' %}
{% block meta %} {% block meta %}
{{ parent() }} {{ parent() }}

View File

@ -1,4 +1,4 @@
{% extends 'left/left.html.twig' %} {% extends 'stdgrid.html.twig' %}
{% block stylesheets %} {% block stylesheets %}
{{ parent() }} {{ parent() }}

View File

@ -31,28 +31,16 @@
{% block header %} {% block header %}
<div id='header'> <div id='header'>
<div id='top'> <div id='top'>
{% block left %} {% block leftpanel %}
{% endblock left %} {% endblock leftpanel %}
<nav id='instance'> <nav id='instance'>
<a href="{{ path('main_public') }}"> <a href="{{ path('main_public') }}">
{{ icon('logo', 'icon icon-logo') | raw }} {{ icon('logo', 'icon icon-logo') | raw }}
<b> {{ config('site', 'name') }} </b> <b> {{ config('site', 'name') }} </b>
</a> </a>
</nav> </nav>
<div id="right-panel"> {% block rightpanel %}
<input type="checkbox" id="toggle-right" class="larger"> {% endblock rightpanel %}
<div class="arrow right">
<label for="toggle-right" id='right-panel'></label>
</div>
<div class='rss'>
<div> </div>
</div>
<div>
{% block right %}
{% endblock right %}
</div>
</div>
</div> </div>
</div> </div>
{% endblock header%} {% endblock header%}

View File

@ -1,4 +1,4 @@
{% extends 'left/left.html.twig' %} {% extends 'stdgrid.html.twig' %}
{% block meta %} {% block meta %}
{{ parent() }} {{ parent() }}

View File

@ -1,4 +1,4 @@
{% extends 'left/left.html.twig' %} {% extends 'stdgrid.html.twig' %}
{% block meta %} {% block meta %}
{{ parent() }} {{ parent() }}

View File

@ -1,4 +1,4 @@
{% extends 'left/left.html.twig' %} {% extends 'stdgrid.html.twig' %}
{% block meta %} {% block meta %}
{{ parent() }} {{ parent() }}

View File

@ -1,4 +1,4 @@
{% extends 'left/left.html.twig' %} {% extends 'stdgrid.html.twig' %}
{% block meta %} {% block meta %}
{{ parent() }} {{ parent() }}

View File

@ -1,4 +1,4 @@
{% extends 'left/left.html.twig' %} {% extends 'stdgrid.html.twig' %}
{% block meta %} {% block meta %}
{{ parent() }} {{ parent() }}

View File

@ -1,4 +1,4 @@
{% extends 'left/left.html.twig' %} {% extends 'stdgrid.html.twig' %}
{% block stylesheets %} {% block stylesheets %}
{{ parent() }} {{ parent() }}

View File

@ -1,4 +1,4 @@
{% extends 'left/left.html.twig' %} {% extends 'stdgrid.html.twig' %}
{% block stylesheets %} {% block stylesheets %}
{{ parent() }} {{ parent() }}

View File

@ -1,4 +1,4 @@
{% extends 'left/left.html.twig' %} {% extends 'stdgrid.html.twig' %}
{% block meta %} {% block meta %}
{{ parent() }} {{ parent() }}

View File

@ -1,13 +1,3 @@
{% extends '/base.html.twig' %}
{% block stylesheets %}
{{ parent() }}
<link rel='stylesheet' type='text/css' href="{{ asset('assets/css/left/left.css') }}" media="screen and (min-width: 1300px)">
<link rel='stylesheet' type='text/css' href="{{ asset('assets/css/left/left_mid.css') }}" media="screen and (max-width: 1300px)">
<link rel='stylesheet' type='text/css' href="{{ asset('assets/css/left/left_small.css') }}" media="screen and (max-width: 750px)">
{% endblock %}
{% block left %}
{% if app.user %} {% if app.user %}
<div id='left-panel'> <div id='left-panel'>
<input type="checkbox" id="toggle" class="larger" autofocus> <input type="checkbox" id="toggle" class="larger" autofocus>
@ -80,5 +70,3 @@
</div> </div>
</div> </div>
{% endif %} {% endif %}
{% endblock %}

View File

@ -0,0 +1,3 @@
<link rel='stylesheet' type='text/css' href="{{ asset('assets/css/left/left.css') }}" media="screen and (min-width: 1300px)">
<link rel='stylesheet' type='text/css' href="{{ asset('assets/css/left/left_mid.css') }}" media="screen and (max-width: 1300px)">
<link rel='stylesheet' type='text/css' href="{{ asset('assets/css/left/left_small.css') }}" media="screen and (max-width: 750px)">

View File

@ -0,0 +1,13 @@
<div id="right-panel">
<input type="checkbox" id="toggle-right" class="larger">
<div class="arrow right">
<label for="toggle-right" id='right-panel'></label>
</div>
<div class='rss'>
<div> </div>
</div>
<div>
{% block right %}
{% endblock right %}
</div>
</div>

View File

@ -0,0 +1,11 @@
{% extends '/base.html.twig' %}
{% block stylesheets %}
{{ parent() }}
{% include '/sidepanel/left/left_stylesheets.html.twig' %}
{% endblock %}
{% block leftpanel %}
{% include '/sidepanel/left/left.html.twig' %}
{% endblock %}
{% block rightpanel %}
{% include '/sidepanel/right/right.html.twig' %}
{% endblock %}