Skip to content

Commit

Permalink
added a coloration scheme for the efncs list in the base page
Browse files Browse the repository at this point in the history
  • Loading branch information
SDKHISSI authored and SDKHISSI committed Dec 16, 2024
1 parent 02bab93 commit ceeedbc
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 12 deletions.
4 changes: 2 additions & 2 deletions efnc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ spec:
image: docker.io/phpmyadmin/phpmyadmin
env:
- name: PMA_HOST
value: database
value: efnc-database-pod
- name: PMA_ABSOLUTE_URI
value: http://sanclp0031/dappma/
value: http://sanclp0031/efncpma/
volumeMounts:
- mountPath: /etc/phpmyadmin/config.user.inc.php
name: phpmyadmin-config
Expand Down
2 changes: 1 addition & 1 deletion secrets/database_password
Original file line number Diff line number Diff line change
@@ -1 +1 @@
SJlPE57V9jEj0u37qwhs-è_
SJlPE57V9jEj0u37qwhs-è_
2 changes: 1 addition & 1 deletion template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ spec:
image: docker.io/phpmyadmin/phpmyadmin
env:
- name: PMA_HOST
value: database
value: efnc-database-pod
- name: PMA_ABSOLUTE_URI
value: http://${HOSTNAME}/dappma/
volumeMounts:
Expand Down
13 changes: 6 additions & 7 deletions templates/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
class="navbar navbar-expand-lg navbar-dark flex-shrink-0"
style="background-color: #1f3e52">
<div
class="container d-flex flex-column flex-lg-row align-items-end">
class="container d-flex align-items-end">
<a
class="navbar-brand mb-lg-0"
href="{{ path('app_base') }}">
Expand All @@ -56,7 +56,7 @@
</a>
<a
class="navbar-brand mb-lg-0"
href="{{ path('app_base') }}">
href="{{ path('app_base') }} ">
<h1>
<strong>
eFNC
Expand All @@ -65,6 +65,7 @@
</a>
<div
class="ms-auto d-flex align-items-center">

{% if app.user is null %}
<p>
<a
Expand All @@ -77,18 +78,16 @@
<p
class="d-flex align-items-center">
<strong
class="me-2">
{{app.user.username|capitalize|split('.')|first }}
{{app.user.username|upper|split('.')|last }}
class="ms-2 me-2">
{{ app.user.username|capitalize|split('.')|first }}
{{ app.user.username|upper|split('.')|last }}
</strong>
<a
class="btn btn-primary"
href="{{ path('app_logout') }}">
Déconnexion
</a>
</p>
<div
style="width: 10px"></div>
{% endif %}
</div>
</div>
Expand Down
6 changes: 5 additions & 1 deletion templates/services/efnc/display/efnc_list.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@

<div
class="d-flex justify-content-between align-items-center"
style="display: flex;">
{% if EFNC.riskWeighting is not null %} {% if EFNC.riskWeighting.riskPriorityIndex > 300 %} style="display: flex; background-color: #ffcccb;"
{% elseif EFNC.riskWeighting.riskPriorityIndex > 100 %} style="display: flex;background-color: #ffeda6;"
{% else %} style="display: flex; background-color: #c8f7c5;"
{% endif %} style="display: flex;"
{% endif %}>
<div
style="flex: 1; text-align: center;">
{{ EFNC.Title|upper|split('_')|first }}
Expand Down

0 comments on commit ceeedbc

Please sign in to comment.