File tree Expand file tree Collapse file tree 6 files changed +34
-7
lines changed
stylesheets/scss/components Expand file tree Collapse file tree 6 files changed +34
-7
lines changed Original file line number Diff line number Diff line change @@ -22,13 +22,14 @@ function formatTime(ms){
22
22
return s + " seconds" ;
23
23
}
24
24
if ( s >= 60 && s < 3600 ) {
25
- return Math . floor ( s / 60 ) + " minutes" ;
25
+ var minutes = Math . floor ( s / 60 ) ;
26
+ return minutes + ( minutes == 1 ? "minute" : "minutes" ) ;
26
27
}
27
28
if ( s >= 3600 ) {
28
29
return "1 hour or more" ;
29
30
}
30
31
31
- return "uncertain"
32
+ return "uncertain" ;
32
33
}
33
34
34
35
function completedTickets ( ) {
Original file line number Diff line number Diff line change 18
18
</ div >
19
19
</ div >
20
20
</ div >
21
+
22
+ < div id ="mobile-nav ">
23
+ {{#if userIs 'mentor'}}
24
+ < div class ="ui bottom fixed three item labeled icon menu ">
25
+ < a class ="item " href ="/ ">
26
+ < i class ="home icon "> </ i >
27
+ Home
28
+ </ a >
29
+ < a class ="item " href ="/mentor ">
30
+ < i class ="inbox icon "> </ i >
31
+ Mentor
32
+ </ a >
33
+ < a class ="item " href ="/profile ">
34
+ < i class ="child icon "> </ i >
35
+ Profile
36
+ </ a >
37
+ </ div >
38
+ {{/if}}
39
+ </ div >
21
40
{{/if}}
22
41
</ template >
23
42
Original file line number Diff line number Diff line change 2
2
< div class ="animated flipInX
3
3
ui fluid card ticket {{#if statusIs 'CLAIMED'}}claimed{{/if}} ">
4
4
< div class ="content ">
5
+ {{#if userIs 'admin'}}
6
+ < i class ="right floated red remove link cancel button icon "> </ i >
7
+ {{/if}}
5
8
< div class ="header ">
6
9
{{#if name }}
7
10
{{name}}
61
64
{{/if}}
62
65
{{/if}}
63
66
64
- < button class ="fluid danger push button cancel "> Cancel Ticket </ button >
65
-
66
67
</ div >
67
68
68
69
</ div >
Original file line number Diff line number Diff line change 8
8
left : 90% ;
9
9
padding : 0.4em ;
10
10
}
11
- }
11
+ }
12
+
13
+ @media only screen and (min-width : 768px ) {
14
+
15
+ #mobile-nav {
16
+ display : none ;
17
+ }
18
+ }
Original file line number Diff line number Diff line change 2
2
text-align : center ;
3
3
.title {
4
4
font-size : 1.8em ;
5
+ line-height : 1.8em ;
5
6
margin-bottom : 12px ;
6
7
}
7
8
.content {
Original file line number Diff line number Diff line change 1
1
< template name ="home ">
2
2
< section id ="home ">
3
-
4
3
< div class ="ui centered stackable page grid ">
5
4
< div class ="centered row ">
6
5
< div class ="twelve wide column ">
26
25
</ div >
27
26
</ div >
28
27
</ div >
29
-
30
28
</ section >
31
29
</ template >
32
30
You can’t perform that action at this time.
0 commit comments