add owner stuff

This commit is contained in:
Lisa Passing 2015-05-11 17:26:51 +02:00
parent 4d519f145a
commit ff107384c2
6 changed files with 33 additions and 6 deletions

View File

@ -0,0 +1,11 @@
`import Ember from 'ember'`
`import Ajax from 'travis/utils/ajax'`
Controller = Ember.Controller.extend
isLoading: false
test: ->
console.log('CONTROLLER')
`export default Controller`

View File

@ -71,7 +71,8 @@ Router.map ->
@resource 'account', path: '/:login'
@route 'info', path: '/info'
@resource 'owner', path: '/:owner'
@resource 'owner', path: '/:owner', ->
@route 'running', path: '/running'
@route 'error404', path: '/*path'

View File

@ -0,0 +1,9 @@
`import Ember from 'ember'`
`import TravisRoute from 'travis/routes/basic'`
`import config from 'travis/config/environment'`
Route = TravisRoute.extend
model: ->
console.log('This is the RUNNING route')
`export default Route`

View File

@ -1,5 +1,3 @@
{{!-- {{outlet}} --}}
<header class="owner-header row">
<div class="owner-avatar">
<img {{bind-attr src="avatarURL"}} alt="" width="125" height="125">
@ -14,9 +12,9 @@
<div class="tabs--owner">
<nav class="tabnav tabnav--owner row" role="tablist">
<ul class="tab">
<li role="presentational">{{!-- <a href="#" title="" role="tab">--}}All Repositories{{!-- </a> --}}</li>
{{!-- <li role="presentational"><a href="#" title="" role="tab">Running Builds (2/5)</a></li>
<li role="presentational"><a href="#" title="" role="tab">Members</a></li> --}}
<li role="presentational">{{#link-to 'owner' owner.login}}All Repositories{{/link-to}}</li>
<li role="presentational">{{#link-to 'owner.running' owner.login}}Running Builds (2/5){{/link-to}}</li>
{{!-- <li role="presentational"><a href="#" title="" role="tab">Members</a></li> --}}
</ul>
</nav>

View File

@ -0,0 +1 @@
hello

View File

@ -0,0 +1,7 @@
`import Ember from 'ember'`
View = Ember.View.extend
layoutName: 'layouts/profile'
classNames: ['owner', 'running']
`export default View`