dockerisation

This commit is contained in:
2023-12-22 13:53:10 +01:00
parent dfb8eb6236
commit cda63eddba
3260 changed files with 14063 additions and 154683 deletions

View File

@ -0,0 +1,4 @@
{% extends "base.html.twig" %}
{% block body %}
{% endblock %}

View File

@ -0,0 +1,32 @@
{% extends "base.html.twig" %}
{% block body %}
{% if wssuse and app.user %}
{{ render(path("app_wss_sample")) }}
{% endif %}
<div class="container">
<div class="card mt-5">
<div class="card-header">
<h2>Atttribut SSO</h2>
</div>
<div class="card-body">
{% for key, attribute in attributes %}
{% if attribute is iterable %}
{% for value in attribute %}
<strong>{{ key }}</strong> = {{ value }}<br>
{% endfor %}
{% else %}
<strong>{{ key }}</strong> = {{ attribute }}<br>
{% endif %}
{% endfor %}
</div>
</div>
</div>
{% endblock %}

View File

@ -0,0 +1,29 @@
{% extends "base.html.twig" %}
{% block body %}
{% if app.user %}
<div class="container">
<div class="card mt-5">
<div class="card-header">
<h2>GITEA USER</h2>
</div>
<div class="card-body">
{% for key, attribute in app.session.get("giteauser") %}
{% if attribute is iterable %}
{% for value in attribute %}
<strong>{{ key }}</strong> = {{ value }}<br>
{% endfor %}
{% else %}
<strong>{{ key }}</strong> = {{ attribute }}<br>
{% endif %}
{% endfor %}
</div>
</div>
</div>
{% endif %}
{% endblock %}

39
templates/Home/login.html.twig Executable file
View File

@ -0,0 +1,39 @@
{% extends "base.html.twig" %}
{% block localstyle %}
label {
color: var(--colorftbodylight);
}
{% endblock %}
{% block body %}
<div style="text-align:center">
<img src="{{ asset("uploads/logo/"~app.session.get('logodark')) }}" style="height:120px;margin-top:10px;">
<h1 style="border:none">{{appName}}</h1>
<form action="{{ path('app_login') }}" method="post">
<div class="card homecard" style="width:400px; margin:auto">
<div class="card-body">
{% if error %}
<div class="alert alert-danger">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
{% endif %}
<label for="username">Login</label>
<input type="text" id="username" name="_username" value="{{ last_username }}" class="form-control" style="margin-bottom:15px;" />
<label for="password">Password</label>
<input type="password" id="password" name="_password" class="form-control" style="margin-bottom:15px;" />
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
<input type="submit" name="login" class="btn btn-success form-control" />
</div>
</div>
</form>
</div>
{% endblock %}
{% block localjavascript %}
$(document).ready(function() {
$("#username").focus();
});
{% endblock %}

View File

@ -0,0 +1,9 @@
{% block subject %}
{{ subject }}
{% endblock %}
{% block body %}
{% autoescape %}
<p>{{ body|raw }}</p>
{% endautoescape %}
{% endblock %}