deactivate repo sorting, abstract base_uri

This commit is contained in:
Sven Fuchs 2012-07-22 15:33:06 +02:00
parent 77bc90458e
commit db120f1369
4 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
Travis.RepositoriesController = Ember.ArrayController.extend
sortProperties: ['sortOrder']
sortAscending: false
# sortProperties: ['sortOrder']
# sortAscending: false
init: ->
@activate('recent')

View File

@ -1,5 +1,5 @@
Travis.Routes = Em.Object.extend
BASE_URI: 'http://localhost:9292'
BASE_URI: "#{document.location.protocol}//#{document.location.host}"
ROUTES:
'profile': ['profile', 'show']

View File

@ -16,7 +16,7 @@
<div class="tab">
<ul id="repositories">
{{#each repository in controller.arrangedContent}}
{{#each repository in controller}}
{{#view Travis.RepositoriesItemView contextBinding="repository"}}
<li {{bindAttr class="view.classes"}}>
<a {{bindAttr href="view.urlRepository"}} {{action route}} class="current">{{slug}}</a>

File diff suppressed because one or more lines are too long