2021-07-24 17:38:57 +01:00
|
|
|
<aside id='left-panel'>
|
2021-07-23 19:28:11 +01:00
|
|
|
<div class='profile-nav'>
|
|
|
|
|
|
|
|
{% if app.user %}
|
|
|
|
<div class='profile'>
|
|
|
|
{% for extra in profile_extras %}
|
|
|
|
{% include '/'~ extra.name ~ '/view.html.twig' with {'vars': extra.vars} only %}
|
|
|
|
{% endfor %}
|
|
|
|
<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">
|
|
|
|
{% if user_tags %}
|
|
|
|
{% for tag in user_tags %}
|
|
|
|
<a href='#'><i> #{{ tag }} </i></a>
|
|
|
|
{% endfor %}
|
|
|
|
{% else %}
|
|
|
|
<i> {{ '(No tags)' | trans }} </i>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
<div class="stats">
|
|
|
|
<span> <b> {{ user_followers }} </b> {{ 'Followers' | trans }} </span>
|
|
|
|
<span> <b> {{ user_followed }} </b> {{ 'Followed' | trans }} </span>
|
2021-07-21 00:17:05 +01:00
|
|
|
</div>
|
2021-07-23 19:28:11 +01:00
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href='#'>Messages</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="{{ path("replies", {'nickname' : user_nickname}) }}"
|
|
|
|
class='hover-effect {{ active("replies") }}'>Replies</a>
|
|
|
|
</li>
|
2021-07-21 00:17:05 +01:00
|
|
|
{% for link in handle_event('InsertLeftPanelLink', user_nickname) %}
|
2021-07-23 19:28:11 +01:00
|
|
|
<li>{{ link | raw }}</li>
|
2021-07-21 00:17:05 +01:00
|
|
|
{% endfor %}
|
2021-07-23 19:28:11 +01:00
|
|
|
<li>
|
|
|
|
<a href="{{ path('settings_personal_info') }}"
|
|
|
|
class='hover-effect {{ active('settings_') }}'>Settings</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href='{{ path('logout') }}'>Logout</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
{% else %}
|
|
|
|
<div class="profile">
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="{{ path('login') }}" class='hover-effect {{ active('login') }}'>Login</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="{{ path('register') }}">Register</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2021-04-30 02:51:03 +01:00
|
|
|
</div>
|
2021-07-23 19:28:11 +01:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<div class="timeline-nav">
|
|
|
|
<a href="{{ path('main_public') }}"
|
|
|
|
class='{{ active('main_public', 'main_all', "home_all") }}'>Timeline</a>
|
|
|
|
<hr>
|
|
|
|
|
|
|
|
<nav class='sec-nav'>
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="{{ path('main_public') }}"
|
|
|
|
class='{{ active('main_public') }}'>Public</a>
|
|
|
|
</li>
|
|
|
|
{% if user_nickname is defined %}
|
|
|
|
<li>
|
|
|
|
<a href="{{ path("home_all", {'nickname' : user_nickname}) }}"
|
|
|
|
class='{{ active("home_all") }}'>Home</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
<li>
|
|
|
|
<a href="{{ path('main_all') }}" class='hover-effect {{ active('main_all') }}'>Network</a>
|
|
|
|
</li>
|
|
|
|
{% 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>
|
|
|
|
</nav>
|
2020-08-15 07:28:47 +01:00
|
|
|
</div>
|
2021-07-23 19:28:11 +01:00
|
|
|
|
2021-07-21 00:17:05 +01:00
|
|
|
</div>
|
2021-07-23 19:28:11 +01:00
|
|
|
|
|
|
|
<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>
|
2021-07-21 00:17:05 +01:00
|
|
|
</div>
|
2021-07-24 17:38:57 +01:00
|
|
|
</aside>
|