~bcsaller/juju-gui/update-reductions

« back to all changes in this revision

Viewing changes to app/app.js

  • Committer: Gary Poster
  • Date: 2012-09-21 06:00:19 UTC
  • mto: This revision was merged to the branch mainline in revision 107.
  • Revision ID: gary.poster@canonical.com-20120921060019-soza5t5s96wij1ig
a few more cleanups

Show diffs side-by-side

added added

removed removed

Lines of Context:
88
88
          var self = this;
89
89
          Y.later(6000, this, function(o) {
90
90
            Y.one('body')
91
 
                          .all('[data-timestamp]')
92
 
                          .each(function(node) {
 
91
              .all('[data-timestamp]')
 
92
              .each(function(node) {
93
93
                  node.setHTML(views.humanizeTimestamp(
94
94
                      node.getAttribute('data-timestamp')));
95
95
                });
492
492
    ATTRS: {
493
493
      routes: {
494
494
        value: [
495
 
                {path: '*', callback: 'show_charm_search'},
496
 
                {path: '*', callback: 'show_notifications_view'},
497
 
                {path: '/charms/', callback: 'show_charm_collection'},
498
 
                {path: '/charms/*charm_url',
 
495
          {path: '*', callback: 'show_charm_search'},
 
496
          {path: '*', callback: 'show_notifications_view'},
 
497
          {path: '/charms/', callback: 'show_charm_collection'},
 
498
          {path: '/charms/*charm_url',
499
499
            callback: 'show_charm',
500
500
            reverse_map: {charm_url: 'name'},
501
501
            model: 'charm'},
502
 
                {path: '/notifications/',
 
502
          {path: '/notifications/',
503
503
            callback: 'show_notifications_overview'},
504
 
                {path: '/service/:id/config',
 
504
          {path: '/service/:id/config',
505
505
            callback: 'show_service_config',
506
506
            intent: 'config',
507
507
            model: 'service'},
508
 
                {path: '/service/:id/constraints',
 
508
          {path: '/service/:id/constraints',
509
509
            callback: 'show_service_constraints',
510
510
            intent: 'constraints',
511
511
            model: 'service'},
512
 
                {path: '/service/:id/relations',
 
512
          {path: '/service/:id/relations',
513
513
            callback: 'show_service_relations',
514
514
            intent: 'relations',
515
515
            model: 'service'},
516
 
                {path: '/service/:id/', callback: 'show_service',
 
516
          {path: '/service/:id/',
 
517
            callback: 'show_service',
517
518
            model: 'service'},
518
 
                {path: '/unit/:id/', callback: 'show_unit',
519
 
            reverse_map: {id: 'urlName'}, model: 'serviceUnit'},
520
 
                {path: '/', callback: 'show_environment'}
 
519
          {path: '/unit/:id/',
 
520
            callback: 'show_unit',
 
521
            reverse_map: {id: 'urlName'},
 
522
            model: 'serviceUnit'},
 
523
          {path: '/', callback: 'show_environment'}
521
524
        ]
522
525
      }
523
526
    }