@@ -13,20 +13,17 @@ Template.admin_organisations.events({
13
13
}
14
14
} )
15
15
16
- Template . admin_controls . events ( {
17
- 'click #flushdb' : function ( ) {
18
- console . log ( 'flushing db' ) ;
19
- Meteor . call ( 'admin/flushdb' ) ;
20
- }
21
- } ) ;
22
-
23
16
Template . admin . helpers ( {
24
17
tab : function ( ) {
25
18
return Template . instance ( ) . currentTab . get ( ) ;
26
19
}
27
20
} ) ;
28
21
29
22
Template . admin_users . helpers ( {
23
+ 'click #flushdb' : function ( ) {
24
+ console . log ( 'flushing users db' ) ;
25
+ Meteor . call ( 'admin/flushdb' ) ;
26
+ } ,
30
27
settings : function ( ) {
31
28
return {
32
29
onCreate : function ( ) {
@@ -71,8 +68,8 @@ Template.admin_organisations.helpers({
71
68
rowsPerPage : 10 ,
72
69
showFilter : true ,
73
70
fields : [
71
+ { key : 'timestamp' , label : 'Timestamp' , sortOrder : 0 , sortDirection : 'descending' } ,
74
72
{ key : 'statusCode' , label : 'Success' , tmpl : Template . admin_success_status } ,
75
- { key : 'lastSuccess' , label : 'Last success' } ,
76
73
{ key : 'url' , label : 'URL' } ,
77
74
{ key : 'error' , label : 'Error' , tmpl : Template . admin_error_button } ,
78
75
]
@@ -87,9 +84,6 @@ Template.admin.events({
87
84
'click .usersButton' : function ( event , template ) {
88
85
template . currentTab . set ( 'admin_users' ) ;
89
86
} ,
90
- 'click .controlsButton' : function ( event , template ) {
91
- template . currentTab . set ( 'admin_controls' ) ;
92
- } ,
93
87
'click .organisationsButton' : function ( event , template ) {
94
88
template . currentTab . set ( 'admin_organisations' ) ;
95
89
}
0 commit comments