green tests

This commit is contained in:
Sven Fuchs 2012-07-06 11:01:02 +02:00
parent badf832bd8
commit f8c4377e01
8 changed files with 29 additions and 23 deletions

View File

@ -23,5 +23,8 @@
githubNetwork: (slug) ->
"http://github.com/#{slug}/network"
githubAdmin: (slug) ->
"http://github.com/#{slug}/admin/hooks#travis_minibucket"
email: (email) ->
"mailto:#{email}"

View File

@ -1,4 +1,4 @@
{{#with view.builds}}
{{#with view}}
<table id="builds" class="list">
<thead>
<tr>
@ -11,7 +11,7 @@
</thead>
<tbody>
{{#each build in content}}
{{#each build in builds}}
{{#view Travis.Views.BuildsItemView contextBinding="build"}}
<tr {{bindAttr class="view.color"}}>
<td class="number"><a {{bindAttr href="view.urlBuild"}}>{{number}}</a></td>

View File

@ -1,6 +1,6 @@
{{#with view.jobs}}
{{#if length}}
{{#if view.required}}
{{#with view}}
{{#if jobs.length}}
{{#if required}}
<table id="jobs" class="list">
<caption>
{{t jobs.build_matrix}}
@ -14,13 +14,13 @@
{{/if}}
<thead>
<tr>
{{#each configKeys}}
{{#each build.configKeys}}
<th>{{this}}</th>
{{/each}}
</tr>
</thead>
<tbody>
{{#each job in view.jobs}}
{{#each job in jobs}}
{{#view Travis.Views.JobsItemView contextBinding="job"}}
<tr {{bindAttr class="view.color"}}>
<td class="number"><a {{bindAttr href="view.urlJob"}}>{{number}}</a></td>
@ -35,7 +35,7 @@
</tbody>
</table>
{{#unless view.required}}
{{#unless required}}
<div id="allow_failure_help" class="context_help">
<div class="context_help_caption">{{t "jobs.allowed_failures"}}</div>
<div class="context_help_body">

View File

@ -1,10 +1,8 @@
{{#with job}}
<pre id="log">{{{formatLog log.body}}}</pre>
<pre id="log">{{{formatLog log.body}}}</pre>
{{#if sponsor.name}}
<p class="sponsor">
{{t builds.messages.sponsored_by}}
<a {{bindAttr href="sponsor.url"}}>{{sponsor.name}}</a>
</p>
{{/if}}
{{/with}}
{{#if sponsor.name}}
<p class="sponsor">
{{t builds.messages.sponsored_by}}
<a {{bindAttr href="sponsor.url"}}>{{sponsor.name}}</a>
</p>
{{/if}}

View File

@ -34,7 +34,7 @@
<dd class="config">{{formatConfig job.config}}</dd>
</dl>
{{view Travis.Views.LogView}}
{{view Travis.Views.LogView contextBinding="job"}}}
</div>
{{/if}}
{{/with}}

View File

@ -1,6 +1,7 @@
@Travis.Views.reopen
JobsView: Em.View.extend
templateName: 'jobs/list'
buildBinding: 'controller.build'
toggleHelp: ->
$.facebox(div: '#allow_failure_help')

View File

@ -2,12 +2,16 @@
UserView: Em.View.extend
templateName: 'profile/show'
# userBinding: 'controller.user'
userBinding: 'controller.user'
# gravatarUrl: (->
# "http://www.gravatar.com/avatar/#{@getPath('user.gravatar')}?s=48&d=mm"
# ).property('user.gravatar')
gravatarUrl: (->
"http://www.gravatar.com/avatar/#{@getPath('user.gravatar')}?s=48&d=mm"
).property('user.gravatar')
HooksView: Em.View.extend
templateName: 'profile/hooks'
urlGithubAdmin: (->
Travis.Urls.githubAdmin(@getPath('hook.slug'))
).property('hook.slug')

File diff suppressed because one or more lines are too long