Skip to content

Commit

Permalink
refactor: sidebar control (ems-project#736)
Browse files Browse the repository at this point in the history
  • Loading branch information
theus77 authored Jan 30, 2024
1 parent 8fc9884 commit d38196f
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@
<source>elements.user-image.anonymous</source>
<target>Anonymous user</target>
</trans-unit>
<trans-unit id="8ZArGEQ" resname="sidebar.tab.home.label">
<source>sidebar.tab.home.label</source>
<target>Recent Activities</target>
</trans-unit>
<trans-unit id="9VXm7JM" resname="sidebar.tab.jobs.label">
<source>sidebar.tab.jobs.label</source>
<target>Last commands</target>
</trans-unit>
</body>
</file>
</xliff>
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
</div>

{{ include('@EMSAdminUI/bootstrap5/elements/footer.html.twig') }}
{{ include('@EMSAdminUI/bootstrap5/elements/control-sidebar.html.twig') }}
</div>
{% endapply %}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,31 @@
{%- trans_default_domain 'elements' -%}

<aside class="control-sidebar control-sidebar-dark">
<ul class="nav nav-tabs" id="custom-tabs-two-tab" role="tablist">
<li class="nav-item">
<a title="{{ 'sidebar.tab.home.label'|trans|e('html_attr') }}" class="nav-link active" id="control-sidebar-home-tab-label" data-bs-toggle="pill" href="#" data-bs-target="#control-sidebar-home-tab" role="tab" aria-controls="control-sidebar-home-tab" aria-selected="true">
<i class="fa fa-home"></i><span class="visually-hidden">{{ 'sidebar.tab.home.label'|trans }}</span>
</a>
</li>
<li class="nav-item">
<a title="{{ 'sidebar.tab.jobs.label'|trans|e('html_attr') }}" class="nav-link" id="control-sidebar-jobs-tab-label" data-bs-toggle="pill" href="#" data-bs-target="#control-sidebar-jobs-tab" role="tab" aria-controls="control-sidebar-jobs-tab" aria-selected="false">
<i class="fa fa-terminal"></i><span class="visually-hidden">{{ 'sidebar.tab.jobs.label'|trans }}</span>
</a>
</li>
</ul>
<div class="tab-content" id="control-sidebar-tab-content">
<div class="tab-pane fade dark show active" id="control-sidebar-home-tab" role="tabpanel" aria-labelledby="control-sidebar-home-tab-label">
<h3 class="control-sidebar-heading h4">{{ 'sidebar.tab.home.label'|trans }}</h3>
</div>
<div class="tab-pane fade dark" id="control-sidebar-jobs-tab" role="tabpanel" aria-labelledby="custom-tabs-two-profile-label">
<h3 class="control-sidebar-heading h4">{{ 'sidebar.tab.jobs.label'|trans }}</h3>
<ul class="control-sidebar-menu" id="commands-log">
{% if app.user %}
{{ render(controller('EMS\\CoreBundle\\Controller\\TwigElementsController::jobs', {
'username' : app.user.username
} ) ) }}
{% endif %}
</ul>
</div>
</div>
</aside>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{%- trans_default_domain 'emsco-core' -%}

<footer class="main-footer">
<footer class="main-footer no-print"">
<a href="https://elasticms.fgov.be/" target="_blank">elastic<strong>MS</strong></a>
<div class="float-end d-none d-sm-inline-block">
{{ 'core.version'|trans({ '%core%': ems_version('core'), '%symfony%': ems_version('symfony') }) }}
Expand Down

0 comments on commit d38196f

Please sign in to comment.