Skip to content

Commit

Permalink
update thème argon norme
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkIncognito85 committed Nov 30, 2022
1 parent 5f2793d commit 842da74
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 2 deletions.
27 changes: 27 additions & 0 deletions Theme/Argon/Views/Auth/menu.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{% if logs is not empty %}
<div class="col-md-12 col-sm-12">

<div class="card">
<div class="card-body">
<div class="row">
<div class="timeline timeline-one-side" data-timeline-axis-style="dotted">
{% for row in logs %}
<div class="timeline-block mb-3">
<span class="timeline-step">
<i class="fas fa-sign-out-alt text-danger text-gradient"></i>
</span>
<div class="timeline-content">
<h6 class="text-dark text-sm font-weight-bold mb-0">{{ row.createdAt | ago }}</h6>
<p class="text-secondary font-weight-bold text-xs mt-1 mb-0">{{ row.createdAt.format("h:m") }}</p>
<p class="text-sm mt-3 mb-2">
{{ row.localization }}
</p>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
</div>
{% endif %}
1 change: 1 addition & 0 deletions Theme/Argon/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
return 'mt-2';
})),

//'bootstrapv5' => true,
'theme_primary' => \ClientX\setting("theme_primary"),
'argon_theme' => \ClientX\setting("argon_theme", "none"),
'argon_default' => \ClientX\setting("argon_default", "light"),
Expand Down
2 changes: 1 addition & 1 deletion Theme/Argon/includes/header.twig
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<div class="form-check form-switch ps-0 ms-auto my-auto">
<input class="form-check-input mt-1 ms-auto" type="checkbox" id="dark-version" onclick="darkMode(this)" {{ config('argon_default') == 'dark' and request().CookieParams.theme == 'dark' ? 'checked' : '' }} {{ config('argon_default') == 'dark' and request().CookieParams.theme == null ? 'checked' : '' }}>
</div>
<h6 class="mb-0" style="margin-left:20px;">Dark mode</h6>
<h6 class="mb-0" style="margin-left:20px;">{{ trans("admin.themes.dark") }}</h6>
</div>
</div>
{% else %}
Expand Down
3 changes: 2 additions & 1 deletion Theme/Argon/layout.twig
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{% set mail_messages = mail_messages() %}

{% include "includes/head.twig" with {title: block('title') | html_decode} %}
<body class="argon g-sidenav-show boostrapv5 d-flex flex-column h-100">
<body class="argon g-sidenav-show boostrapv5 d-flex flex-column h-100 ">

{% include "includes/header.twig" with {title: block('title') | html_decode} %}

<div class="container-fluid py-4">
Expand Down

0 comments on commit 842da74

Please sign in to comment.