[TEMPLATES] Fix identation

This commit is contained in:
Diogo Peralta Cordeiro 2021-04-30 02:51:03 +01:00 committed by Hugo Sales
parent 8cb64ede7f
commit 5bd16a509e
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0
37 changed files with 750 additions and 681 deletions

View File

@ -28,7 +28,7 @@
{% block body %} {% block body %}
{{ parent() }} {{ parent() }}
<div class="content"> <div class="content">
<div class="create-notice"> <div class="create-notice">
<div class="create-poll-notice"> <div class="create-poll-notice">
{% block form %} {% block form %}
@ -38,6 +38,6 @@
{% endblock form %} {% endblock form %}
</div> </div>
</div> </div>
{% endblock body %} {% endblock body %}
{% block javascripts %}{% endblock %} {% block javascripts %}{% endblock %}

View File

@ -1,4 +1,3 @@
<div class="poll"> <div class="poll">
<p class="poll-question">Q. {{ vars.question }}</p> <p class="poll-question">Q. {{ vars.question }}</p>
{% if vars.form is not null %} {% if vars.form is not null %}

View File

@ -14,7 +14,7 @@
<div class="content"> <div class="content">
<div style="display: block"> <div style="display: block">
<p> {{ title | escape }} </p> <p> {{ title | escape }} </p>
<a href="{{download}}"> {{ 'Download link' | trans }}</a> <a href="{{ download }}"> {{ 'Download link' | trans }}</a>
{% include '/attachments/view.html.twig' with {'attachment': attachment} only %} {% include '/attachments/view.html.twig' with {'attachment': attachment} only %}
</div> </div>
</div> </div>

View File

@ -3,12 +3,15 @@
<div> <div>
<figure> <figure>
<img src="{{ path('attachment_thumbnail', thumbnail_parameters) }}" alt="{{ attachment.getTitle() }}"> <img src="{{ path('attachment_thumbnail', thumbnail_parameters) }}" alt="{{ attachment.getTitle() }}">
<figcaption> <a href="{{ path('attachment_show', {'id': attachment.getId()}) }}">{{ attachment.getTitle() }}</a> </figcaption> <figcaption><a
href="{{ path('attachment_show', {'id': attachment.getId()}) }}">{{ attachment.getTitle() }}</a>
</figcaption>
</figure> </figure>
</div> </div>
{% elseif attachment.mimetype starts with 'video/' %} {% elseif attachment.mimetype starts with 'video/' %}
<div> <div>
<video src="{{ path('attachment_view', {'id': attachment.getId()}) }}" controls poster="{{ path('attachment_thumbnail') }}, thumbnail_parameters"> <video src="{{ path('attachment_view', {'id': attachment.getId()}) }}" controls
poster="{{ path('attachment_thumbnail') }}, thumbnail_parameters">
<i> <a href="{{ path('attachment_show', {'id': attachment.getId()}) }}">{{ attachment.getTitle() }}</a> </i> <i> <a href="{{ path('attachment_show', {'id': attachment.getId()}) }}">{{ attachment.getTitle() }}</a> </i>
</video> </video>
</div> </div>

View File

