mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2026-01-31 11:36:18 +00:00
split base template in multiple files
This commit is contained in:
31
templates/template_parts/base_content_header.html
Normal file
31
templates/template_parts/base_content_header.html
Normal file
@@ -0,0 +1,31 @@
|
||||
{% load i18n %}
|
||||
<!-- Content Header (Page header) -->
|
||||
<div class="content-header">
|
||||
<div class="container-fluid">
|
||||
{% if page_title %}
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1 class="m-0">{{ page_title }}</h1>
|
||||
</div><!-- /.col -->
|
||||
<div class="col-sm-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="/">Home</a></li>
|
||||
{% if breadcrumb %}
|
||||
<li class="breadcrumb-item active">
|
||||
{% if breadcrumb.level2.href %}
|
||||
<a href="{{ breadcrumb.level2.href }}">{{ breadcrumb.level2.title }}</a>
|
||||
{% else %}
|
||||
{{ breadcrumb.level2.title }}
|
||||
{% endif %}
|
||||
</li>
|
||||
|
||||
{% endif %}
|
||||
|
||||
<li class="breadcrumb-item active">{{ page_title }}</li>
|
||||
</ol>
|
||||
</div><!-- /.col -->
|
||||
</div><!-- /.row -->
|
||||
{% endif %}
|
||||
</div><!-- /.container-fluid -->
|
||||
</div>
|
||||
<!-- /.content-header -->
|
||||
Reference in New Issue
Block a user