forked from schallis/django-bigbluebutton
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
209 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{% extends "admin/index.html" %} | ||
{% load i18n %} | ||
|
||
{% if not is_popup %} | ||
|
||
{% block breadcrumbs %} | ||
<div class="breadcrumbs"><a href="../"> | ||
{% trans "Home" %}</a> › | ||
{% for app in app_list %} | ||
{% trans app.name %} | ||
{% endfor %}</div>{% endblock %} | ||
|
||
{% endif %} | ||
|
||
{% block sidebar %}{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{% extends "admin/base.html" %} | ||
{% load i18n %} | ||
|
||
{% block title %}{{ title }} | {% trans 'Django bbb site admin' %}{% endblock %} | ||
|
||
{% block branding %} | ||
<h1 id="site-name">{% trans 'Django bbb administration' %}</h1> | ||
{% endblock %} | ||
|
||
{% block nav-global %}{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
{% extends "admin/base_site.html" %} | ||
{% load adminmedia admin_list i18n %} | ||
{% load url from future %} | ||
{% block extrastyle %} | ||
{{ block.super }} | ||
<link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/changelists.css" /> | ||
{% if cl.formset %} | ||
<link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/forms.css" /> | ||
{% endif %} | ||
{% if cl.formset or action_form %} | ||
{% url 'admin:jsi18n' as jsi18nurl %} | ||
<script type="text/javascript" src="{{ jsi18nurl|default:'../../jsi18n/' }}"></script> | ||
{% endif %} | ||
{{ media.css }} | ||
{% if not actions_on_top and not actions_on_bottom %} | ||
<style> | ||
#changelist table thead th:first-child {width: inherit} | ||
</style> | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% block extrahead %} | ||
{{ block.super }} | ||
{{ media.js }} | ||
{% if action_form %}{% if actions_on_top or actions_on_bottom %} | ||
<script type="text/javascript"> | ||
(function($) { | ||
$(document).ready(function($) { | ||
$("tr input.action-select").actions(); | ||
}); | ||
})(django.jQuery); | ||
</script> | ||
{% endif %}{% endif %} | ||
{% endblock %} | ||
|
||
{% block bodyclass %}change-list{% endblock %} | ||
|
||
{% if not is_popup %} | ||
{% block breadcrumbs %} | ||
<div class="breadcrumbs"> | ||
<a href="../../"> | ||
{% trans "Home" %} | ||
</a> | ||
› | ||
<a href="../"> | ||
{% trans app_label %} | ||
</a> | ||
› | ||
{{ cl.opts.verbose_name_plural|capfirst }} | ||
</div> | ||
{% endblock %} | ||
{% endif %} | ||
|
||
{% block coltype %}flex{% endblock %} | ||
|
||
{% block content %} | ||
<div id="content-main"> | ||
{% block object-tools %} | ||
{% if has_add_permission %} | ||
<ul class="object-tools"> | ||
{% block object-tools-items %} | ||
<li> | ||
<a href="add/{% if is_popup %}?_popup=1{% endif %}" class="addlink"> | ||
{% blocktrans with cl.opts.verbose_name as name %}Add {{ name }}{% endblocktrans %} | ||
</a> | ||
</li> | ||
{% endblock %} | ||
</ul> | ||
{% endif %} | ||
{% endblock %} | ||
{% if cl.formset.errors %} | ||
<p class="errornote"> | ||
{% blocktrans count cl.formset.errors|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %} | ||
</p> | ||
{{ cl.formset.non_form_errors }} | ||
{% endif %} | ||
<div class="module{% if cl.has_filters %} filtered{% endif %}" id="changelist"> | ||
{% block search %}{% search_form cl %}{% endblock %} | ||
{% block date_hierarchy %}{% date_hierarchy cl %}{% endblock %} | ||
|
||
{% block filters %} | ||
{% if cl.has_filters %} | ||
<div id="changelist-filter"> | ||
<h2>{% trans 'Filter' %}</h2> | ||
{% for spec in cl.filter_specs %}{% admin_list_filter cl spec %}{% endfor %} | ||
</div> | ||
{% endif %} | ||
{% endblock %} | ||
|
||
<form id="changelist-form" action="" method="post"{% if cl.formset.is_multipart %} enctype="multipart/form-data"{% endif %}>{% csrf_token %} | ||
{% if cl.formset %} | ||
<div>{{ cl.formset.management_form }}</div> | ||
{% endif %} | ||
|
||
{% block result_list %} | ||
{% if action_form and actions_on_top and cl.full_result_count %}{% admin_actions %}{% endif %} | ||
{% result_list cl %} | ||
{% if action_form and actions_on_bottom and cl.full_result_count %}{% admin_actions %}{% endif %} | ||
{% endblock %} | ||
{% block pagination %}{% pagination cl %}{% endblock %} | ||
</form> | ||
</div> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
{% extends "admin/base_site.html" %} | ||
{% load i18n %} | ||
|
||
{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% load adminmedia %}{% admin_media_prefix %}css/dashboard.css" />{% endblock %} | ||
|
||
{% block coltype %}colMS{% endblock %} | ||
|
||
{% block bodyclass %}dashboard{% endblock %} | ||
|
||
{% block breadcrumbs %}{% endblock %} | ||
|
||
{% block content %} | ||
<div id="content-main"> | ||
|
||
{% if app_list %} | ||
{% for app in app_list %} | ||
<div class="module"> | ||
<table summary="{% blocktrans with app.name as name %}Models available in the {{ name }} application.{% endblocktrans %}"> | ||
<caption><a href="{{ app.app_url }}" class="section">{% trans app.name %}</a></caption> | ||
{% for model in app.models %} | ||
<tr> | ||
{% if model.perms.change %} | ||
<th scope="row"><a href="{{ model.admin_url }}">{% trans model.name %}</a></th> | ||
{% else %} | ||
<th scope="row">{% trans model.name %}</th> | ||
{% endif %} | ||
|
||
{% if model.perms.add %} | ||
<td><a href="{{ model.admin_url }}add/" class="addlink">{% trans 'Add' %}</a></td> | ||
{% else %} | ||
<td> </td> | ||
{% endif %} | ||
|
||
{% if model.perms.change %} | ||
<td><a href="{{ model.admin_url }}" class="changelink">{% trans 'Change' %}</a></td> | ||
{% else %} | ||
<td> </td> | ||
{% endif %} | ||
</tr> | ||
{% endfor %} | ||
</table> | ||
</div> | ||
{% endfor %} | ||
{% else %} | ||
<p>{% trans "You don't have permission to edit anything." %}</p> | ||
{% endif %} | ||
</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 or not entry.get_admin_url %} | ||
{{ 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 %} |