2021-08-29 05:23:25 +09:00
|
|
|
<div class="panel panel-left">
|
|
|
|
<input type="checkbox" id="panel-left-toggle">
|
|
|
|
<label for="panel-left-toggle">{{ icon('menu', 'icon icon-left') | raw }}</label>
|
2021-07-24 03:28:11 +09:00
|
|
|
|
2021-08-29 05:23:25 +09:00
|
|
|
<aside class="panel-content">
|
|
|
|
<nav class='profile-nav'>
|
|
|
|
{% if app.user %}
|
|
|
|
<section class='profile' role="complementary">
|
|
|
|
<div id="profile-links">
|
|
|
|
<a id="user-avatar" href="{{ path('settings') }}">
|
|
|
|
<img src='{{ user_avatar }}' alt="Your avatar." class="icon icon-avatar">
|
|
|
|
</a>
|
2021-07-27 01:14:24 +09:00
|
|
|
|
2021-08-29 05:23:25 +09:00
|
|
|
<span id="user-info">
|
2021-07-30 01:29:25 +09:00
|
|
|
<a id="user-nick" href="{{ path('settings') }}">
|
2021-08-10 02:06:45 +09:00
|
|
|
<h1>{{ user_nickname }}</h1>
|
2021-07-27 01:14:24 +09:00
|
|
|
</a>
|
|
|
|
<div 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 %}
|
|
|
|
</div>
|
2021-07-27 01:14:24 +09:00
|
|
|
</span>
|
2021-08-29 05:23:25 +09:00
|
|
|
</div>
|
2021-07-27 01:14:24 +09:00
|
|
|
|
2021-08-29 05:23:25 +09:00
|
|
|
<section id="stats">
|
|
|
|
<label>{{ 'Followers' | trans }} {{ user_followers }}</label>
|
|
|
|
<label>{{ 'Followed' | trans }} {{ user_followed }}</label>
|
|
|
|
</section>
|
2021-07-27 01:14:24 +09:00
|
|
|
|
2021-08-29 05:23:25 +09:00
|
|
|
{# {% for extra in profile_extras %}
|
2021-07-27 01:14:24 +09:00
|
|
|
{% include '/'~ extra.name ~ '/view.html.twig' with {'vars': extra.vars} only %}
|
2021-07-30 04:20:32 +09:00
|
|
|
{% endfor %} #}
|
2021-08-29 05:23:25 +09:00
|
|
|
</section>
|
2021-07-25 08:14:18 +09:00
|
|
|
|
2021-08-29 05:23:25 +09:00
|
|
|
<nav role="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') }}"
|
|
|
|
class='hover-effect {{ active('settings_') }}'>Settings</a>
|
|
|
|
<a href='{{ path('logout') }}'>Logout</a>
|
|
|
|
</nav>
|
2021-07-25 08:14:18 +09:00
|
|
|
|
2021-08-29 05:23:25 +09:00
|
|
|
{% else %}
|
|
|
|
<nav>
|
|
|
|
<a href="{{ path('login') }}" class='hover-effect {{ active('login') }}'>Login</a>
|
|
|
|
<a href="{{ path('register') }}">Register</a>
|
|
|
|
</nav>
|
|
|
|
{% endif %}
|
2021-07-24 03:28:11 +09:00
|
|
|
|
2021-08-29 05:23:25 +09:00
|
|
|
<div class="timeline-nav" role="menu">
|
|
|
|
<nav>
|
|
|
|
<h1 role="tab">Timeline</h1>
|
2021-07-24 03:28:11 +09:00
|
|
|
|
2021-08-29 05:23:25 +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-29 05:23:25 +09:00
|
|
|
{% if user_nickname is defined %}
|
|
|
|
<a href="{{ path("home_all", {'nickname' : user_nickname}) }}"
|
|
|
|
class='{{ active("home_all") }}'>Home</a>
|
|
|
|
{% endif %}
|
2021-07-25 02:16:27 +09:00
|
|
|
|
2021-08-29 05:23:25 +09:00
|
|
|
<a href="{{ path('main_all') }}" class='hover-effect {{ active('main_all') }}'>Network</a>
|
2021-07-25 02:16:27 +09:00
|
|
|
|
2021-08-29 05:23:25 +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-07-26 23:30:55 +09:00
|
|
|
</nav>
|
|
|
|
|
2021-08-29 05:23:25 +09:00
|
|
|
</div>
|
2021-07-24 03:28:11 +09:00
|
|
|
|
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>
|