Expand navbar with protection
This commit is contained in:
parent
22735cf884
commit
ccab49dd3c
1
.gitignore
vendored
1
.gitignore
vendored
@ -8,3 +8,4 @@
|
|||||||
/var/
|
/var/
|
||||||
/vendor/
|
/vendor/
|
||||||
###< symfony/framework-bundle ###
|
###< symfony/framework-bundle ###
|
||||||
|
release.json
|
||||||
|
@ -24,7 +24,7 @@ set('allow_anonymous_stats', false);
|
|||||||
host('snips.loken.nl')
|
host('snips.loken.nl')
|
||||||
->setRemoteUser('www-data')
|
->setRemoteUser('www-data')
|
||||||
->set('branch', function () {
|
->set('branch', function () {
|
||||||
return input()->getOption('branch') ?: 'develop';
|
return input()->getOption('branch') ?: 'main';
|
||||||
})
|
})
|
||||||
->set('deploy_path', '~/snips.loken.nl');
|
->set('deploy_path', '~/snips.loken.nl');
|
||||||
|
|
||||||
|
@ -11,9 +11,15 @@
|
|||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" href="{{ path('home') }}">Home</a>
|
<a class="nav-link" href="{{ path('home') }}">Home</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
{% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" href="{{ path('snip_index') }}">My snips</a>
|
<a class="nav-link" href="{{ path('snip_index') }}">My snips</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link" href="{{ path('snip_new') }}">New snip</a>
|
||||||
|
</li>
|
||||||
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
<ul class="navbar-nav my-2 my-lg-0">
|
<ul class="navbar-nav my-2 my-lg-0">
|
||||||
{% if app.environment == 'dev' %}
|
{% if app.environment == 'dev' %}
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
{% extends 'base/base.html.twig' %}
|
{% extends 'base/base.html.twig' %}
|
||||||
|
|
||||||
{% block title %}My snippets{% endblock %}
|
{% block title %}My snips{% endblock %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<h1>My snippets</h1>
|
<h1>My snips</h1>
|
||||||
<a class="btn btn-success" href="{{ path('snip_new') }}">
|
<a class="btn btn-success" href="{{ path('snip_new') }}">
|
||||||
<i class="fa fa-plus"></i> Add
|
<i class="fa fa-plus"></i> Add
|
||||||
</a><br><br>
|
</a><br><br>
|
||||||
|
Loading…
Reference in New Issue
Block a user