Use double qoutes for a route name in action and linkTo
This commit is contained in:
parent
7350d37e91
commit
d1413516eb
|
@ -6,6 +6,6 @@
|
|||
{{else}}
|
||||
<h1>Sign in</h1>
|
||||
<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>
|
||||
{{/if}}
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<span class="status"></span>
|
||||
{{#if build.id}}
|
||||
{{#if build.repo.slug}}
|
||||
{{#linkTo build repo build}}{{build.number}}{{/linkTo}}
|
||||
{{#linkTo "build" repo build}}{{build.number}}{{/linkTo}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</dd>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<table id="allowed_failure_jobs" class="list">
|
||||
<caption>
|
||||
{{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>
|
||||
{{/if}}
|
||||
<thead>
|
||||
|
@ -45,7 +45,7 @@
|
|||
|
||||
{{#unless view.required}}
|
||||
<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>
|
||||
<p>
|
||||
Allowed Failures are items in your build matrix that are allowed to
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
<div id="log-container">
|
||||
<a href="#" id="tail" {{action toggleTailing target="view"}}>
|
||||
<a href="#" id="tail" {{action "toggleTailing" target="view"}}>
|
||||
<span class="status"></span>
|
||||
<label>Follow logs</label>
|
||||
</a>
|
||||
<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}}
|
||||
<p class="sponsor">
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<a {{action toggle target="view"}}>
|
||||
<a {{action "toggle" target="view"}}>
|
||||
<span class="slug">{{slug}}</span> ({{jobs.length}})
|
||||
</a>
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<span class="status"></span>
|
||||
{{#if job.id}}
|
||||
{{#if job.repo.slug}}
|
||||
{{#linkTo job repo job}}{{job.number}}{{/linkTo}}
|
||||
{{#linkTo "job" repo job}}{{job.number}}{{/linkTo}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</dd>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{{#each flash in controller}}
|
||||
{{#view Travis.FlashItemView flashBinding="flash"}}
|
||||
<p>{{{flash.message}}}</p>
|
||||
<a class="close" {{action close target="view"}}></a>
|
||||
<a class="close" {{action "close" target="view"}}></a>
|
||||
{{/view}}
|
||||
{{/each}}
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
</div>
|
||||
|
||||
<div id="right">
|
||||
<div id="slider" {{action toggle target="Travis.slider"}}>
|
||||
<div id="slider" {{action "toggle" target="Travis.slider"}}>
|
||||
<div class='icon'></div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
{{#linkTo index.current}}
|
||||
{{#linkTo "index.current"}}
|
||||
<h1>Travis</h1>
|
||||
{{/linkTo}}
|
||||
|
||||
<ul id="navigation">
|
||||
<li class="home">
|
||||
{{#linkTo index.current}}{{t layouts.top.home}}{{/linkTo}}
|
||||
{{#linkTo "index.current"}}{{t layouts.top.home}}{{/linkTo}}
|
||||
</li>
|
||||
<li>
|
||||
<a href="http://about.travis-ci.org/blog">{{t layouts.top.blog}}</a>
|
||||
|
@ -31,7 +31,7 @@
|
|||
</li>
|
||||
<li {{bindAttr class="view.classProfile"}}>
|
||||
<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}}
|
||||
<span class="signing-in">{{t layouts.top.signing_in}}</span>
|
||||
</p>
|
||||
|
@ -40,7 +40,7 @@
|
|||
{{#linkTo "profile.index" class="signed-in"}}{{t layouts.top.accounts}}{{/linkTo}}
|
||||
</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>
|
||||
</ul>
|
||||
</li>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
{{else}}
|
||||
<p class="message">
|
||||
Last synchronized from GitHub: {{formatTime user.syncedAt}}
|
||||
<a class="sync_now button" {{action sync}}>
|
||||
<a class="sync_now button" {{action "sync"}}>
|
||||
Sync now
|
||||
</a>
|
||||
</p>
|
||||
|
@ -24,7 +24,7 @@
|
|||
|
||||
<div class="controls">
|
||||
<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}}
|
||||
ON
|
||||
{{else}}
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
</ul>
|
||||
|
||||
{{#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
|
||||
</a>
|
||||
{{/if}}
|
||||
|
|
|
@ -11,12 +11,12 @@
|
|||
<div class="slug-and-status">
|
||||
<span class="status"></span>
|
||||
{{#if slug}}
|
||||
{{#linkTo repo this class="slug"}}{{slug}}{{/linkTo}}
|
||||
{{#linkTo "repo" this class="slug"}}{{slug}}{{/linkTo}}
|
||||
{{/if}}
|
||||
</div>
|
||||
{{#with lastBuildHash}}
|
||||
{{#if repo.slug}}
|
||||
{{#linkTo build repo id class="last_build"}}{{number}}{{/linkTo}}
|
||||
{{#linkTo "build" repo id class="last_build"}}{{number}}{{/linkTo}}
|
||||
{{/if}}
|
||||
{{/with}}
|
||||
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
<ul class="tabs">
|
||||
<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 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 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>
|
||||
</ul>
|
||||
|
|
|
@ -1,37 +1,37 @@
|
|||
<div id="tools">
|
||||
<a href="#" {{action menu target="view"}}></a>
|
||||
<a href="#" {{action "menu" target="view"}}></a>
|
||||
<ul class="menu">
|
||||
<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>
|
||||
{{#if view.displayCancelBuild}}
|
||||
<li>
|
||||
<a href="#" {{action cancelBuild target="view"}}
|
||||
<a href="#" {{action "cancelBuild" target="view"}}
|
||||
{{bindAttr class="view.canCancelBuild::disabled"}}>Cancel Build</a>
|
||||
</li>
|
||||
{{/if}}
|
||||
{{#if view.displayCancelJob}}
|
||||
<li>
|
||||
<a href="#" {{action cancelJob target="view"}}
|
||||
<a href="#" {{action "cancelJob" target="view"}}
|
||||
{{bindAttr class="view.canCancelJob::disabled"}}>Cancel Job</a>
|
||||
</li>
|
||||
{{/if}}
|
||||
{{#if view.displayRequeueBuild}}
|
||||
<li>
|
||||
<a href="#" {{action requeueBuild target="view"}}
|
||||
<a href="#" {{action "requeueBuild" target="view"}}
|
||||
{{bindAttr class="view.canRequeueBuild::disabled"}}>Restart Build</a>
|
||||
</li>
|
||||
{{/if}}
|
||||
{{#if view.displayRequeueJob}}
|
||||
<li>
|
||||
<a href="#" {{action requeueJob target="view"}}
|
||||
<a href="#" {{action "requeueJob" target="view"}}
|
||||
{{bindAttr class="view.canRequeueJob::disabled"}}> Restart Job </a>
|
||||
</li>
|
||||
{{/if}}
|
||||
{{#if view.displayRegenerateKey}}
|
||||
<li>
|
||||
<a href="#" name="regenerate-key"
|
||||
{{action regenerateKeyPopup target="view"}}
|
||||
{{action "regenerateKeyPopup" target="view"}}
|
||||
{{bindAttr class=":open-popup view.canRegenerateKey::disabled"}}>
|
||||
Regenerate Key
|
||||
</a>
|
||||
|
@ -48,7 +48,7 @@
|
|||
</div>
|
||||
|
||||
<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>
|
||||
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
|
||||
|
@ -57,14 +57,14 @@
|
|||
</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>
|
||||
<a href="#" class="cancel" {{action popupClose target="view"}}>Cancel</a>
|
||||
<a href="#" class="cancel" {{action "popupClose" target="view"}}>Cancel</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<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>
|
||||
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.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<a href="#" class="close" {{action close target="view"}}></a>
|
||||
<a href="#" class="close" {{action "close" target="view"}}></a>
|
||||
<p>
|
||||
<label>{{t repositories.branch}}:</label>
|
||||
{{#if view.branches.isLoaded}}
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
{{#view Travis.WorkersView}}
|
||||
<a id="toggle-workers" {{action toggleWorkers target="view"}}></a>
|
||||
<a id="toggle-workers" {{action "toggleWorkers" target="view"}}></a>
|
||||
<ul id="workers">
|
||||
{{#each group in controller.groups}}
|
||||
{{#view Travis.WorkersListView}}
|
||||
<li class="group">
|
||||
<h5 {{action toggle target="view"}}>
|
||||
<h5 {{action "toggle" target="view"}}>
|
||||
{{group.firstObject.host}}
|
||||
</h5>
|
||||
<ul>
|
||||
|
|
Loading…
Reference in New Issue
Block a user