fixed everything (mostly)
This commit is contained in:
parent
b3e8ec540a
commit
7600af4845
@ -46,6 +46,8 @@ security:
|
|||||||
access_control:
|
access_control:
|
||||||
# - { path: ^/admin, roles: ROLE_ADMIN }
|
# - { path: ^/admin, roles: ROLE_ADMIN }
|
||||||
- { path: ^/favorites, roles: ROLE_USER }
|
- { path: ^/favorites, roles: ROLE_USER }
|
||||||
|
- { path: ^/search, roles: ROLE_USER }
|
||||||
|
|
||||||
|
|
||||||
when@test:
|
when@test:
|
||||||
security:
|
security:
|
||||||
|
@ -1,7 +1,15 @@
|
|||||||
{% extends 'base.html.twig' %} {% block title %}Welcome to Frutti!{% endblock %}
|
{% extends 'base.html.twig' %} {% block title %}Welcome to Frutti!{% endblock %}
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<main>
|
<main>
|
||||||
|
{% if app.user %}
|
||||||
|
<div>
|
||||||
|
<h1>Welcome to Frutti {{ app.user.userIdentifier }} !</h1>
|
||||||
|
</div>
|
||||||
|
{% else %}
|
||||||
|
<div>
|
||||||
<h1>Welcome to Frutti!</h1>
|
<h1>Welcome to Frutti!</h1>
|
||||||
|
</div>
|
||||||
|
{% endif%}
|
||||||
<p>Frutti is an application to create your own fruit record collection.</p>
|
<p>Frutti is an application to create your own fruit record collection.</p>
|
||||||
<br />
|
<br />
|
||||||
<h2>But what is a fruit record collection? 🤔</h2>
|
<h2>But what is a fruit record collection? 🤔</h2>
|
||||||
@ -17,6 +25,15 @@
|
|||||||
</p>
|
</p>
|
||||||
<br />
|
<br />
|
||||||
<h2>Start your fruit collection today!</h2>
|
<h2>Start your fruit collection today!</h2>
|
||||||
|
{% if app.user %}
|
||||||
|
<a href="/login" title="Click here to browse your favorites"
|
||||||
|
>Check out your favorites</a
|
||||||
|
>
|
||||||
|
or
|
||||||
|
<a href="/search?fruit=🍊&q=Whenever+You+Need+Somebody" title="Click here to browse our selection"
|
||||||
|
>search for new disks</a
|
||||||
|
>.
|
||||||
|
{% else %}
|
||||||
<p>
|
<p>
|
||||||
<a href="/register" title="Click to here to create an account"
|
<a href="/register" title="Click to here to create an account"
|
||||||
>Create an account</a
|
>Create an account</a
|
||||||
@ -26,5 +43,6 @@
|
|||||||
>connect to an existing one</a
|
>connect to an existing one</a
|
||||||
>.
|
>.
|
||||||
</p>
|
</p>
|
||||||
|
{% endif%}
|
||||||
</main>
|
</main>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
Reference in New Issue
Block a user