Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r75183 - in sandbox/numpy/libs/numpy/doc: _static _templates
From: seefeld_at_[hidden]
Date: 2011-10-30 18:25:35


Author: stefan
Date: 2011-10-30 18:25:34 EDT (Sun, 30 Oct 2011)
New Revision: 75183
URL: http://svn.boost.org/trac/boost/changeset/75183

Log:
Add navigation bar.
Added:
   sandbox/numpy/libs/numpy/doc/_static/home.png (contents, props changed)
   sandbox/numpy/libs/numpy/doc/_static/next.png (contents, props changed)
   sandbox/numpy/libs/numpy/doc/_static/prev.png (contents, props changed)
   sandbox/numpy/libs/numpy/doc/_static/up.png (contents, props changed)
Text files modified:
   sandbox/numpy/libs/numpy/doc/_templates/layout.html | 14 +++++++-------
   1 files changed, 7 insertions(+), 7 deletions(-)

Added: sandbox/numpy/libs/numpy/doc/_static/home.png
==============================================================================
Binary file. No diff available.

Added: sandbox/numpy/libs/numpy/doc/_static/next.png
==============================================================================
Binary file. No diff available.

Added: sandbox/numpy/libs/numpy/doc/_static/prev.png
==============================================================================
Binary file. No diff available.

Added: sandbox/numpy/libs/numpy/doc/_static/up.png
==============================================================================
Binary file. No diff available.

Modified: sandbox/numpy/libs/numpy/doc/_templates/layout.html
==============================================================================
--- sandbox/numpy/libs/numpy/doc/_templates/layout.html (original)
+++ sandbox/numpy/libs/numpy/doc/_templates/layout.html 2011-10-30 18:25:34 EDT (Sun, 30 Oct 2011)
@@ -1,17 +1,17 @@
 {%- macro navbar() %}
- <div class="navbar">
- {%- if parents|count > 2 %}
- {{ parents[1].title }}
+ <div class="navbar" style="text-align:right;">
+ {#%- if parents|count > 0 %#}
+ {#{ parents[1].title }#}
       {%- if prev %}
- <a class="prev" title="{{ prev.title|striptags|e }}" href="{{ prev.link|e }}">prev</a>
+ <a class="prev" title="{{ prev.title|striptags|e }}" href="{{ prev.link|e }}"><img src="{{ pathto('_static/prev.png', 1) }}" alt="prev"/></a>
       {%- endif %}
       {%- if parents %}
- <a class="up" title="{{ parents[-1].title|striptags|e }}" href="{{ parents[-1].link|e }}">up</a>
+ <a class="up" title="{{ parents[-1].title|striptags|e }}" href="{{ parents[-1].link|e }}"><img src="{{ pathto('_static/up.png', 1) }}" alt="up"/></a>
       {%- endif %}
       {%- if next %}
- <a class="next" title="{{ next.title|striptags|e }}" href="{{ next.link|e }}">next</a>
- {%- endif %}
+ <a class="next" title="{{ next.title|striptags|e }}" href="{{ next.link|e }}"><img src="{{ pathto('_static/next.png', 1) }}" alt="next"/></a>
       {%- endif %}
+ {#%- endif %#}
     </div>
 {%- endmacro %}
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk