Use double qoutes for a route name in action and linkTo

This commit is contained in:
Piotr Sarnacki 2013-07-09 13:34:59 +02:00
parent 7350d37e91
commit d1413516eb
17 changed files with 36 additions and 37 deletions

View File

@ -6,6 +6,6 @@
{{else}} {{else}}
<h1>Sign in</h1> <h1>Sign in</h1>
<p> <p>
<a href="#" {{action signIn target="Travis"}}>Please sign in with GitHub.</a> <a href="#" {{action "signIn" target="Travis"}}>Please sign in with GitHub.</a>
</p> </p>
{{/if}} {{/if}}

View File

@ -8,7 +8,7 @@
<span class="status"></span> <span class="status"></span>
{{#if build.id}} {{#if build.id}}
{{#if build.repo.slug}} {{#if build.repo.slug}}
{{#linkTo build repo build}}{{build.number}}{{/linkTo}} {{#linkTo "build" repo build}}{{build.number}}{{/linkTo}}
{{/if}} {{/if}}
{{/if}} {{/if}}
</dd> </dd>

View File

@ -8,7 +8,7 @@
<table id="allowed_failure_jobs" class="list"> <table id="allowed_failure_jobs" class="list">
<caption> <caption>
{{t jobs.allowed_failures}} {{t jobs.allowed_failures}}
<a title="What's this?" class="help open-popup" name="help-allowed_failures" {{action popup target="view"}}></a> <a title="What's this?" class="help open-popup" name="help-allowed_failures" {{action "popup" target="view"}}></a>
</caption> </caption>
{{/if}} {{/if}}
<thead> <thead>
@ -45,7 +45,7 @@
{{#unless view.required}} {{#unless view.required}}
<div id="help-allowed_failures" class="popup"> <div id="help-allowed_failures" class="popup">
<a href="#" class="close" {{action popupClose target="view"}}></a> <a href="#" class="close" {{action "popupClose" target="view"}}></a>
<h4>{{t "jobs.allowed_failures"}}</h4> <h4>{{t "jobs.allowed_failures"}}</h4>
<p> <p>
Allowed Failures are items in your build matrix that are allowed to Allowed Failures are items in your build matrix that are allowed to

View File

@ -1,11 +1,11 @@
<div id="log-container"> <div id="log-container">
<a href="#" id="tail" {{action toggleTailing target="view"}}> <a href="#" id="tail" {{action "toggleTailing" target="view"}}>
<span class="status"></span> <span class="status"></span>
<label>Follow logs</label> <label>Follow logs</label>
</a> </a>
<pre id="log" class="ansi"></pre> <pre id="log" class="ansi"></pre>
<a href='#' class="to-top" {{action toTop target="view"}}>To top</a> <a href='#' class="to-top" {{action "toTop" target="view"}}>To top</a>
{{#if view.job.sponsor.name}} {{#if view.job.sponsor.name}}
<p class="sponsor"> <p class="sponsor">

View File

@ -1,4 +1,4 @@
<a {{action toggle target="view"}}> <a {{action "toggle" target="view"}}>
<span class="slug">{{slug}}</span> ({{jobs.length}}) <span class="slug">{{slug}}</span> ({{jobs.length}})
</a> </a>

View File

@ -7,7 +7,7 @@
<span class="status"></span> <span class="status"></span>
{{#if job.id}} {{#if job.id}}
{{#if job.repo.slug}} {{#if job.repo.slug}}
{{#linkTo job repo job}}{{job.number}}{{/linkTo}} {{#linkTo "job" repo job}}{{job.number}}{{/linkTo}}
{{/if}} {{/if}}
{{/if}} {{/if}}
</dd> </dd>

View File

@ -1,6 +1,6 @@
{{#each flash in controller}} {{#each flash in controller}}
{{#view Travis.FlashItemView flashBinding="flash"}} {{#view Travis.FlashItemView flashBinding="flash"}}
<p>{{{flash.message}}}</p> <p>{{{flash.message}}}</p>
<a class="close" {{action close target="view"}}></a> <a class="close" {{action "close" target="view"}}></a>
{{/view}} {{/view}}
{{/each}} {{/each}}

View File

@ -12,7 +12,7 @@
</div> </div>
<div id="right"> <div id="right">
<div id="slider" {{action toggle target="Travis.slider"}}> <div id="slider" {{action "toggle" target="Travis.slider"}}>
<div class='icon'></div>&nbsp; <div class='icon'></div>&nbsp;
</div> </div>

View File

@ -1,10 +1,10 @@
{{#linkTo index.current}} {{#linkTo "index.current"}}
<h1>Travis</h1> <h1>Travis</h1>
{{/linkTo}} {{/linkTo}}
<ul id="navigation"> <ul id="navigation">
<li class="home"> <li class="home">
{{#linkTo index.current}}{{t layouts.top.home}}{{/linkTo}} {{#linkTo "index.current"}}{{t layouts.top.home}}{{/linkTo}}
</li> </li>
<li> <li>
<a href="http://about.travis-ci.org/blog">{{t layouts.top.blog}}</a> <a href="http://about.travis-ci.org/blog">{{t layouts.top.blog}}</a>
@ -31,7 +31,7 @@
</li> </li>
<li {{bindAttr class="view.classProfile"}}> <li {{bindAttr class="view.classProfile"}}>
<p class="handle"> <p class="handle">
<a class="signed-out" href="#" {{action signIn target="Travis"}}>{{t layouts.top.github_login}}</a> <a class="signed-out" href="#" {{action "signIn" target="Travis"}}>{{t layouts.top.github_login}}</a>
{{#linkTo "profile.index" class="signed-in"}}<img {{bindAttr src="view.gravatarUrl"}}>{{view.userName}}{{/linkTo}} {{#linkTo "profile.index" class="signed-in"}}<img {{bindAttr src="view.gravatarUrl"}}>{{view.userName}}{{/linkTo}}
<span class="signing-in">{{t layouts.top.signing_in}}</span> <span class="signing-in">{{t layouts.top.signing_in}}</span>
</p> </p>
@ -40,7 +40,7 @@
{{#linkTo "profile.index" class="signed-in"}}{{t layouts.top.accounts}}{{/linkTo}} {{#linkTo "profile.index" class="signed-in"}}{{t layouts.top.accounts}}{{/linkTo}}
</li> </li>
<li> <li>
<a href="/" {{action signOut target="Travis"}}>{{t layouts.top.sign_out}}</a> <a href="/" {{action "signOut" target="Travis"}}>{{t layouts.top.sign_out}}</a>
</li> </li>
</ul> </ul>
</li> </li>

View File

@ -10,7 +10,7 @@
{{else}} {{else}}
<p class="message"> <p class="message">
Last synchronized from GitHub: {{formatTime user.syncedAt}} Last synchronized from GitHub: {{formatTime user.syncedAt}}
<a class="sync_now button" {{action sync}}> <a class="sync_now button" {{action "sync"}}>
Sync now Sync now
</a> </a>
</p> </p>
@ -24,7 +24,7 @@
<div class="controls"> <div class="controls">
<a {{bindAttr href="hook.urlGithubAdmin"}} class="github-admin tool-tip" title="Github service hooks admin page"></a> <a {{bindAttr href="hook.urlGithubAdmin"}} class="github-admin tool-tip" title="Github service hooks admin page"></a>
<a {{action toggle hook}} class="switch"> <a {{action "toggle" hook}} class="switch">
{{#if hook.active}} {{#if hook.active}}
ON ON
{{else}} {{else}}

View File

@ -20,7 +20,7 @@
</ul> </ul>
{{#if queue.isMore}} {{#if queue.isMore}}
<a {{action showAll queue}} class="show-more-jobs"> <a {{action "showAll" queue}} class="show-more-jobs">
{{queue.leftLength}} more jobs - show all {{queue.leftLength}} more jobs - show all
</a> </a>
{{/if}} {{/if}}

View File

@ -11,12 +11,12 @@
<div class="slug-and-status"> <div class="slug-and-status">
<span class="status"></span> <span class="status"></span>
{{#if slug}} {{#if slug}}
{{#linkTo repo this class="slug"}}{{slug}}{{/linkTo}} {{#linkTo "repo" this class="slug"}}{{slug}}{{/linkTo}}
{{/if}} {{/if}}
</div> </div>
{{#with lastBuildHash}} {{#with lastBuildHash}}
{{#if repo.slug}} {{#if repo.slug}}
{{#linkTo build repo id class="last_build"}}{{number}}{{/linkTo}} {{#linkTo "build" repo id class="last_build"}}{{number}}{{/linkTo}}
{{/if}} {{/if}}
{{/with}} {{/with}}

View File

@ -1,13 +1,13 @@
<ul class="tabs"> <ul class="tabs">
<li id="tab_owned" {{bindAttr class="view.classOwned"}}> <li id="tab_owned" {{bindAttr class="view.classOwned"}}>
<h5><a {{action activate "owned" target="view"}}>{{t layouts.application.my_repositories}}</a></h5> <h5><a {{action "activate" "owned" target="view"}}>{{t layouts.application.my_repositories}}</a></h5>
</li> </li>
<li id="tab_recent" {{bindAttr class="view.classRecent"}}> <li id="tab_recent" {{bindAttr class="view.classRecent"}}>
<h5><a {{action activate "recent" target="view"}}>{{t layouts.application.recent}}</a></h5> <h5><a {{action "activate" "recent" target="view"}}>{{t layouts.application.recent}}</a></h5>
</li> </li>
<li id="tab_search" {{bindAttr class="view.classSearch"}}> <li id="tab_search" {{bindAttr class="view.classSearch"}}>
<h5><a {{action activate "search" target="view"}}>{{t layouts.application.search}}</a></h5> <h5><a {{action "activate" "search" target="view"}}>{{t layouts.application.search}}</a></h5>
</li> </li>
</ul> </ul>

View File

@ -1,37 +1,37 @@
<div id="tools"> <div id="tools">
<a href="#" {{action menu target="view"}}></a> <a href="#" {{action "menu" target="view"}}></a>
<ul class="menu"> <ul class="menu">
<li> <li>
<a href="#" name="status-images" class="open-popup" {{action statusImages target="view"}}>Status Images</a> <a href="#" name="status-images" class="open-popup" {{action "statusImages" target="view"}}>Status Images</a>
</li> </li>
{{#if view.displayCancelBuild}} {{#if view.displayCancelBuild}}
<li> <li>
<a href="#" {{action cancelBuild target="view"}} <a href="#" {{action "cancelBuild" target="view"}}
{{bindAttr class="view.canCancelBuild::disabled"}}>Cancel Build</a> {{bindAttr class="view.canCancelBuild::disabled"}}>Cancel Build</a>
</li> </li>
{{/if}} {{/if}}
{{#if view.displayCancelJob}} {{#if view.displayCancelJob}}
<li> <li>
<a href="#" {{action cancelJob target="view"}} <a href="#" {{action "cancelJob" target="view"}}
{{bindAttr class="view.canCancelJob::disabled"}}>Cancel Job</a> {{bindAttr class="view.canCancelJob::disabled"}}>Cancel Job</a>
</li> </li>
{{/if}} {{/if}}
{{#if view.displayRequeueBuild}} {{#if view.displayRequeueBuild}}
<li> <li>
<a href="#" {{action requeueBuild target="view"}} <a href="#" {{action "requeueBuild" target="view"}}
{{bindAttr class="view.canRequeueBuild::disabled"}}>Restart Build</a> {{bindAttr class="view.canRequeueBuild::disabled"}}>Restart Build</a>
</li> </li>
{{/if}} {{/if}}
{{#if view.displayRequeueJob}} {{#if view.displayRequeueJob}}
<li> <li>
<a href="#" {{action requeueJob target="view"}} <a href="#" {{action "requeueJob" target="view"}}
{{bindAttr class="view.canRequeueJob::disabled"}}> Restart Job </a> {{bindAttr class="view.canRequeueJob::disabled"}}> Restart Job </a>
</li> </li>
{{/if}} {{/if}}
{{#if view.displayRegenerateKey}} {{#if view.displayRegenerateKey}}
<li> <li>
<a href="#" name="regenerate-key" <a href="#" name="regenerate-key"
{{action regenerateKeyPopup target="view"}} {{action "regenerateKeyPopup" target="view"}}
{{bindAttr class=":open-popup view.canRegenerateKey::disabled"}}> {{bindAttr class=":open-popup view.canRegenerateKey::disabled"}}>
Regenerate Key Regenerate Key
</a> </a>
@ -48,7 +48,7 @@
</div> </div>
<div id="regenerate-key" class="popup"> <div id="regenerate-key" class="popup">
<a href="#" class="close" {{action popupClose target="view"}}></a> <a href="#" class="close" {{action "popupClose" target="view"}}></a>
<p> <p>
Do you really want to regenerate ssl keys for this repository? Please note that Do you really want to regenerate ssl keys for this repository? Please note that
any data, which is encrypted, such as notification services credentials or secure any data, which is encrypted, such as notification services credentials or secure
@ -57,14 +57,14 @@
</p> </p>
<p> <p>
<a class="sync_now button" {{action regenerateKey target="view"}}>Yes! Do it!</a> <a class="sync_now button" {{action "regenerateKey" target="view"}}>Yes! Do it!</a>
<span class="or">or</span> <span class="or">or</span>
<a href="#" class="cancel" {{action popupClose target="view"}}>Cancel</a> <a href="#" class="cancel" {{action "popupClose" target="view"}}>Cancel</a>
</p> </p>
</div> </div>
<div id="regeneration-success" class="popup"> <div id="regeneration-success" class="popup">
<a href="#" class="close" {{action popupClose target="view"}}></a> <a href="#" class="close" {{action "popupClose" target="view"}}></a>
<p> <p>
Key for this repository has been regenerated. If you used previous key Key for this repository has been regenerated. If you used previous key
for encryption, you will need encrypt your data again with the new key. for encryption, you will need encrypt your data again with the new key.

View File

@ -1,4 +1,4 @@
<a href="#" class="close" {{action close target="view"}}></a> <a href="#" class="close" {{action "close" target="view"}}></a>
<p> <p>
<label>{{t repositories.branch}}:</label> <label>{{t repositories.branch}}:</label>
{{#if view.branches.isLoaded}} {{#if view.branches.isLoaded}}

View File

@ -1,10 +1,10 @@
{{#view Travis.WorkersView}} {{#view Travis.WorkersView}}
<a id="toggle-workers" {{action toggleWorkers target="view"}}></a> <a id="toggle-workers" {{action "toggleWorkers" target="view"}}></a>
<ul id="workers"> <ul id="workers">
{{#each group in controller.groups}} {{#each group in controller.groups}}
{{#view Travis.WorkersListView}} {{#view Travis.WorkersListView}}
<li class="group"> <li class="group">
<h5 {{action toggle target="view"}}> <h5 {{action "toggle" target="view"}}>
{{group.firstObject.host}} {{group.firstObject.host}}
</h5> </h5>
<ul> <ul>