mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Added templatetag to only display enabled apps
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
{% load installed %}
|
||||
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
||||
<html lang="en">
|
||||
<head>
|
||||
@@ -17,7 +19,9 @@
|
||||
<li><a href="/">Home</a></li>
|
||||
{% if request.user %}
|
||||
<li><a href="/profile">Profile</a></li>
|
||||
{% if "hr"|installed %}
|
||||
<li><a href="/hr/">HR</a></li>
|
||||
{% endif %}
|
||||
<li><a href="/profile/characters">Characters</a></li>
|
||||
{% if request.user.is_staff %}
|
||||
<li><a href="/users">Lookup User</a></li>
|
||||
|
||||
Reference in New Issue
Block a user