django_fhadmin 1.4.0
pip install django_fhadmin==1.4.0
Released:
Modifies the stock Django-Administration interface to fit our ideas a little bit better.
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: BSD License
- Author: Matthias Kestenholz
Project description
Modifies the stock Django-Administration interface to fit our ideas a little bit better.
Dashboard and global navigation extension
Allows grouping of apps on the dashboard and offers the same view on each admin page by sliding down the bar on top after a small delay when hovered.
Configuration example:
from fhadmin import FHADMIN_GROUPS_REMAINING _ = lambda x: x FHADMIN_GROUPS_CONFIG = [ (_('Main content'), { 'apps': ('page', 'medialibrary', 'blog'), }), (_('Modules'), { 'apps': ('links', FHADMIN_GROUPS_REMAINING), }), (_('Preferences'), { 'apps': ('auth', 'rosetta', 'external', 'sites'), }), ]
The extension is activated by overriding both admin/base_site.html for the slide-down navigation and admin/index.html for the dashboard, and adding fhadmin to INSTALLED_APPS so that the template tags and static files are found. The following two templates are contained in fhadmin/templates/admin as well.
admin/base_site.html:
{% extends "admin/base.html" %} {% load i18n %} {% block extrahead %} <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}fhadmin/fhadmin.css" /> {% endblock %} {% block title %}{{ title }} | {% trans 'Django administration' %}{% endblock %} {% block branding %} <h1 id="site-name">{% trans 'Django administration' %}</h1> {% endblock %} {% block nav-global %} <div id="quickpanel"> {% include "admin/group_list.html" %} <br style="clear:both" /> </div> {% endblock %}
admin/index.html:
{% extends "admin/base_site.html" %} {% load i18n admin_static %} {% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% static "admin/css/dashboard.css" %}" />{% endblock %} {% block coltype %}colMS{% endblock %} {% block bodyclass %}dashboard{% endblock %} {% block breadcrumbs %}{% endblock %} {% block content %} <div id="content-main"> {% include "admin/group_list.html" %} <br style="clear:left" /> </div> {% endblock %} {% block sidebar %} <div id="content-related"> <div class="module" id="recent-actions-module"> <h2>{% trans 'Recent Actions' %}</h2> <h3>{% trans 'My Actions' %}</h3> {% load log %} {% get_admin_log 10 as admin_log for_user user %} {% if not admin_log %} <p>{% trans 'None available' %}</p> {% else %} <ul class="actionlist"> {% for entry in admin_log %} <li class="{% if entry.is_addition %}addlink{% endif %}{% if entry.is_change %}changelink{% endif %}{% if entry.is_deletion %}deletelink{% endif %}"> {% if entry.is_deletion %} {{ entry.object_repr }} {% else %} <a href="{{ entry.get_admin_url }}">{{ entry.object_repr }}</a> {% endif %} <br/> {% if entry.content_type %} <span class="mini quiet">{% filter capfirst %}{% trans entry.content_type.name %}{% endfilter %}</span> {% else %} <span class="mini quiet">{% trans 'Unknown content' %}</span> {% endif %} </li> {% endfor %} </ul> {% endif %} </div> </div> {% endblock %}
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: BSD License
- Author: Matthias Kestenholz
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django-fhadmin-1.4.0.tar.gz
.
File metadata
- Download URL: django-fhadmin-1.4.0.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/2.7.15rc1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9796882cf59fd56aff0792ce7d41bde03acff961d940c4aa3a12016997969d9 |
|
MD5 | ac17b4455a6d0a83afd553f532df0267 |
|
BLAKE2b-256 | ca552979ef96c4a928f742723746f0dfb3004fb2d25590e97e3fbad4cdc1d870 |
File details
Details for the file django_fhadmin-1.4.0-py2-none-any.whl
.
File metadata
- Download URL: django_fhadmin-1.4.0-py2-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/2.7.15rc1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 194dde91e004a3b3ce90d8f4f698e4d9c8a9891f4cbb51034c6f872aeef0e5d1 |
|
MD5 | 1a0cf19f24e33cb04330177d6e26c0fc |
|
BLAKE2b-256 | 90c3d520b004857979826beb49b2e54f62746faa0836b504af3acc6aeb6d7466 |