add owner stuff
This commit is contained in:
parent
4d519f145a
commit
ff107384c2
11
app/controllers/owner/running.coffee
Normal file
11
app/controllers/owner/running.coffee
Normal 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`
|
|
@ -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'
|
||||
|
||||
|
|
9
app/routes/owner/running.coffee
Normal file
9
app/routes/owner/running.coffee
Normal 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`
|
|
@ -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>
|
||||
|
||||
|
|
1
app/templates/owner/running.hbs
Normal file
1
app/templates/owner/running.hbs
Normal file
|
@ -0,0 +1 @@
|
|||
hello
|
7
app/views/owner/running.coffee
Normal file
7
app/views/owner/running.coffee
Normal file
|
@ -0,0 +1,7 @@
|
|||
`import Ember from 'ember'`
|
||||
|
||||
View = Ember.View.extend
|
||||
layoutName: 'layouts/profile'
|
||||
classNames: ['owner', 'running']
|
||||
|
||||
`export default View`
|
Loading…
Reference in New Issue
Block a user