Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #16357 - Added navigation buttons to docs footer.

Thanks ncoghlan@ for the suggestion and Markus Magnuson for the patch.
  • Loading branch information...
commit b109f884e1f63c250d3318a0da0e176faa15edfd 1 parent c2c8c21
Tim Graham authored May 31, 2013
1  .gitignore
@@ -3,3 +3,4 @@
3 3
 local_settings.py
4 4
 djangodocs
5 5
 static_root
  6
+djangodocs.index
9  docs/templates/docs/doc.html
@@ -38,7 +38,14 @@
38 38
   </ul>
39 39
   {{ doc.body|safe }}
40 40
 {% endblock %}
41  
-
  41
+<div class="browse-horizontal">
  42
+  {% if doc.prev %}
  43
+    <div class="left"><a href="{{ doc.prev.link }}">&laquo; {{ doc.prev.title|safe }}</a></div>
  44
+  {% endif %}
  45
+  {% if doc.next %}
  46
+    <div class="right"><a href="{{ doc.next.link }}">{{ doc.next.title|safe }} &raquo;</a></div>
  47
+  {% endif %}
  48
+</div>
42 49
 <div id="content-secondary">
43 50
   <h2 id="comments">Questions/Feedback</h2>
44 51
   <p>Having trouble? We'd like to help!</p>
21  static/css/base.css
@@ -37,7 +37,8 @@ a:link, a:visited {
37 37
     color:#ab5603;
38 38
     text-decoration:underline;
39 39
 }
40  
-#content-secondary a:link, #content-secondary a:visited {
  40
+#content-secondary a:link, #content-secondary a:visited,
  41
+#content-main .browse-horizontal a:link, #content-main .browse-horizontal a:visited {
41 42
     color:#ffc757;
42 43
     text-decoration:none;
43 44
 }
@@ -49,7 +50,8 @@ a:hover {
49 50
     color:#234f32;
50 51
     text-decoration:none;
51 52
 }
52  
-#content-secondary a:hover {
  53
+#content-secondary a:hover,
  54
+#content-main .browse-horizontal a:hover {
53 55
     color:#ffe761;
54 56
     background:none;
55 57
 }
@@ -166,7 +168,6 @@ a:hover {
166 168
     background:#487858;
167 169
     margin-left:0;
168 170
     margin-right:0;
169  
-    margin-top:15px;
170 171
     margin-bottom:-10px;
171 172
     padding:10px 24px;
172 173
     color:white;
@@ -179,6 +180,20 @@ a:hover {
179 180
 .subcol-primary {
180 181
     margin-right:1%;
181 182
 }
  183
+#content-main .browse-horizontal {
  184
+    background-color:#234f32;
  185
+    color:white;
  186
+    margin:1.5em 0 0 0;
  187
+    padding:1em 24px 1em 22px;
  188
+    overflow:hidden;
  189
+    line-height:1;
  190
+}
  191
+.browse-horizontal .left {
  192
+    float:left;
  193
+}
  194
+.browse-horizontal .right {
  195
+    float:right;
  196
+}
182 197
 
183 198
 /* CONTENT */
184 199
 

0 notes on commit b109f88

Please sign in to comment.
Something went wrong with that request. Please try again.