init
This commit is contained in:
17
templates/base.html.twig
Normal file
17
templates/base.html.twig
Normal file
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{% block title %}Welcome!{% endblock %}</title>
|
||||
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text><text y=%221.3em%22 x=%220.2em%22 font-size=%2276%22 fill=%22%23fff%22>sf</text></svg>">
|
||||
{% block stylesheets %}
|
||||
{% endblock %}
|
||||
|
||||
{% block javascripts %}
|
||||
{% block importmap %}{{ importmap('app') }}{% endblock %}
|
||||
{% endblock %}
|
||||
</head>
|
||||
<body>
|
||||
{% block body %}{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
18
templates/branch/show.html.twig
Normal file
18
templates/branch/show.html.twig
Normal file
@@ -0,0 +1,18 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}{{ branch.name }}{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>{{ branch.name }}</h1>
|
||||
|
||||
<div class="list">
|
||||
{% for message in branch.messages %}
|
||||
<span class="block">
|
||||
{{ message.text }}
|
||||
</span>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<h2>{% trans %}words.message{% endtrans %}</h2>
|
||||
{{ form(create_message_form) }}
|
||||
{% endblock %}
|
||||
17
templates/theme/index.html.twig
Normal file
17
templates/theme/index.html.twig
Normal file
@@ -0,0 +1,17 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}{% trans %}titles.themes{% endtrans %}{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
|
||||
<h1>{% trans %}titles.themes{% endtrans %}</h1>
|
||||
<ul>
|
||||
{% for theme in themes %}
|
||||
<li>
|
||||
<a href="{{ path('theme', { id: theme.id }) }}">
|
||||
{{ theme.name }}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock %}
|
||||
13
templates/theme/show.html.twig
Normal file
13
templates/theme/show.html.twig
Normal file
@@ -0,0 +1,13 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}{% trans %}titles.theme{% endtrans %} {{ theme.name }}{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>{{ theme.name }}</h1>
|
||||
|
||||
<ul>
|
||||
{% for branch in theme.branches %}
|
||||
<li><a href="{{ path('branch', { id: branch.id }) }}">{{ branch.name }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user