Skip to content

Commit ede59e5

Browse files
committed
Merge pull request #2 from ehzhang/dev
Dev
2 parents c1d17be + ed8d42c commit ede59e5

File tree

6 files changed

+34
-7
lines changed

6 files changed

+34
-7
lines changed

client/components/mentorStatus/mentorStatus.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,14 @@ function formatTime(ms){
2222
return s + " seconds";
2323
}
2424
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");
2627
}
2728
if (s >= 3600){
2829
return "1 hour or more";
2930
}
3031

31-
return "uncertain"
32+
return "uncertain";
3233
}
3334

3435
function completedTickets(){

client/components/nav/nav.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,25 @@
1818
</div>
1919
</div>
2020
</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>
2140
{{/if}}
2241
</template>
2342

client/components/tickets/ticket/ticket.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
<div class="animated flipInX
33
ui fluid card ticket {{#if statusIs 'CLAIMED'}}claimed{{/if}}">
44
<div class="content">
5+
{{#if userIs 'admin'}}
6+
<i class="right floated red remove link cancel button icon"></i>
7+
{{/if}}
58
<div class="header">
69
{{#if name }}
710
{{name}}
@@ -61,8 +64,6 @@
6164
{{/if}}
6265
{{/if}}
6366

64-
<button class="fluid danger push button cancel"> Cancel Ticket </button>
65-
6667
</div>
6768

6869
</div>

client/stylesheets/scss/components/_nav.scss

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,11 @@
88
left: 90%;
99
padding: 0.4em;
1010
}
11-
}
11+
}
12+
13+
@media only screen and (min-width: 768px) {
14+
15+
#mobile-nav {
16+
display: none;
17+
}
18+
}

client/stylesheets/scss/components/_ticketPanel.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
text-align: center;
33
.title {
44
font-size: 1.8em;
5+
line-height: 1.8em;
56
margin-bottom: 12px;
67
}
78
.content {

client/views/home/home.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<template name="home">
22
<section id="home">
3-
43
<div class="ui centered stackable page grid">
54
<div class="centered row">
65
<div class="twelve wide column">
@@ -26,7 +25,6 @@
2625
</div>
2726
</div>
2827
</div>
29-
3028
</section>
3129
</template>
3230

0 commit comments

Comments
 (0)