@ -1,6 +1,6 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
{% block meta %} {% block meta %}
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
@ -9,10 +9,14 @@
{% block title %}{% endblock %} {% block title %}{% endblock %}
</title> </title>
{% block stylesheets %} {% block stylesheets %}
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@800&family=Open+Sans&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@800&family=Open+Sans&display=swap"
<link rel='stylesheet' type='text/css' href="{{ asset('assets/css/base.css') }}" media="screen and (min-width: 1300px)"> rel="stylesheet">
<link rel='stylesheet' type='text/css' href="{{ asset('assets/css/base_mid.css') }}" media="screen and (max-width: 1300px)"> <link rel='stylesheet' type='text/css' href="{{ asset('assets/css/base.css') }}"
<link rel='stylesheet' type='text/css' href="{{ asset('assets/css/base_small.css') }}" media="screen and (max-width: 750px)"> media="screen and (min-width: 1300px)">
<link rel='stylesheet' type='text/css' href="{{ asset('assets/css/base_mid.css') }}"
media="screen and (max-width: 1300px)">
<link rel='stylesheet' type='text/css' href="{{ asset('assets/css/base_small.css') }}"
media="screen and (max-width: 750px)">
<link rel='stylesheet' type='text/css' href="{{ asset('assets/css/reset.css') }}"> <link rel='stylesheet' type='text/css' href="{{ asset('assets/css/reset.css') }}">
{% for stylesheet in show_stylesheets() %} {% for stylesheet in show_stylesheets() %}
<link rel='stylesheet' type='text/css' href="{{ asset('assets/css/' ~ stylesheet) }}"> <link rel='stylesheet' type='text/css' href="{{ asset('assets/css/' ~ stylesheet) }}">
@ -21,13 +25,13 @@
{% for arr in handle_event('ShowHeadElements', app.request) %} {% for arr in handle_event('ShowHeadElements', app.request) %}
{# Only one element, but has dynamic value, can't access it directly #} {# Only one element, but has dynamic value, can't access it directly #}
{% for type, element in arr %} {% for type, element in arr %}
<{{type}} rel="{{element['rel']}}" type="{{element['type']}}" href="{{element['href']}}" title="{{element['title']}}"> <{{ type }} rel="{{ element['rel'] }}" type="{{ element['type'] }}" href="{{ element['href'] }}" title="{{ element['title'] }}">
{% endfor %} {% endfor %}
{% endfor %} {% endfor %}
</head> </head>
<body> <body>
<div class="container"> <div class="container">
{% block header %} {% block header %}
<div id='header'> <div id='header'>
<div id='top'> <div id='top'>
@ -43,12 +47,12 @@
{% endblock rightpanel %} {% endblock rightpanel %}
</div> </div>
</div> </div>
{% endblock header%} {% endblock header %}
{% block nav %}{% endblock %} {% block nav %}{% endblock %}
{% block body %}{% endblock %} {% block body %}{% endblock %}
{% block javascripts %}{% endblock javascripts%} {% block javascripts %}{% endblock javascripts %}
</div> </div>
</body> </body>
</html> </html>

View File

@ -1,6 +1,6 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>{% block title %}Admin Configuration page!{% endblock %}</title> <title>{% block title %}Admin Configuration page!{% endblock %}</title>
{% block stylesheets %}{% endblock %} {% block stylesheets %}{% endblock %}
@ -10,18 +10,18 @@
color: #ddd; color: #ddd;
} }
</style> </style>
</head> </head>
<body> <body>
{% block body %}{% endblock %} {% block body %}{% endblock %}
{% block javascripts %}{% endblock %} {% block javascripts %}{% endblock %}
{{ form(form) }} {{ form(form) }}
{% if old_value is defined and default is defined %} {% if old_value is defined and default is defined %}
Old value: {{ old_value }} <br> Old value: {{ old_value }} <br>
Default value: {{ default }} Default value: {{ default }}
Configuration dumped to <code> social.local.yaml </code> Configuration dumped to <code> social.local.yaml </code>
Backup of previous configuration in <code> social.local.yaml.back </code> will be overridden with the next change Backup of previous configuration in <code> social.local.yaml.back </code> will be overridden with the next change
{% endif %} {% endif %}
</body> </body>
</html> </html>

View File

@ -1,8 +1,7 @@
<a class="cover">
<a class="cover">
{% if vars is not empty %} {% if vars is not empty %}
<img class="cover-img" src='{{ vars.img }}' alt="Your cover." class=""> <img class="cover-img" src='{{ vars.img }}' alt="Your cover." class="">
{% else %} {% else %}
<div class="no-cover" ></div> <div class="no-cover"></div>
{% endif %} {% endif %}
</a> </a>

View File

@ -8,9 +8,12 @@
{% block stylesheets %} {% block stylesheets %}
{{ parent() }} {{ parent() }}
<link rel='stylesheet' type='text/css' href="{{ asset('assets/css/doc/doc.css') }}" media="screen and (min-width: 1300px)"> <link rel='stylesheet' type='text/css' href="{{ asset('assets/css/doc/doc.css') }}"
<link rel='stylesheet' type='text/css' href="{{ asset('assets/css/doc/doc_mid.css') }}" media="screen and (max-width: 1300px)"> media="screen and (min-width: 1300px)">
<link rel='stylesheet' type='text/css' href="{{ asset('assets/css/doc/doc_small.css') }}" media="screen and (max-width: 750px)"> <link rel='stylesheet' type='text/css' href="{{ asset('assets/css/doc/doc_mid.css') }}"
media="screen and (max-width: 1300px)">
<link rel='stylesheet' type='text/css' href="{{ asset('assets/css/doc/doc_small.css') }}"
media="screen and (max-width: 750px)">
{% endblock %} {% endblock %}
{% block header %} {% block header %}

