2021-08-21 07:05:54 +01:00
|
|
|
<aside id='left-panel' role="region" tabindex="-1">
|
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-19 20:37:16 +01:00
|
|
|
<section class='profile' role="complementary">
|
2021-08-09 18:06:45 +01:00
|
|
|
<div 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-08-09 18:06:45 +01:00
|
|
|
<h1>{{ user_nickname }}</h1>
|
2021-07-26 17:14:24 +01:00
|
|
|
</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>
|
2021-08-09 18:06:45 +01:00
|
|
|
</div>
|
2021-07-26 17:14:24 +01:00
|
|
|
|
2021-08-19 20:37:16 +01:00
|
|
|
<section id="stats">
|
|
|
|
<label>{{ 'Followers' | trans }} {{ user_followers }}</label>
|
|
|
|
<label>{{ 'Followed' | trans }} {{ user_followed }}</label>
|
|
|
|
</section>
|
2021-07-26 17:14:24 +01:00
|
|
|
|
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
|
|
|
|
2021-08-19 20:37:16 +01:00
|
|
|
<nav role="navigation">
|
2021-07-25 00:14:18 +01:00
|
|
|
<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 %}
|
|
|
|
|
2021-08-19 20:37:16 +01:00
|
|
|
<div class="timeline-nav" role="menu">
|
2021-07-26 15:30:55 +01:00
|
|
|
<nav>
|
2021-08-19 20:37:16 +01:00
|
|
|
<h1 role="tab">Timeline</h1>
|
2021-07-23 19:28:11 +01:00
|
|
|
|
2021-08-19 20:37:16 +01:00
|
|
|
<nav class='sec-nav' role="navigation">
|
2021-07-26 15:30:55 +01:00
|
|
|
<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
|
|
|
|
2021-08-19 20:37:16 +01:00
|
|
|
<div class="footer" role="contentinfo">
|
2021-07-23 19:28:11 +01:00
|
|
|
<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>
|