22f394f28f
Signed-off-by: Eliseu Amaro <mail@eliseuama.ro>
80 lines
2.6 KiB
Twig
80 lines
2.6 KiB
Twig
{% extends 'stdgrid.html.twig' %}
|
|
|
|
{% block meta %}
|
|
{{ parent() }}
|
|
{% endblock %}
|
|
|
|
{% block title %}Welcome!{% endblock %}
|
|
|
|
{% block stylesheets %}
|
|
{{ parent() }}
|
|
<link rel='stylesheet' type='text/css' href="{{ asset('assets/css/network/public.css') }}">
|
|
{% endblock %}
|
|
|
|
{% block header %}
|
|
{{ parent() }}
|
|
{% endblock %}
|
|
|
|
{% block left %}
|
|
{{ parent() }}
|
|
{% endblock %}
|
|
|
|
{% block body %}
|
|
|
|
<div class="content">
|
|
|
|
<div class="navigation">
|
|
<nav class='main-nav'>
|
|
<ul>
|
|
<li>
|
|
<a href="{{ path('main_public') }}"
|
|
class='{{ active('main_public', 'main_all', "home_all") }}'>Timeline</a>
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
|
|
<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>
|
|
</div>
|
|
|
|
{# Backwards compatibility with hAtom 0.1 #}
|
|
<div class="h-feed hfeed timeline">
|
|
<div class="notes">
|
|
{% if notes is defined and notes is not empty %}
|
|
{% for conversation in notes %}
|
|
{% include '/note/view.html.twig' with {'note': conversation['note'], 'have_user': have_user, 'replies': conversation['replies']} only %}
|
|
{% endfor %}
|
|
{% else %}
|
|
<div id="empty-notes"><h1>{% trans %}No notes here.{% endtrans %}</h1></div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
{% endblock body %}
|
|
|
|
{% block javascripts %}{% endblock %}
|