View File

@ -3,7 +3,7 @@
{% block title %}Help{% endblock %} {% block title %}Help{% endblock %}
{% block body %} {% block body %}
{{ parent() }} {{ parent() }}
{% endblock %} {% endblock %}
{% block markdown %} {% block markdown %}

View File

@ -9,19 +9,24 @@
<nav class='faq-nav'> <nav class='faq-nav'>
<ul> <ul>
<li> <li>
<a href="{{ path('doc_faq') }}" class='hover-effect {% if app.request.attributes.get('_route') starts with 'doc_faq' %}active{% endif %}'>FAQ</a> <a href="{{ path('doc_faq') }}"
class='hover-effect {% if app.request.attributes.get('_route') starts with 'doc_faq' %}active{% endif %}'>FAQ</a>
</li> </li>
<li> <li>
<a href="{{ path('doc_contact') }}" class='hover-effect {% if app.request.attributes.get('_route') starts with 'doc_contact' %}active{% endif %}'>Contact</a> <a href="{{ path('doc_contact') }}"
class='hover-effect {% if app.request.attributes.get('_route') starts with 'doc_contact' %}active{% endif %}'>Contact</a>
</li> </li>
<li> <li>
<a href="{{ path('doc_tags') }}" class='hover-effect {% if app.request.attributes.get('_route') starts with 'doc_tags' %}active{% endif %}'>Tags</a> <a href="{{ path('doc_tags') }}"
class='hover-effect {% if app.request.attributes.get('_route') starts with 'doc_tags' %}active{% endif %}'>Tags</a>
</li> </li>
<li> <li>
<a href="{{ path('doc_groups') }}" class='hover-effect {% if app.request.attributes.get('_route') starts with 'doc_groups' %}active{% endif %}'>Groups</a> <a href="{{ path('doc_groups') }}"
class='hover-effect {% if app.request.attributes.get('_route') starts with 'doc_groups' %}active{% endif %}'>Groups</a>
</li> </li>
<li> <li>
<a href="{{ path('doc_openid') }}" class='hover-effect {% if app.request.attributes.get('_route') starts with 'doc_openid' %}active{% endif %}'>OpenID</a> <a href="{{ path('doc_openid') }}"
class='hover-effect {% if app.request.attributes.get('_route') starts with 'doc_openid' %}active{% endif %}'>OpenID</a>
</li> </li>
</ul> </ul>
</nav> </nav>

View File

@ -2,7 +2,7 @@
{% block title %}Help{% endblock %} {% block title %}Help{% endblock %}
{% block body %} {% block body %}
{{ parent() }} {{ parent() }}
{% endblock %} {% endblock %}
{% block markdown %} {% block markdown %}

View File

@ -3,7 +3,7 @@
{% block title %}Help{% endblock %} {% block title %}Help{% endblock %}
{% block body %} {% block body %}
{{ parent() }} {{ parent() }}
{% endblock %} {% endblock %}
{% block markdown %} {% block markdown %}

View File

@ -3,7 +3,7 @@
{% block title %}Help{% endblock %} {% block title %}Help{% endblock %}
{% block body %} {% block body %}
{{ parent() }} {{ parent() }}
{% endblock %} {% endblock %}
{% block markdown %} {% block markdown %}

View File

@ -2,8 +2,8 @@
{% block title %}Privacy{% endblock %} {% block title %}Privacy{% endblock %}
{% block body %} {% block body %}
{{ parent() }} {{ parent() }}
<div class='content'> <div class='content'>
<div class='markd markd-single'> <div class='markd markd-single'>
{% block markdown %} {% block markdown %}
{% apply markdown_to_html %} {% apply markdown_to_html %}
@ -31,5 +31,5 @@
{% endapply %} {% endapply %}
{% endblock %} {% endblock %}
</div> </div>
</div> </div>
{% endblock %} {% endblock %}

View File

