File tree Expand file tree Collapse file tree 3 files changed +24
-17
lines changed
scripts/directives/dashboard/stats Expand file tree Collapse file tree 3 files changed +24
-17
lines changed Original file line number Diff line number Diff line change 11
11
</ div >
12
12
</ div >
13
13
</ div >
14
- < a href ="# ">
14
+ < a href ="{{url}} ">
15
15
< div class ="panel-footer ">
16
16
< span class ="pull-left "> View Details</ span >
17
17
< span class ="pull-right "> < i class ="fa fa-arrow-circle-right "> </ i > </ span >
18
18
< div class ="clearfix "> </ div >
19
19
</ div >
20
20
</ a >
21
21
</ div >
22
- </ div >
22
+ </ div >
Original file line number Diff line number Diff line change
1
+ /* jshint -W097 */
2
+ /* global angular, console */
1
3
'use strict' ;
2
4
3
5
/**
7
9
* # adminPosHeader
8
10
*/
9
11
angular . module ( 'sbAdminApp' )
10
- . directive ( 'stats' , function ( ) {
11
- return {
12
- templateUrl :'scripts/directives/dashboard/stats/stats.html' ,
13
- restrict :'E' ,
14
- replace :true ,
15
- scope : {
12
+ . directive ( 'stats' , function ( ) {
13
+ return {
14
+ templateUrl : 'scripts/directives/dashboard/stats/stats.html' ,
15
+ restrict : 'E' ,
16
+ replace : true ,
17
+ scope : {
16
18
'model' : '=' ,
17
19
'comments' : '@' ,
18
20
'number' : '@' ,
19
21
'name' : '@' ,
20
22
'colour' : '@' ,
21
- 'details' :'@' ,
22
- 'type' :'@'
23
- }
24
-
25
- }
23
+ 'details' : '@' ,
24
+ 'type' : '@' ,
25
+ 'url' : '@?'
26
+ } ,
27
+ compile : function ( element , attrs ) {
28
+ if ( ! attrs . url ) {
29
+ attrs . url = '#' ;
30
+ }
31
+ } ,
32
+ } ;
26
33
} ) ;
Original file line number Diff line number Diff line change @@ -7,14 +7,14 @@ <h1 class="page-header">Dashboard</h1>
7
7
</ div >
8
8
<!-- /.row -->
9
9
< div class ="row ">
10
-
11
- < stats number ="6 " comments ="New comments! " colour ="primary " type ="comments "> </ stats >
10
+
11
+ < stats number ="6 " comments ="New comments! " colour ="primary " type ="comments " url =" #/dashboard/table " > </ stats >
12
12
< stats number ="12 " comments ="New tasks! " colour ="primary " type ="user "> </ stats >
13
13
< stats number ="18 " comments ="New orders! " colour ="yellow " type ="shopping-cart "> </ stats >
14
14
< stats number ="24 " comments ="Support tickets! " colour ="red " type ="support "> </ stats >
15
15
16
16
</ div >
17
-
17
+
18
18
<!-- /.panel -->
19
19
< div class ="row ">
20
20
< div class ="col-lg-8 ">
@@ -35,7 +35,7 @@ <h1 class="page-header">Dashboard</h1>
35
35
< i class ="fa fa-bell fa-fw "> </ i > Notifications Panel
36
36
</ div >
37
37
<!-- /.panel-heading -->
38
- < notifications > </ notifications >
38
+ < notifications > </ notifications >
39
39
<!-- /.panel-body -->
40
40
</ div >
41
41
<!-- /.panel -->
You can’t perform that action at this time.
0 commit comments