2022-02-07 06:37:04 +09:00
|
|
|
{% block feeds %}
|
|
|
|
{% from 'cards/macros/widgets.html.twig' import section, details %}
|
|
|
|
|
|
|
|
{% set prepend %}
|
|
|
|
<h2 class="section-title">Account</h2>
|
|
|
|
{% endset %}
|
|
|
|
|
|
|
|
{% set main %}
|
|
|
|
{% set classes = {'details': 'section-details-title', 'summary': 'details-summary-title'} %}
|
|
|
|
|
|
|
|
{% set summary %}
|
2022-03-01 20:27:19 +09:00
|
|
|
<span>{% trans %}Feeds{% endtrans %}</span>
|
2022-02-07 06:37:04 +09:00
|
|
|
{% if app.user %}
|
|
|
|
{# User custom feeds #}
|
|
|
|
<a class="edit-feed-link" href="{{ path('edit_feeds') }}">{{ icon('edit', 'icon icon-edit-feed') | raw }}</a>
|
|
|
|
{% endif %}
|
|
|
|
{% endset %}
|
|
|
|
|
|
|
|
{% set expanded %}
|
2022-03-01 20:27:19 +09:00
|
|
|
<nav class="frame-section-padding" tabindex="0" title="{% trans %}Navigate through each feed{% endtrans %}">
|
2022-02-07 06:37:04 +09:00
|
|
|
{% if not app.user %} {# Default feeds #}
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="{{ path('feed_public') }}" class='hover-effect {{ active('feed_public') }}'>
|
2022-03-01 20:27:19 +09:00
|
|
|
{% trans %}Feed{% endtrans %}
|
2022-02-07 06:37:04 +09:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
{% else %}
|
|
|
|
<ul>
|
|
|
|
{% for link in get_feeds(current_actor) %}
|
|
|
|
<li>
|
|
|
|
<a href="{{ link.getUrl() }}" class='{{ active(link.getRoute()) }}'>{{ link.getTitle() }}</a>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
{% for link in handle_event('AddMainNavigationItem', {'nickname': current_actor.getNickname()}) %}
|
|
|
|
<li>
|
|
|
|
<a href="{{ link['path'] }}" class='{{ active(link['path_id']) }}'>
|
|
|
|
{{ link['title'] }}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
</nav>
|
|
|
|
{% endset %}
|
|
|
|
|
|
|
|
{% set blocks = {'summary': { summary }, 'main': { expanded }} %}
|
|
|
|
|
|
|
|
{{ details(blocks, classes) }}
|
|
|
|
{% endset %}
|
|
|
|
|
|
|
|
{% set classes = {'section': 'frame-section'} %}
|
|
|
|
{% set title = 'Navigate through feeds' %}
|
|
|
|
{% set blocks = {'prepend': {}, 'main': { main }, 'append': {}} %}
|
|
|
|
{{ section(title, blocks, classes) }}
|
|
|
|
{% endblock feeds %}
|
|
|
|
|
|
|
|
{% block profile_current_actor %}
|
2022-03-01 20:27:19 +09:00
|
|
|
<nav tabindex="0" class="profile-navigation" title="{% trans %}Navigate through account related pages{% endtrans %}">
|
|
|
|
<a title="{% trans %}Access your account settings{% endtrans %}" href="{{ path('person_actor_settings', {id: app.user.getId()}) }}" class='{{ active('settings') }}'>
|
2022-02-07 06:37:04 +09:00
|
|
|
{% trans %}Settings{% endtrans %}
|
|
|
|
</a>
|
|
|
|
|
2022-03-01 20:27:19 +09:00
|
|
|
<a title="{% trans %}Logout from your account{% endtrans %}" href='{{ path('security_logout') }}'>
|
2022-02-07 06:37:04 +09:00
|
|
|
{% trans %}Logout{% endtrans %}
|
|
|
|
</a>
|
|
|
|
</nav>
|
|
|
|
{% endblock profile_current_actor %}
|
|
|
|
|
|
|
|
{% block profile_security %}
|
|
|
|
{% from 'cards/macros/widgets.html.twig' import section, nav_a %}
|
|
|
|
|
|
|
|
{% set prepend %}
|
|
|
|
<h2 class="section-title">Account</h2>
|
|
|
|
{% endset %}
|
|
|
|
|
|
|
|
{% set main %}
|
|
|
|
{% set nav = {'classes': 'profile-navigation', 'title': 'Navigate through account related pages', 'tabindex': '0'} %}
|
|
|
|
{% set items = [
|
|
|
|
{'route': 'security_login', 'classes': active('security_login'), 'title': 'Login with your existing account', 'name': 'Login' },
|
|
|
|
{'route': 'security_register', 'classes': active('security_register'), 'title': 'Register a new account!', 'name': 'Register' }
|
|
|
|
]%}
|
|
|
|
{{ nav_a(nav, items) }}
|
|
|
|
{% endset %}
|
|
|
|
|
|
|
|
{% set classes = {'section': 'frame-section frame-section-padding'} %}
|
|
|
|
{% set title = 'Profile information' %}
|
|
|
|
{% set blocks = {'prepend': { prepend }, 'main': { main }, 'append': {}} %}
|
|
|
|
{{ section(title, blocks, classes) }}
|
|
|
|
{% endblock profile_security %}
|
|
|
|
|
|
|
|
{% block footer %}
|
|
|
|
{% from 'cards/macros/widgets.html.twig' import nav_ul_li_a %}
|
|
|
|
|
|
|
|
{% set nav = {'classes': 'footer', 'title': 'Footer conatining instance FAQ, TOS, and additional info'} %}
|
|
|
|
{% set items = [
|
|
|
|
{'route': 'doc_faq', 'classes': active('doc_faq'), 'title': 'FAQ', 'name': 'FAQ'},
|
|
|
|
{'route': 'doc_tos', 'classes': active('doc_tos'), 'title': 'TOS', 'name': 'TOS'},
|
|
|
|
{'route': 'doc_privacy', 'classes': active('doc_privacy'), 'title': 'Privacy', 'name': 'Privacy'},
|
|
|
|
{'route': 'doc_source', 'classes': active('doc_source'), 'title': 'Source', 'name': 'Source'},
|
|
|
|
{'route': 'doc_version', 'classes': active('doc_version'), 'title': 'Version', 'name': 'Version'}
|
|
|
|
]%}
|
|
|
|
|
|
|
|
{{ nav_ul_li_a(nav, items) }}
|
|
|
|
{% endblock footer %}
|