mirror of
https://github.com/Hopiu/django-rosetta.git
synced 2026-05-22 11:21:55 +00:00
fix admin urls for static files in django 1.5
This commit is contained in:
parent
5cbd6e6ca2
commit
7d9e0c5918
2 changed files with 6 additions and 6 deletions
|
|
@ -1,12 +1,12 @@
|
|||
<!DOCTYPE html>{% load url from future %}
|
||||
<!DOCTYPE html>{% load url from future %}{% load admin_static %}
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<title>{% block pagetitle %}Rosetta{% endblock %}</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
<link rel="stylesheet" href="{{ADMIN_MEDIA_PREFIX}}css/base.css" type="text/css"/>
|
||||
<link rel="stylesheet" href="{{ADMIN_MEDIA_PREFIX}}css/forms.css" type="text/css"/>
|
||||
<link rel="stylesheet" href="{{ADMIN_MEDIA_PREFIX}}css/changelists.css" type="text/css"/>
|
||||
<link rel="stylesheet" href="{% static "admin/css/base.css" %}" type="text/css"/>
|
||||
<link rel="stylesheet" href="{% static "admin/css/forms.css" %}" type="text/css"/>
|
||||
<link rel="stylesheet" href="{% static "admin/css/changelists.css" %}" type="text/css"/>
|
||||
<style type="text/css" media="screen">
|
||||
{% include 'rosetta/css/rosetta.css' %}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{% extends "rosetta/base.html" %}
|
||||
{% extends "rosetta/base.html" %}{% load admin_static %}
|
||||
{% load rosetta i18n %}
|
||||
{% load url from future %}
|
||||
|
||||
|
|
@ -43,7 +43,7 @@
|
|||
<form id="changelist-search" action="" method="post">
|
||||
<div><!-- DIV needed for valid HTML -->
|
||||
{% rosetta_csrf_token %}
|
||||
<label for="searchbar"><img src="{{ADMIN_IMAGE_DIR}}/icon_searchbox.png" alt="{% trans "Search" %}" /></label>
|
||||
<label for="searchbar"><img src="{% static "admin/img/icon_searchbox.png" %}" alt="{% trans "Search" %}" /></label>
|
||||
<input type="text" size="40" name="query" value="{% if query %}{{query}}{% endif %}" id="searchbar" tabindex="0" />
|
||||
<input type="submit" name="search" value="{% trans "Go" %}" />
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue