Skip to content

Commit

Permalink
v1.0.14 - Sidebar UPD for Superuser
Browse files Browse the repository at this point in the history
  • Loading branch information
app-generator committed Nov 28, 2024
1 parent a506e97 commit 0a62586
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 48 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# CHANGELOG

## [1.0.14] 2024-11-28
### Changes

- Update Sidebar
- Guard Superuser Items

## [1.0.13] 2024-11-28
### Changes

Expand Down
44 changes: 5 additions & 39 deletions admin_datta/templates/includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="Datta able is trending dashboard template made using Bootstrap 5 design framework. Datta able is available in Bootstrap, React, CodeIgniter, Angular, and .net Technologies.">
<meta name="keywords" content="Bootstrap admin template, Dashboard UI Kit, Dashboard Template, Backend Panel, react dashboard, angular dashboard">
<meta name="author" content="Codedthemes">
<meta name="description" content="Datta able is trending dashboard template made using Bootstrap 5 design framework and Django, a leading backend framework written in Python.">
<meta name="keywords" content="datta able, django datta able, django theme UI, django admin theme">
<meta name="author" content="App-Generator">

<!-- [Favicon] icon -->
<link rel="icon" href="{% static "assets/images/favicon.svg" %}" type="image/x-icon"> <!-- [Font] Family -->
Expand All @@ -23,47 +23,13 @@
<link rel="stylesheet" href="{% static "assets/css/style.css" %}" id="main-style-link" >
<link rel="stylesheet" href="{% static "assets/css/style-preset.css" %}" >
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-14K1GBX9FG"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=YOUR_GOOGLE_TAG"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());

gtag('config', 'G-14K1GBX9FG');
gtag('config', 'YOUR_GOOGLE_TAG');
</script>
<!-- WiserNotify -->
<script>
!(function () {
if (window.t4hto4) console.log('WiserNotify pixel installed multiple time in this page');
else {
window.t4hto4 = !0;
var t = document,
e = window,
n = function () {
var e = t.createElement('script');
(e.type = 'text/javascript'),
(e.async = !0),
(e.src = 'https://pt.wisernotify.com/pixel.js?ti=1jclj6jkfc4hhry'),
document.body.appendChild(e);
};
'complete' === t.readyState ? n() : window.attachEvent ? e.attachEvent('onload', n) : e.addEventListener('load', n, !1);
}
})();
</script>
<!-- Microsoft clarity -->
<script type="text/javascript">
(function (c, l, a, r, i, t, y) {
c[a] =
c[a] ||
function () {
(c[a].q = c[a].q || []).push(arguments);
};
t = l.createElement(r);
t.async = 1;
t.src = 'https://www.clarity.ms/tag/' + i;
y = l.getElementsByTagName(r)[0];
y.parentNode.insertBefore(t, y);
})(window, document, 'clarity', 'script', 'gkn6wuhrtb');
</script>
16 changes: 9 additions & 7 deletions admin_datta/templates/includes/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
</a>
</div>
<div class="navbar-content">
<ul class="pc-navbar">

<ul class="pc-navbar">
{% if request.user.is_superuser %}

{% admin_get_menu as app_list %}
{% if app_list %}
Expand Down Expand Up @@ -46,8 +47,9 @@
{% endif %}
{% endfor %}
{% endif %}



<!-- superuser guard -->
{% else %}

<li class="pc-item pc-caption">
<label>Navigation</label>
Expand Down Expand Up @@ -169,18 +171,18 @@
<span class="pc-mtext">Sample page</span>
</a>
</li>


{% endif %}
</ul>
<div class="card pc-user-card my-3 bg-white bg-opacity-10">
<div class="card-body text-center">
<img src="{% static "assets/images/application/img-coupon.png" %}" alt="img" class="img-fluid w-50">
<h5 class="mb-0 text-white mt-1">Datta Able</h5>
<p class="text-white">Checkout pro features</p>
<a href="https://codedthemes.com/item/datta-able-bootstrap-admin-template/" target="_blank" class="btn btn-warning">
<a href="https://app-generator.dev/product/datta-able-pro/django/" class="btn btn-warning">
<svg class="pc-icon me-2">
<use xlink:href="#custom-logout-1-outline"></use>
</svg>
Upgrade to Pro
Upgrade to PRO
</a>
</div>
</div>
Expand Down
6 changes: 5 additions & 1 deletion admin_datta/templates/layouts/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
{% get_admin_setting as admin_setting %}
<html lang="en">
<head>
<title>{% block title %}{% endblock title %} | Datta able Dashboard Template</title>

<title>{% block title %}{% endblock title %} | Django Datta Able </title>

<link rel="canonical" href="https://app-generator.dev/product/datta-able/django/" />

{% include "includes/head.html" %}
{% block extrastyle %}{% endblock extrastyle %}
{% block extrahead %}{% endblock extrahead %}
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setup(
name='django-admin-datta',
version='1.0.13',
version='1.0.14',
zip_safe=False,
packages=find_packages(),
include_package_data=True,
Expand Down

0 comments on commit 0a62586

Please sign in to comment.