2020-07-24 07:48:49 +09:00
|
|
|
{% 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 %}
|
2020-08-15 15:28:47 +09:00
|
|
|
{% if app.user %}
|
|
|
|
<div id='left-panel'>
|
2020-08-19 07:41:26 +09:00
|
|
|
<input type="checkbox" id="toggle" class="larger" autofocus>
|
2020-08-15 15:28:47 +09:00
|
|
|
<div class="icon-menu">
|
|
|
|
<label for="toggle" id='menu' tabindex="0"></label>
|
|
|
|
</div>
|
|
|
|
<div class='navbar'>
|
|
|
|
<div class="left-nav">
|
|
|
|
<div class='profile'>
|
2020-11-30 01:54:29 +09:00
|
|
|
{% for extra in profile_extras %}
|
|
|
|
{% include '/'~ extra.name ~ '/view.html.twig' with {'vars': extra.vars} only %}
|
2020-11-26 07:10:56 +09:00
|
|
|
{% endfor %}
|
2020-08-15 15:28:47 +09:00
|
|
|
<a href="{{ path('settings_avatar') }}">
|
|
|
|
<img src='{{ user_avatar }}' alt="Your avatar." class="icon icon-avatar">
|
|
|
|
</a>
|
|
|
|
<a href="{{ path('settings_personal_info') }}">
|
|
|
|
<div class="info">
|
|
|
|
<b id="nick">{{ user_nickname }}</b>
|
|
|
|
<div class="tags">
|
2020-08-17 08:22:53 +09:00
|
|
|
{% if user_tags %}
|
|
|
|
{% for tag in user_tags %}
|
|
|
|
<a href='#'><i> #{{ tag }} </i></a>
|
|
|
|
{% endfor %}
|
|
|
|
{% else %}
|
2020-08-22 00:32:14 +09:00
|
|
|
<i> {{ '(No tags)' | trans }} </i>
|
2020-08-17 08:22:53 +09:00
|
|
|
{% endif %}
|
2020-08-15 15:28:47 +09:00
|
|
|
</div>
|
|
|
|
<div class="stats">
|
2020-08-15 16:03:58 +09:00
|
|
|
<span> <b> {{ user_followers }} </b> {{'Followers' | trans}} </span>
|
|
|
|
<span> <b> {{ user_followed }} </b> {{'Followed' | trans}} </span>
|
2020-07-24 07:48:49 +09:00
|
|
|
</div>
|
2020-08-15 15:28:47 +09:00
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<a href='#'>Messages</a>
|
2020-09-04 08:18:16 +09:00
|
|
|
<a href="{{ path("replies", {'nickname' : user_nickname}) }}" class='hover-effect {{ active("replies") }}'>Replies</a>
|
2021-04-23 21:55:42 +09:00
|
|
|
{% for link in handle_event('InsertLeftPanelLink', user_nickname) %}
|
|
|
|
{{ link | raw }}
|
|
|
|
{% endfor %}
|
2020-08-22 00:32:14 +09:00
|
|
|
<a href="{{ path('settings_personal_info') }}" class='hover-effect {{ active('settings_') }}'>Settings</a>
|
2020-10-16 09:07:01 +09:00
|
|
|
<a href='{{ path('logout') }}'>Logout</a>
|
2020-08-15 15:28:47 +09:00
|
|
|
</div>
|
|
|
|
<div class="footer">
|
|
|
|
<a href="{{ path('doc_faq') }}" class='hover-effect {{ active('doc_faq') }}'>FAQ</a>
|
|
|
|
<a href="{{ path('doc_tos') }}" class='hover-effect {{ active('doc_tos') }}'>TOS</a>
|
|
|
|
<a href="{{ path('doc_privacy') }}" class='hover-effect {{ active('doc_privacy') }}'>Privacy</a>
|
|
|
|
<a href="{{ path('doc_source') }}" class='hover-effect {{ active('doc_source') }}'>Source</a>
|
|
|
|
<a href="{{ path('doc_version') }}" class='hover-effect {{ active('doc_version') }}'>Version</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% else %}
|
|
|
|
<div id='left-panel'>
|
|
|
|
<input type="checkbox" id="toggle">
|
|
|
|
<div class="icon-menu">
|
|
|
|
<label for="toggle" id='menu'></label>
|
2020-07-24 07:48:49 +09:00
|
|
|
</div>
|
2020-08-15 15:28:47 +09:00
|
|
|
<div class='navbar'>
|
|
|
|
<div class="left-nav">
|
|
|
|
<a href="{{ path('login') }}" class='hover-effect {{ active('login') }}'>Login</a>
|
|
|
|
<a href="{{ path('register') }}">Register</a>
|
|
|
|
</div>
|
|
|
|
<div class="footer">
|
|
|
|
<a href="{{ path('doc_faq') }}" class='hover-effect {{ active('doc_faq') }}'>FAQ</a>
|
|
|
|
<a href="{{ path('doc_tos') }}" class='hover-effect {{ active('doc_tos') }}'>TOS</a>
|
|
|
|
<a href="{{ path('doc_privacy') }}" class='hover-effect {{ active('doc_privacy') }}'>Privacy</a>
|
|
|
|
<a href="{{ path('doc_source') }}" class='hover-effect {{ active('doc_source') }}'>Source</a>
|
|
|
|
<a href="{{ path('doc_version') }}" class='hover-effect {{ active('doc_version') }}'>Version</a>
|
|
|
|
</div>
|
2020-07-24 07:48:49 +09:00
|
|
|
</div>
|
2020-08-15 15:28:47 +09:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
2020-07-24 07:48:49 +09:00
|
|
|
|
2020-07-26 09:00:02 +09:00
|
|
|
{% endblock %}
|