@ -72,7 +72,8 @@
<nav class='main-nav'> <nav class='main-nav'>
<ul> <ul>
<li> <li>
<a href="{{ path('main_public') }}" class='hover-effect {{ active('main_public', 'main_all', "home_all") }}'>Timeline</a> <a href="{{ path('main_public') }}"
class='hover-effect {{ active('main_public', 'main_all', "home_all") }}'>Timeline</a>
</li> </li>
</ul> </ul>
</nav> </nav>
@ -80,11 +81,13 @@
<nav class='main-nav'> <nav class='main-nav'>
<ul> <ul>
<li> <li>
<a href="{{ path('main_public') }}" class='hover-effect {{ active('main_public') }}'>Public</a> <a href="{{ path('main_public') }}"
class='hover-effect {{ active('main_public') }}'>Public</a>
</li> </li>
{% if user_nickname is defined %} {% if user_nickname is defined %}
<li> <li>
<a href="{{ path("home_all", {'nickname' : user_nickname}) }}" class='hover-effect {{ active("home_all") }}'>Home</a> <a href="{{ path("home_all", {'nickname' : user_nickname}) }}"
class='hover-effect {{ active("home_all") }}'>Home</a>
</li> </li>
{% endif %} {% endif %}
<li> <li>

View File

@ -72,7 +72,8 @@
<nav class='main-nav'> <nav class='main-nav'>
<ul> <ul>
<li> <li>
<a href="{{ path('main_public') }}" class='hover-effect {{ active('main_public', 'main_all', "home_all") }}'>Timeline</a> <a href="{{ path('main_public') }}"
class='hover-effect {{ active('main_public', 'main_all', "home_all") }}'>Timeline</a>
</li> </li>
</ul> </ul>
</nav> </nav>
@ -80,11 +81,13 @@
<nav class='main-nav'> <nav class='main-nav'>
<ul> <ul>
<li> <li>
<a href="{{ path('main_public') }}" class='hover-effect {{ active('main_public') }}'>Public</a> <a href="{{ path('main_public') }}"
class='hover-effect {{ active('main_public') }}'>Public</a>
</li> </li>
{% if user_nickname is defined %} {% if user_nickname is defined %}
<li> <li>
<a href="{{ path("home_all", {'nickname' : user_nickname}) }}" class='hover-effect {{ active("home_all") }}'>Home</a> <a href="{{ path("home_all", {'nickname' : user_nickname}) }}"
class='hover-effect {{ active("home_all") }}'>Home</a>
</li> </li>
{% endif %} {% endif %}
<li> <li>
@ -93,7 +96,8 @@
{% if main_nav_tabs is defined %} {% if main_nav_tabs is defined %}
{% for tab in main_nav_tabs %} {% for tab in main_nav_tabs %}
<li> <li>
<a href="{{ path(tab['route']) }}" class='hover-effect {{ active(tab['route']) }}' >{{ tab['title'] }}</a> <a href="{{ path(tab['route']) }}"
class='hover-effect {{ active(tab['route']) }}'>{{ tab['title'] }}</a>
</li> </li>
{% endfor %} {% endfor %}
{% endif %} {% endif %}

View File

@ -32,7 +32,9 @@
<nav class='main-nav'> <nav class='main-nav'>
<ul> <ul>
<li> <li>
<a href="{{ path('main_public') }}" class='hover-effect {{ active('main_public', 'main_all', "home_all") }}'><p>Reverse Favourites</p></a> <a href="{{ path('main_public') }}"
class='hover-effect {{ active('main_public', 'main_all', "home_all") }}'><p>Reverse
Favourites</p></a>
</li> </li>
</ul> </ul>
</nav> </nav>
@ -44,7 +46,8 @@
{% include '/note/view.html.twig' with {'note': note, 'have_user': have_user} only %} {% include '/note/view.html.twig' with {'note': note, 'have_user': have_user} only %}
{% endfor %} {% endfor %}
{% else %} {% else %}
<h1>This is {{ user_nickname }}'s reverse favorites stream, but nobody favored {{ user_nickname }}'s notes yet.</h1> <h1>This is {{ user_nickname }}'s reverse favorites stream, but nobody
favored {{ user_nickname }}'s notes yet.</h1>
{% endif %} {% endif %}
</div> </div>
</div> </div>

View File

@ -7,7 +7,7 @@
<b>{{ nickname }}</b> <b>{{ nickname }}</b>
{% set reply_to = note.getReplyToNickname() %} {% set reply_to = note.getReplyToNickname() %}
{% if reply_to is not null and not skip_reply_to is defined %} {% if reply_to is not null and not skip_reply_to is defined %}
{% trans with {'%name%': reply_to}%} in reply to %name% {% endtrans %} {% trans with {'%name%': reply_to} %} in reply to %name% {% endtrans %}
{% endif %} {% endif %}
</div> </div>
<div class="note-content"> <div class="note-content">

