Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use the action helpers in templates

  • Loading branch information...
commit a894fee400e05e164264e2090fca7c703f7f42c2 1 parent 030995c
@larzconwell larzconwell authored
View
4 templates/base/realtime/views/ejs/layouts/application.html.ejs
@@ -34,10 +34,10 @@
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="i-bar"><i class="icon-chevron-down icon-white"></i></span>
</a>
- <%- linkTo('Geddy App', '/', {class: 'brand'}) %>
+ <%- linkTo('Geddy App', mainsPath, {class: 'brand'}) %>
<div class="nav-collapse">
<ul class="nav">
- <li class="active"><%- linkTo('Home', '/') %></li>
+ <li class="active"><%- linkTo('Home', mainsPath) %></li>
<li><%- linkTo('Tutorial', 'http://geddyjs.org/tutorial') %></li>
<li><%- linkTo('Docs', 'http://geddyjs.org/documentation') %></li>
</ul>
View
4 templates/base/realtime/views/handlebars/layouts/application.html.hbs
@@ -34,10 +34,10 @@
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="i-bar"><i class="icon-chevron-down icon-white"></i></span>
</a>
- <a class="brand" href="/">Geddy App</a>
+ <a class="brand" href="{{mainsPath}}">Geddy App</a>
<div class="nav-collapse">
<ul class="nav">
- <li class="active">{{{linkTo 'Home' '/'}}}</li>
+ <li class="active">{{{linkTo 'Home' mainsPath}}}</li>
<li>{{{linkTo 'Tutorial' 'http://geddyjs.org/tutorial'}}}</li>
<li>{{{linkTo 'Docs' 'http://geddyjs.org/documentation'}}}</li>
</ul>
View
4 templates/base/realtime/views/jade/layouts/application.html.jade
@@ -33,11 +33,11 @@ html(lang="en")
a.btn.btn-navbar(data-toggle="collapse", data-target=".nav-collapse")
span.i-bar
i.icon-chevron-down.icon-white
- != linkTo('Geddy App', '/', { class: 'brand' })
+ != linkTo('Geddy App', mainsPath, { class: 'brand' })
.nav-collapse
ul.nav
li.active
- != linkTo('Home', '/')
+ != linkTo('Home', mainsPath)
li
!= linkTo('Tutorial', 'http://geddyjs.org/tutorial')
li
View
4 templates/base/realtime/views/mustache/layouts/application.html.hbs
@@ -34,10 +34,10 @@
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="i-bar"><i class="icon-chevron-down icon-white"></i></span>
</a>
- <a class="brand" href="/">Geddy App</a>
+ <a class="brand" href="{{mainsPath}}">Geddy App</a>
<div class="nav-collapse">
<ul class="nav">
- <li class="active">{{{linkTo 'Home' '/'}}}</li>
+ <li class="active">{{{linkTo 'Home' mainsPath}}}</li>
<li>{{{linkTo 'Tutorial' 'http://geddyjs.org/tutorial'}}}</li>
<li>{{{linkTo 'Docs' 'http://geddyjs.org/documentation'}}}</li>
</ul>
View
4 templates/base/views/ejs/layouts/application.html.ejs
@@ -35,10 +35,10 @@
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="i-bar"><i class="icon-chevron-down icon-white"></i></span>
</a>
- <%- linkTo('Geddy App', '/', {class: 'brand'}) %>
+ <%- linkTo('Geddy App', mainsPath, {class: 'brand'}) %>
<div class="nav-collapse">
<ul class="nav">
- <li class="active"><%- linkTo('Home', '/') %></li>
+ <li class="active"><%- linkTo('Home', mainsPath) %></li>
<li><%- linkTo('Tutorial', 'http://geddyjs.org/tutorial') %></li>
<li><%- linkTo('Docs', 'http://geddyjs.org/documentation') %></li>
</ul>
View
4 templates/base/views/handlebars/layouts/application.html.hbs
@@ -35,10 +35,10 @@
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="i-bar"><i class="icon-chevron-down icon-white"></i></span>
</a>
- <a class="brand" href="/">Geddy App</a>
+ <a class="brand" href="{{mainsPath}}">Geddy App</a>
<div class="nav-collapse">
<ul class="nav">
- <li class="active">{{{linkTo 'Home' '/'}}}</li>
+ <li class="active">{{{linkTo 'Home' mainsPath}}}</li>
<li>{{{linkTo 'Tutorial' 'http://geddyjs.org/tutorial'}}}</li>
<li>{{{linkTo 'Docs' 'http://geddyjs.org/documentation'}}}</li>
</ul>
View
4 templates/base/views/jade/layouts/application.html.jade
@@ -34,11 +34,11 @@ html(lang="en")
a.btn.btn-navbar(data-toggle="collapse", data-target=".nav-collapse")
span.i-bar
i.icon-chevron-down.icon-white
- != linkTo('Geddy App', '/', { class: 'brand' })
+ != linkTo('Geddy App', mainsPath, { class: 'brand' })
.nav-collapse
ul.nav
li.active
- != linkTo('Home', '/')
+ != linkTo('Home', mainsPath)
li
!= linkTo('Tutorial', 'http://geddyjs.org/tutorial')
li
View
4 templates/base/views/mustache/layouts/application.html.hbs
@@ -35,10 +35,10 @@
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="i-bar"><i class="icon-chevron-down icon-white"></i></span>
</a>
- <a class="brand" href="/">Geddy App</a>
+ <a class="brand" href="{{mainsPath}}">Geddy App</a>
<div class="nav-collapse">
<ul class="nav">
- <li class="active">{{{linkTo 'Home' '/'}}}</li>
+ <li class="active">{{{linkTo 'Home' mainsPath}}}</li>
<li>{{{linkTo 'Tutorial' 'http://geddyjs.org/tutorial'}}}</li>
<li>{{{linkTo 'Docs' 'http://geddyjs.org/documentation'}}}</li>
</ul>
Please sign in to comment.
Something went wrong with that request. Please try again.