silverstrap 

silverstrap Commit Details

Date:2013-11-30 17:01:17 (6 years 11 months ago)
Author:Nicola Fontana
Branch:bootstrap2, dev, master, master-1.0, ss3
Commit:745e54bcfd73ca2f6d00ee8814adfb94cfa26819
Parents: b6c39b30e25a9542ae051bb6e6af6a83dc75f78c
Message:Move Autotoc template code on its own

Modularizing the templates should make easier its overriding.
Changes:
Ctemplates/Includes/Content.ss → templates/Includes/Autotoc.ss
Mtemplates/Includes/Content.ss (1 diff)

File differences

templates/Includes/Autotoc.ss
1
2
3
4
5
6
7
<aside class="span3 toc">
<ul class="nav nav-list affix">
<li class="nav-header"><%t Silverstrap.TOC %></li>
<%-- Include only the first level of the TOC --%><% loop $Autotoc.Children %>
<li><a href="#$Id.ATT" data-target="#$Id.ATT">$Title</a></li><% end_loop %>
</ul>
</aside>
templates/Includes/Content.ss
1
2
3
4
5
6
7
8
1
92
103
114
<% if $Autotoc %>
<aside class="span3 toc">
<ul class="nav nav-list affix">
<li class="nav-header"><%t Silverstrap.TOC %></li>
<%-- Include only the first level of the TOC --%><% loop $Autotoc.Children %>
<li><a href="#$Id.ATT" data-target="#$Id.ATT">$Title</a></li><% end_loop %>
</ul>
</aside>
<% if $Autotoc %><% include Autotoc %>
<div class="span9">
<% else %>
<div class="span12">

Archive Download the corresponding diff file