View File

@ -1,6 +1,5 @@
<a class="pcolor">
<a class="pcolor">
{% if vars is not empty %} {% if vars is not empty %}
<div class="profile-color" style="border-color: {{ vars.color }}"></div> <div class="profile-color" style="border-color: {{ vars.color }}"></div>
{% endif %} {% endif %}
</a> </a>

View File

@ -1,22 +1,28 @@
{% extends 'base.html.twig' %} {% extends 'base.html.twig' %}
{% block stylesheets %} {% block stylesheets %}
{{ parent() }} {{ parent() }}
<link rel='stylesheet' type='text/css' href="{{ asset('assets/css/settings/settings.css') }}" media="screen and (min-width: 1300px)"> <link rel='stylesheet' type='text/css' href="{{ asset('assets/css/settings/settings.css') }}"
<link rel='stylesheet' type='text/css' href="{{ asset('assets/css/settings/settings_mid.css') }}" media="screen and (max-width: 1300px)"> media="screen and (min-width: 1300px)">
<link rel='stylesheet' type='text/css' href="{{ asset('assets/css/settings/settings_small.css') }}" media="screen and (max-width: 750px)"> <link rel='stylesheet' type='text/css' href="{{ asset('assets/css/settings/settings_mid.css') }}"
media="screen and (max-width: 1300px)">
<link rel='stylesheet' type='text/css' href="{{ asset('assets/css/settings/settings_small.css') }}"
media="screen and (max-width: 750px)">
{% endblock %} {% endblock %}
{% block nav %} {% block nav %}
<nav class='set-nav'> <nav class='set-nav'>
<ul> <ul>
<li> <li>
<a href="{{ path('settings_profile') }}" class='hover-effect {% if app.request.attributes.get('_route') starts with 'settings_' %}active{% endif %}'>Settings</a> <a href="{{ path('settings_profile') }}"
class='hover-effect {% if app.request.attributes.get('_route') starts with 'settings_' %}active{% endif %}'>Settings</a>
</li> </li>
<li> <li>
<a href="{{ path('account_email') }}" class='hover-effect {% if app.request.attributes.get('_route') starts with 'account_' %}active{% endif %}'>Account</a> <a href="{{ path('account_email') }}"
class='hover-effect {% if app.request.attributes.get('_route') starts with 'account_' %}active{% endif %}'>Account</a>
</li> </li>
<li> <li>
<a href="{{ path('doc_tags') }}" class='hover-effect {% if app.request.attributes.get('_route') starts with 'doc_tags' %}active{% endif %}'>Misc</a> <a href="{{ path('doc_tags') }}"
class='hover-effect {% if app.request.attributes.get('_route') starts with 'doc_tags' %}active{% endif %}'>Misc</a>
</li> </li>
</ul> </ul>
</nav> </nav>
@ -24,13 +30,17 @@
<nav class='set-nav2'> <nav class='set-nav2'>
<ul> <ul>
<li> <li>
<a href="{{ path('account_email') }}" class='hover-effect {% if app.request.attributes.get('_route') starts with 'account_email' %}active{% endif %}'>Email</a> <a href="{{ path('account_email') }}"
class='hover-effect {% if app.request.attributes.get('_route') starts with 'account_email' %}active{% endif %}'>Email</a>
</li> </li>
<li> <li>
<a href="{{ path('account_pass') }}" class='hover-effect {% if app.request.attributes.get('_route') starts with 'account_pass' %}active{% endif %}'>Password</a> <a href="{{ path('account_pass') }}"
class='hover-effect {% if app.request.attributes.get('_route') starts with 'account_pass' %}active{% endif %}'>Password</a>
</li> </li>
<li> <li>
<a href="{{ path('account_bak') }}" class='hover-effect {% if app.request.attributes.get('_route') starts with 'account_bak' %}active{% endif %}'>Backup and Restore</a> <a href="{{ path('account_bak') }}"
class='hover-effect {% if app.request.attributes.get('_route') starts with 'account_bak' %}active{% endif %}'>Backup
and Restore</a>
</li> </li>
</ul> </ul>
</nav> </nav>

View File

