2021-07-24 17:38:57 +01:00
|
|
|
<aside id='left-panel'>
|
2021-07-26 17:14:24 +01:00
|
|
|
<nav class='profile-nav'>
|
2021-07-23 19:28:11 +01:00
|
|
|
|
|
|
|
{% if app.user %}
|
2021-08-04 21:12:59 +01:00
|
|
|
<section class='profile'>
|
2021-07-26 17:14:24 +01:00
|
|
|
<section id="profile-links">
|
2021-07-29 17:29:25 +01:00
|
|
|
<a id="user-avatar" href="{{ path('settings') }}">
|
2021-07-26 17:14:24 +01:00
|
|
|
<img src='{{ user_avatar }}' alt="Your avatar." class="icon icon-avatar">
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<span id="user-info">
|
2021-07-29 17:29:25 +01:00
|
|
|
<a id="user-nick" href="{{ path('settings') }}">
|
2021-07-26 17:14:24 +01:00
|
|
|
<h2>{{ user_nickname }}</h2>
|
|
|
|
</a>
|
|
|
|
<div 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 %}
|
|
|
|
</div>
|
2021-07-26 17:14:24 +01:00
|
|
|
</span>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<span id="stats">
|
|
|
|
<h2>{{ 'Followers' | trans }} {{ user_followers }}</h2>
|
|
|
|
<h2>{{ 'Followed' | trans }} {{ user_followed }}</h2>
|
|
|
|
</span>
|
|
|
|
|
2021-07-29 20:20:32 +01:00
|
|
|
{# {% for extra in profile_extras %}
|
2021-07-26 17:14:24 +01:00
|
|
|
{% include '/'~ extra.name ~ '/view.html.twig' with {'vars': extra.vars} only %}
|
2021-07-29 20:20:32 +01:00
|
|
|
{% endfor %} #}
|
2021-07-26 17:14:24 +01:00
|
|
|
</section>
|
2021-07-25 00:14:18 +01:00
|
|
|
|
|
|
|
<nav>
|
|
|
|
<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 %}
|
2021-07-29 17:29:25 +01:00
|
|
|
<a href="{{ path('settings') }}"
|
2021-07-25 00:14:18 +01:00
|
|
|
class='hover-effect {{ active('settings_') }}'>Settings</a>
|
|
|
|
<a href='{{ path('logout') }}'>Logout</a>
|
|
|
|
</nav>
|
|
|
|
|
2021-07-23 19:28:11 +01:00
|
|
|
{% else %}
|
2021-07-26 15:30:55 +01:00
|
|
|
<nav>
|
|
|
|
<a href="{{ path('login') }}" class='hover-effect {{ active('login') }}'>Login</a>
|
|
|
|
<a href="{{ path('register') }}">Register</a>
|
|
|
|
</nav>
|
2021-07-23 19:28:11 +01:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<div class="timeline-nav">
|
2021-07-26 15:30:55 +01:00
|
|
|
<nav>
|
2021-07-25 00:14:18 +01:00
|
|
|
<a href="{{ path('main_public') }}"
|
|
|
|
class='{{ active('main_public', 'main_all', "home_all") }}'>Timeline</a>
|
|
|
|
|
2021-07-26 15:30:55 +01:00
|
|
|
<hr>
|
2021-07-23 19:28:11 +01:00
|
|
|
|
2021-07-26 15:30:55 +01:00
|
|
|
<nav class='sec-nav'>
|
|
|
|
<a href="{{ path('main_public') }}"
|
|
|
|
class='{{ active('main_public') }}'>Public</a>
|
2021-07-24 18:16:27 +01:00
|
|
|
|
2021-07-26 15:30:55 +01:00
|
|
|
{% if user_nickname is defined %}
|
|
|
|
<a href="{{ path("home_all", {'nickname' : user_nickname}) }}"
|
|
|
|
class='{{ active("home_all") }}'>Home</a>
|
|
|
|
{% endif %}
|
2021-07-24 18:16:27 +01:00
|
|
|
|
2021-07-26 15:30:55 +01:00
|
|
|
<a href="{{ path('main_all') }}" class='hover-effect {{ active('main_all') }}'>Network</a>
|
2021-07-24 18:16:27 +01:00
|
|
|
|
2021-07-26 15:30:55 +01: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-07-23 19:28:11 +01:00
|
|
|
</nav>
|
2021-07-26 15:30:55 +01:00
|
|
|
|
2020-08-15 07:28:47 +01:00
|
|
|
</div>
|
2021-07-23 19:28:11 +01:00
|
|
|
|
2021-07-26 17:14:24 +01:00
|
|
|
</nav>
|
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>
|