Skip to content

Commit 0a62586

Browse files
committed
v1.0.14 - Sidebar UPD for Superuser
1 parent a506e97 commit 0a62586

File tree

5 files changed

+26
-48
lines changed

5 files changed

+26
-48
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# CHANGELOG
22

3+
## [1.0.14] 2024-11-28
4+
### Changes
5+
6+
- Update Sidebar
7+
- Guard Superuser Items
8+
39
## [1.0.13] 2024-11-28
410
### Changes
511

admin_datta/templates/includes/head.html

Lines changed: 5 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
<meta charset="utf-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
66
<meta http-equiv="X-UA-Compatible" content="IE=edge">
7-
<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.">
8-
<meta name="keywords" content="Bootstrap admin template, Dashboard UI Kit, Dashboard Template, Backend Panel, react dashboard, angular dashboard">
9-
<meta name="author" content="Codedthemes">
7+
<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.">
8+
<meta name="keywords" content="datta able, django datta able, django theme UI, django admin theme">
9+
<meta name="author" content="App-Generator">
1010

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

34-
gtag('config', 'G-14K1GBX9FG');
34+
gtag('config', 'YOUR_GOOGLE_TAG');
3535
</script>
36-
<!-- WiserNotify -->
37-
<script>
38-
!(function () {
39-
if (window.t4hto4) console.log('WiserNotify pixel installed multiple time in this page');
40-
else {
41-
window.t4hto4 = !0;
42-
var t = document,
43-
e = window,
44-
n = function () {
45-
var e = t.createElement('script');
46-
(e.type = 'text/javascript'),
47-
(e.async = !0),
48-
(e.src = 'https://pt.wisernotify.com/pixel.js?ti=1jclj6jkfc4hhry'),
49-
document.body.appendChild(e);
50-
};
51-
'complete' === t.readyState ? n() : window.attachEvent ? e.attachEvent('onload', n) : e.addEventListener('load', n, !1);
52-
}
53-
})();
54-
</script>
55-
<!-- Microsoft clarity -->
56-
<script type="text/javascript">
57-
(function (c, l, a, r, i, t, y) {
58-
c[a] =
59-
c[a] ||
60-
function () {
61-
(c[a].q = c[a].q || []).push(arguments);
62-
};
63-
t = l.createElement(r);
64-
t.async = 1;
65-
t.src = 'https://www.clarity.ms/tag/' + i;
66-
y = l.getElementsByTagName(r)[0];
67-
y.parentNode.insertBefore(t, y);
68-
})(window, document, 'clarity', 'script', 'gkn6wuhrtb');
69-
</script>

admin_datta/templates/includes/sidebar.html

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010
</a>
1111
</div>
1212
<div class="navbar-content">
13-
<ul class="pc-navbar">
1413

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

1617
{% admin_get_menu as app_list %}
1718
{% if app_list %}
@@ -46,8 +47,9 @@
4647
{% endif %}
4748
{% endfor %}
4849
{% endif %}
49-
50-
50+
51+
<!-- superuser guard -->
52+
{% else %}
5153

5254
<li class="pc-item pc-caption">
5355
<label>Navigation</label>
@@ -169,18 +171,18 @@
169171
<span class="pc-mtext">Sample page</span>
170172
</a>
171173
</li>
172-
174+
175+
{% endif %}
173176
</ul>
174177
<div class="card pc-user-card my-3 bg-white bg-opacity-10">
175178
<div class="card-body text-center">
176179
<img src="{% static "assets/images/application/img-coupon.png" %}" alt="img" class="img-fluid w-50">
177180
<h5 class="mb-0 text-white mt-1">Datta Able</h5>
178-
<p class="text-white">Checkout pro features</p>
179-
<a href="https://codedthemes.com/item/datta-able-bootstrap-admin-template/" target="_blank" class="btn btn-warning">
181+
<a href="https://app-generator.dev/product/datta-able-pro/django/" class="btn btn-warning">
180182
<svg class="pc-icon me-2">
181183
<use xlink:href="#custom-logout-1-outline"></use>
182184
</svg>
183-
Upgrade to Pro
185+
Upgrade to PRO
184186
</a>
185187
</div>
186188
</div>

admin_datta/templates/layouts/base.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66
{% get_admin_setting as admin_setting %}
77
<html lang="en">
88
<head>
9-
<title>{% block title %}{% endblock title %} | Datta able Dashboard Template</title>
9+
10+
<title>{% block title %}{% endblock title %} | Django Datta Able </title>
11+
12+
<link rel="canonical" href="https://app-generator.dev/product/datta-able/django/" />
13+
1014
{% include "includes/head.html" %}
1115
{% block extrastyle %}{% endblock extrastyle %}
1216
{% block extrahead %}{% endblock extrahead %}

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
setup(
1010
name='django-admin-datta',
11-
version='1.0.13',
11+
version='1.0.14',
1212
zip_safe=False,
1313
packages=find_packages(),
1414
include_package_data=True,

0 commit comments

Comments
 (0)