@ -1,22 +1,28 @@
{% extends 'base.html.twig' %} {% extends 'base.html.twig' %}
{% block stylesheets %} {% block stylesheets %}
{{ parent() }} {{ parent() }}
<link rel='stylesheet' type='text/css' href="{{ asset('assets/css/settings/settings.css') }}" media="screen and (min-width: 1300px)"> <link rel='stylesheet' type='text/css' href="{{ asset('assets/css/settings/settings.css') }}"
<link rel='stylesheet' type='text/css' href="{{ asset('assets/css/settings/settings_mid.css') }}" media="screen and (max-width: 1300px)"> media="screen and (min-width: 1300px)">
<link rel='stylesheet' type='text/css' href="{{ asset('assets/css/settings/settings_small.css') }}" media="screen and (max-width: 750px)"> <link rel='stylesheet' type='text/css' href="{{ asset('assets/css/settings/settings_mid.css') }}"
media="screen and (max-width: 1300px)">
<link rel='stylesheet' type='text/css' href="{{ asset('assets/css/settings/settings_small.css') }}"
media="screen and (max-width: 750px)">
{% endblock %} {% endblock %}
{% block nav %} {% block nav %}
<nav class='set-nav'> <nav class='set-nav'>
<ul> <ul>
<li> <li>
<a href="{{ path('settings_profile') }}" class='hover-effect {% if app.request.attributes.get('_route') starts with 'settings_' %}active{% endif %}'>Settings</a> <a href="{{ path('settings_profile') }}"
class='hover-effect {% if app.request.attributes.get('_route') starts with 'settings_' %}active{% endif %}'>Settings</a>
</li> </li>
<li> <li>
<a href="{{ path('account_email') }}" class='hover-effect {% if app.request.attributes.get('_route') starts with 'account_' %}active{% endif %}'>Account</a> <a href="{{ path('account_email') }}"
class='hover-effect {% if app.request.attributes.get('_route') starts with 'account_' %}active{% endif %}'>Account</a>
</li> </li>
<li> <li>
<a href="{{ path('doc_tags') }}" class='hover-effect {% if app.request.attributes.get('_route') starts with 'doc_tags' %}active{% endif %}'>Misc</a> <a href="{{ path('doc_tags') }}"
class='hover-effect {% if app.request.attributes.get('_route') starts with 'doc_tags' %}active{% endif %}'>Misc</a>
</li> </li>
</ul> </ul>
</nav> </nav>
@ -24,13 +30,17 @@
<nav class='set-nav2'> <nav class='set-nav2'>
<ul> <ul>
<li> <li>
<a href="{{ path('account_email') }}" class='hover-effect {% if app.request.attributes.get('_route') starts with 'account_email' %}active{% endif %}'>Email</a> <a href="{{ path('account_email') }}"
class='hover-effect {% if app.request.attributes.get('_route') starts with 'account_email' %}active{% endif %}'>Email</a>
</li> </li>
<li> <li>
<a href="{{ path('account_pass') }}" class='hover-effect {% if app.request.attributes.get('_route') starts with 'account_pass' %}active{% endif %}'>Password</a> <a href="{{ path('account_pass') }}"
class='hover-effect {% if app.request.attributes.get('_route') starts with 'account_pass' %}active{% endif %}'>Password</a>
</li> </li>
<li> <li>
<a href="{{ path('account_bak') }}" class='hover-effect {% if app.request.attributes.get('_route') starts with 'account_bak' %}active{% endif %}'>Backup and Restore</a> <a href="{{ path('account_bak') }}"
class='hover-effect {% if app.request.attributes.get('_route') starts with 'account_bak' %}active{% endif %}'>Backup
and Restore</a>
</li> </li>
</ul> </ul>
</nav> </nav>

View File

