aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Henstridge <james@jamesh.id.au>2008-08-22 17:58:48 +0800
committerJames Henstridge <james@jamesh.id.au>2008-08-22 17:58:48 +0800
commit447f741d9ed0b115470304b3d3ad5f1032351763 (patch)
treea8c6d8785b55bd70f7cd0f05f913ad7deea625ee
parentcee9327608215cd940c8dc0d14269bc847d7556b (diff)
Fix up the OpenID logo thingee again.
-rw-r--r--django_openid_auth/templates/openid/login.html2
-rw-r--r--django_openid_auth/urls.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/django_openid_auth/templates/openid/login.html b/django_openid_auth/templates/openid/login.html
index e765733..7169377 100644
--- a/django_openid_auth/templates/openid/login.html
+++ b/django_openid_auth/templates/openid/login.html
@@ -7,7 +7,7 @@
<title>Sign in with your OpenID</title>
<style type="text/css">
input.openid {
- background: url({{ logo }}) no-repeat;
+ background: url({% url openid-logo %}) no-repeat;
background-position: 0 50%;
padding-left: 16px;
}
diff --git a/django_openid_auth/urls.py b/django_openid_auth/urls.py
index a8b4ba7..a12cee3 100644
--- a/django_openid_auth/urls.py
+++ b/django_openid_auth/urls.py
@@ -1,6 +1,7 @@
-from django.conf.urls.defaults import patterns
+from django.conf.urls.defaults import *
urlpatterns = patterns('django_openid_auth.views',
(r'^login$', 'login_begin'),
(r'^complete$', 'login_complete'),
+ url(r'^logo$', 'logo', name='openid-logo'),
)