Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jelle van der Waa
Archweb
Commits
0545e3e0
Commit
0545e3e0
authored
Mar 23, 2012
by
Dan McGee
Browse files
Django 1.4 admin and admin media changes
Signed-off-by:
Dan McGee
<
dan@archlinux.org
>
parent
95520ae2
Changes
3
Hide whitespace changes
Inline
Side-by-side
templates/admin/index.html
View file @
0545e3e0
{% extends "admin/base_site.html" %}
{% load i18n %}
{% load i18n
admin_static
%}
{% block extrastyle %}{{ block.super }}
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{%
load adminmedia %}{% admin_media_prefix %}
css/dashboard.css"
/>
{% endblock %}
{% block extrastyle %}{{ block.super }}
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{%
static "
admin
/
css
/
dashboard.css
"
%}"
/>
{% endblock %}
{% block coltype %}colMS{% endblock %}
...
...
@@ -36,19 +36,19 @@
<caption><a
href=
"{{ app.app_url }}"
class=
"section"
>
{% blocktrans with name=app.name %}{{ name }}{% endblocktrans %}
</a></caption>
{% for model in app.models %}
<tr>
{% if model.
perms.change
%}
{% if model.
admin_url
%}
<th
scope=
"row"
><a
href=
"{{ model.admin_url }}"
>
{{ model.name }}
</a></th>
{% else %}
<th
scope=
"row"
>
{{ model.name }}
</th>
{% endif %}
{% if model.
perms.add
%}
{% if model.
add_url
%}
<td><a
href=
"{{ model.add_url }}"
class=
"addlink"
>
{% trans 'Add' %}
</a></td>
{% else %}
<td>
</td>
{% endif %}
{% if model.
perms.change
%}
{% if model.
admin_url
%}
<td><a
href=
"{{ model.admin_url }}"
class=
"changelink"
>
{% trans 'Change' %}
</a></td>
{% else %}
<td>
</td>
...
...
templates/devel/admin_log.html
View file @
0545e3e0
{% extends "admin/base_site.html" %}
{% load i18n %}
{% load i18n
admin_static
%}
{% block extrastyle %}{{ block.super }}
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{%
load adminmedia %}{% admin_media_prefix %}
css/dashboard.css"
/>
{% endblock %}
{% block extrastyle %}{{ block.super }}
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{%
static "
admin
/
css
/
dashboard.css
"
%}"
/>
{% endblock %}
{% block breadcrumbs %}
<div
class=
"breadcrumbs"
><a
href=
"/admin/"
>
{% trans 'Home' %}
</a>
{% if title %}
›
{{ title }}{% endif %}
</div>
{% endblock %}
...
...
templates/packages/search.html
View file @
0545e3e0
{% extends "base.html" %}
{% load package_extras %}
{% load admin
media
%}
{% load admin
_static
%}
{% block title %}Arch Linux - Package Database{% endblock %}
{% block navbarclass %}anb-packages{% endblock %}
{% block head %}
{% if is_paginated and page_obj.number > 1 %}
<meta
name=
"robots"
content=
"noindex, nofollow"
/>
{% endif %}
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{%
admin_media_prefix %}
css/widgets.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{%
static "
admin
/
css
/
widgets.css
"
%}"
/>
{% endblock %}
{% block content %}
...
...
@@ -126,8 +126,12 @@ <h3>Package Search</h3>
title=
"AUR package database"
>
Arch User Repository (AUR).
</a></p>
</div>
{% load cdn %}{% jquery %}
<script
type=
"text/javascript"
src=
"/jsi18n/"
></script>
<script
type=
"text/javascript"
>
window
.
__admin_media_prefix__
=
"
{% filter escapejs %}{% admin_media_prefix %}{% endfilter %}
"
;
</script>
<script
type=
"text/javascript"
src=
"{% admin_media_prefix %}js/core.js"
></script>
<script
type=
"text/javascript"
>
window
.
__admin_media_prefix__
=
"
{% filter escapejs %}{% static
"
admin
/
"
%}{% endfilter %}
"
;
var
django
=
{
"
jQuery
"
:
jQuery
};
</script>
<script
type=
"text/javascript"
src=
"{% static "
admin
/
js
/
core.js
"
%}"
></script>
{{search_form.media}}
{% endblock %}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment