2021-08-28 21:23:25 +01:00
|
|
|
<div class="panel panel-left">
|
2021-09-07 15:59:19 +01:00
|
|
|
<input type="checkbox" id="panel-left-toggle" aria-hidden="true" tabindex="-1">
|
|
|
|
<label id="panel-left-icon" for="panel-left-toggle" aria-hidden="true" tabindex="-1">{{ icon('menu', 'icon icon-left') | raw }}</label>
|
2021-07-23 19:28:11 +01:00
|
|
|
|
2021-09-07 15:59:19 +01:00
|
|
|
<a id="anchor-left-panel" class="anchor-hidden" title="{{ 'Press tab to access selected region!' | trans }}"></a>
|
2021-08-28 21:23:25 +01:00
|
|
|
<aside class="panel-content">
|
2021-08-30 21:01:32 +01:00
|
|
|
{% if app.user %}
|
|
|
|
<section class='profile'>
|
|
|
|
<a id="user" href="{{ path('settings') }}">
|
2021-09-07 15:59:19 +01:00
|
|
|
<img src='{{ user_avatar }}' alt="{{ 'Your avatar.' | trans }}" title="{{ 'Your avatar.' | trans }}" class="icon icon-avatar">
|
2021-08-30 21:01:32 +01:00
|
|
|
<div id="user-info">
|
2021-09-07 15:59:19 +01:00
|
|
|
<strong id="user-nickname" title="{{ 'Your nickname.' | trans }}">{{ user_nickname }}</strong>
|
2021-07-26 17:14:24 +01:00
|
|
|
|
2021-08-30 21:01:32 +01:00
|
|
|
<nav id="user-tags">
|
2021-07-23 19:28:11 +01:00
|
|
|
{% if user_tags %}
|
|
|
|
{% for tag in user_tags %}
|
2021-07-26 17:14:24 +01:00
|
|
|
<a href='#'> #{{ tag }}</a>
|
2021-07-23 19:28:11 +01:00
|
|
|
{% endfor %}
|
|
|
|
{% else %}
|
2021-07-26 17:14:24 +01:00
|
|
|
{{ '(No tags)' | trans }}
|
2021-07-23 19:28:11 +01:00
|
|
|
{% endif %}
|
2021-08-30 21:01:32 +01:00
|
|
|
</nav>
|
2021-07-26 17:14:24 +01:00
|
|
|
|
2021-08-30 21:01:32 +01: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-26 17:14:24 +01:00
|
|
|
|
2021-08-30 21:01:32 +01:00
|
|
|
{# {% for extra in profile_extras %}
|
|
|
|
{% include '/'~ extra.name ~ '/view.html.twig' with {'vars': extra.vars} only %}
|
2021-07-29 20:20:32 +01:00
|
|
|
{% endfor %} #}
|
2021-08-30 21:01:32 +01:00
|
|
|
</section>
|
2021-07-23 19:28:11 +01:00
|
|
|
|
2021-08-30 21:01:32 +01:00
|
|
|
<nav class="profile-navigation">
|
2021-09-07 15:59:19 +01:00
|
|
|
<a href='#' title="{{ 'Check your messages.' | trans }}">Messages</a>
|
2021-08-30 21:01:32 +01:00
|
|
|
<a href="{{ path("replies", {'nickname' : user_nickname}) }}"
|
2021-09-07 15:59:19 +01:00
|
|
|
class='hover-effect {{ active("replies") }}' title="{{ 'Replies to your notes.' | trans }}">Replies</a>
|
2021-08-30 21:01:32 +01:00
|
|
|
{% for link in handle_event('InsertLeftPanelLink', user_nickname) %}
|
|
|
|
{{ link | raw }}
|
|
|
|
{% endfor %}
|
|
|
|
<a href="{{ path('settings') }}"
|
2021-09-07 15:59:19 +01:00
|
|
|
class='{{ active('settings') }}' title="{{ 'Access your account settings.' | trans }}">Settings</a>
|
|
|
|
<a href='{{ path('logout') }}' title="{{ 'Logout from your account.' | trans }}">Logout</a>
|
2021-08-30 21:01:32 +01:00
|
|
|
</nav>
|
2021-07-23 19:28:11 +01:00
|
|
|
|
2021-08-30 21:01:32 +01:00
|
|
|
{% else %}
|
|
|
|
<nav class="profile-navigation">
|
2021-09-07 15:59:19 +01:00
|
|
|
<a href="{{ path('login') }}" class='hover-effect {{ active('login') }}' title="{{ 'Login through your existing account.' | trans }}">Login</a>
|
|
|
|
<a href="{{ path('register') }}" title="{{ 'Register a new account!' | trans }}">Register</a>
|
2021-08-30 21:01:32 +01:00
|
|
|
</nav>
|
|
|
|
{% endif %}
|
2021-07-24 18:16:27 +01:00
|
|
|
|
2021-09-07 16:27:23 +01:00
|
|
|
<div class="timeline-nav">
|
|
|
|
<strong id="timeline-nav-header">Timeline</strong>
|
2021-07-24 18:16:27 +01:00
|
|
|
|
2021-09-07 16:27:23 +01:00
|
|
|
<nav class='sec-nav' role="navigation" title="{{ 'Navigate through the different timelines.' | trans }}">
|
2021-09-07 15:59:19 +01:00
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="{{ path('main_public') }}"
|
|
|
|
class='{{ active('main_public') }}'>Public</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
{% if user_nickname is defined %}
|
|
|
|
<a href="{{ path("home_all", {'nickname' : user_nickname}) }}"
|
|
|
|
class='{{ active("home_all") }}'>Home</a>
|
|
|
|
{% endif %}
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="{{ path('main_all') }}" class='hover-effect {{ active('main_all') }}'>Network</a>
|
|
|
|
</li>
|
2021-07-24 18:16:27 +01:00
|
|
|
|
2021-09-07 15:59:19 +01:00
|
|
|
{% if main_nav_tabs is defined %}
|
|
|
|
{% for tab in main_nav_tabs %}
|
|
|
|
<li>
|
|
|
|
<a href="{{ path(tab['route']) }}"
|
|
|
|
class='{{ active(tab['route']) }}'>{{ tab['title'] }}</a>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
</ul>
|
2021-08-30 21:01:32 +01:00
|
|
|
</nav>
|
2021-08-28 21:23:25 +01:00
|
|
|
</div>
|
2021-09-07 15:59:19 +01:00
|
|
|
|
|
|
|
<footer class="footer">
|
|
|
|
<nav>
|
|
|
|
<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>
|
|
|
|
</nav>
|
|
|
|
</footer>
|
2021-08-28 21:23:25 +01:00
|
|
|
</aside>
|
|
|
|
</div>
|