2021-08-29 05:23:25 +09:00
|
|
|
<div class="panel panel-left">
|
|
|
|
<input type="checkbox" id="panel-left-toggle">
|
2021-08-31 05:01:32 +09:00
|
|
|
<label id="panel-left-icon" for="panel-left-toggle">{{ icon('menu', 'icon icon-left') | raw }}</label>
|
2021-07-24 03:28:11 +09:00
|
|
|
|
2021-08-31 01:56:59 +09:00
|
|
|
<a id="anchor-left-panel" class="anchor-hidden"></a>
|
2021-08-29 05:23:25 +09:00
|
|
|
<aside class="panel-content">
|
2021-08-31 05:01:32 +09:00
|
|
|
{% if app.user %}
|
|
|
|
<section class='profile'>
|
|
|
|
<a id="user" href="{{ path('settings') }}">
|
|
|
|
<img src='{{ user_avatar }}' alt="Your avatar." class="icon icon-avatar">
|
|
|
|
<div id="user-info">
|
|
|
|
<h1>{{ user_nickname }}</h1>
|
2021-07-27 01:14:24 +09:00
|
|
|
|
2021-08-31 05:01:32 +09:00
|
|
|
<nav id="user-tags">
|
2021-07-24 03:28:11 +09:00
|
|
|
{% if user_tags %}
|
|
|
|
{% for tag in user_tags %}
|
2021-07-27 01:14:24 +09:00
|
|
|
<a href='#'> #{{ tag }}</a>
|
2021-07-24 03:28:11 +09:00
|
|
|
{% endfor %}
|
|
|
|
{% else %}
|
2021-07-27 01:14:24 +09:00
|
|
|
{{ '(No tags)' | trans }}
|
2021-07-24 03:28:11 +09:00
|
|
|
{% endif %}
|
2021-08-31 05:01:32 +09:00
|
|
|
</nav>
|
2021-07-27 01:14:24 +09:00
|
|
|
|
2021-08-31 05:01:32 +09:00
|
|
|
<section id="user-stats">
|
|
|
|
{% if user_followers %}<h2>{{ 'Followers' | trans }} {{ user_followers }}</h2> {% endif %}
|
|
|
|
{% if user_followed %}<h2>{{ 'Followed' | trans }} {{ user_followed }}</h2> {% endif %}
|
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
</a>
|
2021-07-27 01:14:24 +09:00
|
|
|
|
2021-08-31 05:01:32 +09:00
|
|
|
{# {% for extra in profile_extras %}
|
|
|
|
{% include '/'~ extra.name ~ '/view.html.twig' with {'vars': extra.vars} only %}
|
2021-07-30 04:20:32 +09:00
|
|
|
{% endfor %} #}
|
2021-08-31 05:01:32 +09:00
|
|
|
</section>
|
2021-07-24 03:28:11 +09:00
|
|
|
|
2021-08-31 05:01:32 +09:00
|
|
|
<nav class="profile-navigation">
|
|
|
|
<a href='#'>Messages</a>
|
|
|
|
<a href="{{ path("replies", {'nickname' : user_nickname}) }}"
|
|
|
|
class='hover-effect {{ active("replies") }}'>Replies</a>
|
|
|
|
{% for link in handle_event('InsertLeftPanelLink', user_nickname) %}
|
|
|
|
{{ link | raw }}
|
|
|
|
{% endfor %}
|
|
|
|
<a href="{{ path('settings') }}"
|
2021-09-01 02:33:58 +09:00
|
|
|
class='{{ active('settings') }}'>Settings</a>
|
2021-08-31 05:01:32 +09:00
|
|
|
<a href='{{ path('logout') }}'>Logout</a>
|
|
|
|
</nav>
|
2021-07-24 03:28:11 +09:00
|
|
|
|
2021-08-31 05:01:32 +09:00
|
|
|
{% else %}
|
|
|
|
<nav class="profile-navigation">
|
|
|
|
<a href="{{ path('login') }}" class='hover-effect {{ active('login') }}'>Login</a>
|
|
|
|
<a href="{{ path('register') }}">Register</a>
|
|
|
|
</nav>
|
|
|
|
{% endif %}
|
2021-07-25 02:16:27 +09:00
|
|
|
|
2021-08-31 05:01:32 +09:00
|
|
|
<nav class="timeline-nav" role="menu">
|
|
|
|
<h1 role="tab">Timeline</h1>
|
2021-07-25 02:16:27 +09:00
|
|
|
|
2021-08-31 05:01:32 +09:00
|
|
|
<nav class='sec-nav' role="navigation">
|
|
|
|
<a href="{{ path('main_public') }}"
|
|
|
|
class='{{ active('main_public') }}'>Public</a>
|
2021-07-25 02:16:27 +09:00
|
|
|
|
2021-08-31 05:01:32 +09:00
|
|
|
{% if user_nickname is defined %}
|
|
|
|
<a href="{{ path("home_all", {'nickname' : user_nickname}) }}"
|
|
|
|
class='{{ active("home_all") }}'>Home</a>
|
|
|
|
{% endif %}
|
2021-07-26 23:30:55 +09:00
|
|
|
|
2021-08-31 05:01:32 +09:00
|
|
|
<a href="{{ path('main_all') }}" class='hover-effect {{ active('main_all') }}'>Network</a>
|
2021-07-24 03:28:11 +09:00
|
|
|
|
2021-08-31 05:01:32 +09:00
|
|
|
{% if main_nav_tabs is defined %}
|
|
|
|
{% for tab in main_nav_tabs %}
|
|
|
|
<a href="{{ path(tab['route']) }}"
|
|
|
|
class='{{ active(tab['route']) }}'>{{ tab['title'] }}</a>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
</nav>
|
2021-08-29 05:23:25 +09:00
|
|
|
</nav>
|
2021-07-24 03:28:11 +09:00
|
|
|
|
2021-08-29 05:23:25 +09:00
|
|
|
<div class="footer" role="contentinfo">
|
|
|
|
<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>
|
|
|
|
</aside>
|
|
|
|
</div>
|