Commits

Steve Losh  committed 1cf0baa

Add a link to the admin interface.

  • Participants
  • Parent commits b3b2fc1

Comments (0)

Files changed (2)

File site-media/styles/tinpan.css

     margin: 1.5em auto 3em;
     width: 800px;
 }
-h1#header {
-    margin: 1em auto 0em;
+div#header {
+    margin: 3em auto 0em;
     width: 800px;
 }
+h1#header-text {
+}
+h1#admin-link {
+    float: right;
+    font-weight: normal;
+    font-family: "Helvetica Neue Light", HelveticaNeue-Light, "Helvetica Neue", Helvetica, Arial, sans-serif;
+}
 div#footer {
     margin: -3em auto;
     width: 800px;
 }
 
 /* Header link styles. */
-h1#header a:link, h1#header a:visited, h1#header a:active {
+h1 a:link, h1 a:visited, h1 a:active {
     color: inherit;
     text-decoration: none;
 }
-h1#header a:hover {
+h1 a:hover {
     color: #33a;
     text-decoration: none;
 }

File templates/base.html

     
     
     <body>
-        <h1 id="header"><a href="{% url overview %}">tinpan</a>
-            {% block header %}{% endblock header %}</h1>
+        <div id="header">
+            <h1 id="admin-link"><a href="/admin/">admin</a></h1>
+            <h1 id="header-text"><a href="{% url overview %}">tinpan</a>
+                {% block header %}{% endblock header %}</h1>
+        </div>
         <div id="content">
             {% block content %}
                 Nothing here yet.