2019-01-19 18:26:28 +00:00
|
|
|
{% extends 'layout.html.twig' -%}
|
2015-03-03 20:38:52 +00:00
|
|
|
|
|
|
|
{%- block css -%}
|
|
|
|
{{- parent() -}}
|
2019-01-20 04:11:30 +00:00
|
|
|
<link href="/css/base.css" rel="stylesheet" media="screen">
|
2015-03-03 20:38:52 +00:00
|
|
|
{% endblock %}
|
|
|
|
{% block javascript %}
|
|
|
|
{{- parent() -}}
|
2019-01-20 04:11:30 +00:00
|
|
|
<script src="/js/copypaste.js"></script>
|
2015-03-03 20:38:52 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{%- block header -%}
|
|
|
|
<nav class="navbar navbar-default navbar-fixed-top">
|
|
|
|
<div class="container-fluid">
|
|
|
|
<!-- Brand and toggle get grouped for better mobile display -->
|
|
|
|
<div class="navbar-header">
|
|
|
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
|
|
|
|
<span class="sr-only">Toggle navigation</span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
</button>
|
2019-01-19 18:26:28 +00:00
|
|
|
<a class="navbar-brand" href="{{ path('paste_new') }}">{{ 'header_title' | trans }}</a>
|
2015-03-03 20:38:52 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Collect the nav links, forms, and other content for toggling -->
|
|
|
|
<div class="collapse navbar-collapse">
|
|
|
|
<ul class="nav navbar-nav">
|
|
|
|
{% block header_menu_left_items %}
|
|
|
|
<li{% if app.request.attributes.get('_route') == 'copypaste_new' %} class="active"{% endif %}>
|
2019-01-19 18:26:28 +00:00
|
|
|
<a href="{{ path('paste_new') }}"><span class="glyphicon glyphicon-plus-sign"></span> {{ 'header_menu_add' | trans }}</a>
|
2015-03-03 20:38:52 +00:00
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="{#{{ path('about') }}#}"><span class="glyphicon glyphicon-info-sign"></span> {{ 'header_menu_about' | trans }}</a>
|
|
|
|
</li>
|
|
|
|
{% endblock %}
|
|
|
|
</ul>
|
|
|
|
<ul class="nav navbar-nav navbar-right">
|
|
|
|
{% block header_menu_right_items %}
|
|
|
|
<li><a href="https://bitbucket.org/skobkin/copypaste2/wiki/API" target="_blank">{{ 'header_menu_api' | trans }}</a></li>
|
|
|
|
{% endblock %}
|
|
|
|
</ul>
|
|
|
|
</div><!-- /.navbar-collapse -->
|
|
|
|
</div><!-- /.container-fluid -->
|
|
|
|
</nav>
|
|
|
|
{%- endblock -%}
|
|
|
|
|
|
|
|
{%- block sidebar -%}
|
2019-01-20 01:52:57 +00:00
|
|
|
{{ render(controller('App\\Controller\\PasteController::sidebarAction')) }}
|
2015-03-03 20:38:52 +00:00
|
|
|
{%- endblock -%}
|
|
|
|
|
|
|
|
{% block content %}{% endblock %}
|