@ -1,22 +1,28 @@
{% extends 'base.html.twig' %} {% extends 'base.html.twig' %}
{% block stylesheets %} {% block stylesheets %}
{{ parent() }} {{ parent() }}
<link rel='stylesheet' type='text/css' href="{{ asset('assets/css/settings/settings.css') }}" media="screen and (min-width: 1300px)"> <link rel='stylesheet' type='text/css' href="{{ asset('assets/css/settings/settings.css') }}"
<link rel='stylesheet' type='text/css' href="{{ asset('assets/css/settings/settings_mid.css') }}" media="screen and (max-width: 1300px)"> media="screen and (min-width: 1300px)">
<link rel='stylesheet' type='text/css' href="{{ asset('assets/css/settings/settings_small.css') }}" media="screen and (max-width: 750px)"> <link rel='stylesheet' type='text/css' href="{{ asset('assets/css/settings/settings_mid.css') }}"
media="screen and (max-width: 1300px)">
<link rel='stylesheet' type='text/css' href="{{ asset('assets/css/settings/settings_small.css') }}"
media="screen and (max-width: 750px)">
{% endblock %} {% endblock %}
{% block nav %} {% block nav %}
<nav class='set-nav'> <nav class='set-nav'>
<ul> <ul>
<li> <li>
<a href="{{ path('settings_profile') }}" class='hover-effect {% if app.request.attributes.get('_route') starts with 'settings_' %}active{% endif %}'>Settings</a> <a href="{{ path('settings_profile') }}"
class='hover-effect {% if app.request.attributes.get('_route') starts with 'settings_' %}active{% endif %}'>Settings</a>
</li> </li>
<li> <li>
<a href="{{ path('account_email') }}" class='hover-effect {% if app.request.attributes.get('_route') starts with 'account_' %}active{% endif %}'>Account</a> <a href="{{ path('account_email') }}"
class='hover-effect {% if app.request.attributes.get('_route') starts with 'account_' %}active{% endif %}'>Account</a>
</li> </li>
<li> <li>
<a href="{{ path('doc_tags') }}" class='hover-effect {% if app.request.attributes.get('_route') starts with 'doc_tags' %}active{% endif %}'>Misc</a> <a href="{{ path('doc_tags') }}"
class='hover-effect {% if app.request.attributes.get('_route') starts with 'doc_tags' %}active{% endif %}'>Misc</a>
</li> </li>
</ul> </ul>
</nav> </nav>
@ -24,13 +30,17 @@
<nav class='set-nav2'> <nav class='set-nav2'>
<ul> <ul>
<li> <li>
<a href="{{ path('account_email') }}" class='hover-effect {% if app.request.attributes.get('_route') starts with 'account_email' %}active{% endif %}'>Email</a> <a href="{{ path('account_email') }}"
class='hover-effect {% if app.request.attributes.get('_route') starts with 'account_email' %}active{% endif %}'>Email</a>
</li> </li>
<li> <li>
<a href="{{ path('account_pass') }}" class='hover-effect {% if app.request.attributes.get('_route') starts with 'account_pass' %}active{% endif %}'>Password</a> <a href="{{ path('account_pass') }}"
class='hover-effect {% if app.request.attributes.get('_route') starts with 'account_pass' %}active{% endif %}'>Password</a>
</li> </li>
<li> <li>
<a href="{{ path('account_bak') }}" class='hover-effect {% if app.request.attributes.get('_route') starts with 'account_bak' %}active{% endif %}'>Backup and Restore</a> <a href="{{ path('account_bak') }}"
class='hover-effect {% if app.request.attributes.get('_route') starts with 'account_bak' %}active{% endif %}'>Backup
and Restore</a>
</li> </li>
</ul> </ul>
</nav> </nav>

View File

@ -8,9 +8,12 @@
{% block stylesheets %} {% block stylesheets %}
{{ parent() }} {{ parent() }}
<link rel='stylesheet' type='text/css' href="{{ asset('assets/css/settings/settings.css') }}" media="screen and (min-width: 1300px)"> <link rel='stylesheet' type='text/css' href="{{ asset('assets/css/settings/settings.css') }}"
<link rel='stylesheet' type='text/css' href="{{ asset('assets/css/settings/settings_mid.css') }}" media="screen and (max-width: 1300px)"> media="screen and (min-width: 1300px)">
<link rel='stylesheet' type='text/css' href="{{ asset('assets/css/settings/settings_small.css') }}" media="screen and (max-width: 750px)"> <link rel='stylesheet' type='text/css' href="{{ asset('assets/css/settings/settings_mid.css') }}"
media="screen and (max-width: 1300px)">
<link rel='stylesheet' type='text/css' href="{{ asset('assets/css/settings/settings_small.css') }}"
media="screen and (max-width: 750px)">
{% endblock %} {% endblock %}
{% block header %} {% block header %}
@ -28,13 +31,16 @@
<nav class='set-nav'> <nav class='set-nav'>
<ul> <ul>
<li> <li>
<a href="{{ path('settings_personal_info') }}" class='hover-effect {{ active('settings_personal_info', 'settings_avatar', 'settings_profile_') }}'>Profile</a> <a href="{{ path('settings_personal_info') }}"
class='hover-effect {{ active('settings_personal_info', 'settings_avatar', 'settings_profile_') }}'>Profile</a>
</li> </li>
<li> <li>
<a href="{{ path('settings_account') }}" class='hover-effect {{ active('settings_account') }}'>Account</a> <a href="{{ path('settings_account') }}"
class='hover-effect {{ active('settings_account') }}'>Account</a>
</li> </li>
<li> <li>
<a href="{{ path('settings_notifications') }}" class='hover-effect {{ active('settings_notifications') }}'>Notifications</a> <a href="{{ path('settings_notifications') }}"
class='hover-effect {{ active('settings_notifications') }}'>Notifications</a>
</li> </li>
</ul> </ul>
</nav> </nav>

