templates/project/app/home/views/index/index.html in volt-0.7.4 vs templates/project/app/home/views/index/index.html in volt-0.7.5
- old
+ new
@@ -1,29 +1,29 @@
<:Title>
- {#template params._controller.or('home') + '/' + params._action.or(''), "title"}
+ {#template params._controller.or('index') + '/' + params._action.or('home'), "title"}
<:Body>
<div class="container">
<div class="header">
<ul class="nav nav-pills pull-right">
- <:nav controller="" text="Home" />
- <:nav controller="about" text="About" />
+ <:nav action="" text="Home" />
+ <:nav action="about" text="About" />
</ul>
<h3 class="text-muted">Project name</h3>
</div>
<:volt:notices />
- {#template params._controller.or('home') + '/' + params._action.or('')}
+ {#template params._controller.or('index') + '/' + params._action.or('home')}
<div class="footer">
<p>© Company 2014</p>
</div>
</div>
<:Nav>
- <li class="{#if params._controller.or('') == @controller}active{/}">
- <a href="/{@controller}">{@text}</a>
+ <li class="{#if params._action.or('') == @action}active{/}">
+ <a href="/{@action}">{@text}</a>
</li>