View File

@ -18,7 +18,8 @@
<div id='form-tabs'> <div id='form-tabs'>
<ul> <ul>
{% for transport, form in tabbed_forms %} {% for transport, form in tabbed_forms %}
<input type="radio" id="toggle-{{ transport }}" name="tabs" value="toggle-{{ transport }}" {% if transport == "email" %} checked {% endif %}> <input type="radio" id="toggle-{{ transport }}" name="tabs"
value="toggle-{{ transport }}" {% if transport == "email" %} checked {% endif %}>
<label for="toggle-{{ transport }}" id='tabs'> <label for="toggle-{{ transport }}" id='tabs'>
{{ transport }} {{ transport }}
</label> </label>

View File

@ -18,11 +18,13 @@
class='hover-effect {{ active('settings_personal_info') }}'>Personal Info</a> class='hover-effect {{ active('settings_personal_info') }}'>Personal Info</a>
</li> </li>
<li> <li>
<a href="{{ path('settings_avatar') }}" class='hover-effect {{ active('settings_avatar') }}'>Avatar</a> <a href="{{ path('settings_avatar') }}"
class='hover-effect {{ active('settings_avatar') }}'>Avatar</a>
</li> </li>
{% for tab in profile_tabs %} {% for tab in profile_tabs %}
<li> <li>
<a href="{{ path(tab['route']) }}" class='hover-effect {{ active(tab['route']) }}' >{{ tab['title'] }}</a> <a href="{{ path(tab['route']) }}"
class='hover-effect {{ active(tab['route']) }}'>{{ tab['title'] }}</a>
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>

View File

@ -1,4 +1,4 @@
{% 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>
<div class="icon-menu"> <div class="icon-menu">
@ -26,18 +26,20 @@
{% endif %} {% endif %}
</div> </div>
<div class="stats"> <div class="stats">
<span> <b> {{ user_followers }} </b> {{'Followers' | trans}} </span> <span> <b> {{ user_followers }} </b> {{ 'Followers' | trans }} </span>
<span> <b> {{ user_followed }} </b> {{'Followed' | trans}} </span> <span> <b> {{ user_followed }} </b> {{ 'Followed' | trans }} </span>
</div> </div>
</div> </div>
</a> </a>
</div> </div>
<a href='#'>Messages</a> <a href='#'>Messages</a>
<a href="{{ path("replies", {'nickname' : user_nickname}) }}" class='hover-effect {{ active("replies") }}'>Replies</a> <a href="{{ path("replies", {'nickname' : user_nickname}) }}"
class='hover-effect {{ active("replies") }}'>Replies</a>
{% for link in handle_event('InsertLeftPanelLink', user_nickname) %} {% for link in handle_event('InsertLeftPanelLink', user_nickname) %}
{{ link | raw }} {{ link | raw }}
{% endfor %} {% endfor %}
<a href="{{ path('settings_personal_info') }}" class='hover-effect {{ active('settings_') }}'>Settings</a> <a href="{{ path('settings_personal_info') }}"
class='hover-effect {{ active('settings_') }}'>Settings</a>
<a href='{{ path('logout') }}'>Logout</a> <a href='{{ path('logout') }}'>Logout</a>
</div> </div>
<div class="footer"> <div class="footer">
@ -49,7 +51,7 @@
</div> </div>
</div> </div>
</div> </div>
{% else %} {% else %}
<div id='left-panel'> <div id='left-panel'>
<input type="checkbox" id="toggle"> <input type="checkbox" id="toggle">
<div class="icon-menu"> <div class="icon-menu">
@ -69,4 +71,4 @@
</div> </div>
</div> </div>
</div> </div>
{% endif %} {% endif %}

View File

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

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