opsask 2.0.5 → 2.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/VERSION +1 -1
- data/lib/opsask/app.rb +13 -2
- data/public/css/style.css +36 -40
- data/views/_form.erb +1 -1
- data/views/layout.erb +4 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d3cc687d6383b459a804149c76bc8fd708f7f87
|
4
|
+
data.tar.gz: 66d0cc44c6654a9a9ee4c3e0ace96cb374b9ac8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6187e7b4b73d9d45c6b78210a623d7def41be07b040e3c53f79b3cc1768267040d68e4fda711bb3b6117b72727dbfd234593320cb9b2517d23fda171fa365e7c
|
7
|
+
data.tar.gz: a8258e9a725cb6e3224c1f8eec1d3bfbb611e9e8643b537e80c83d46b6ac963372eee9cc68115f519368f102826e8f8f77d568243384684a2e63008c9481393d
|
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.
|
1
|
+
2.0.6
|
data/lib/opsask/app.rb
CHANGED
@@ -211,6 +211,17 @@ module OpsAsk
|
|
211
211
|
|
212
212
|
|
213
213
|
|
214
|
+
helpers do
|
215
|
+
def pluralize n, item
|
216
|
+
case n
|
217
|
+
when 0 ; '%s %ss'
|
218
|
+
when 1 ; '%s %s'
|
219
|
+
else ; '%s %ss'
|
220
|
+
end % [ n, item ]
|
221
|
+
end
|
222
|
+
end
|
223
|
+
|
224
|
+
|
214
225
|
private
|
215
226
|
def logged_in?
|
216
227
|
!!session[:jira_auth]
|
@@ -398,7 +409,7 @@ module OpsAsk
|
|
398
409
|
end
|
399
410
|
|
400
411
|
def name_for_today offset=0
|
401
|
-
todays_date(offset).strftime '%A
|
412
|
+
todays_date(offset).strftime '%A %-d %b'
|
402
413
|
end
|
403
414
|
|
404
415
|
def name_for_tomorrow
|
@@ -406,7 +417,7 @@ module OpsAsk
|
|
406
417
|
end
|
407
418
|
|
408
419
|
def name_for_coming_week
|
409
|
-
todays_date.strftime 'Week of
|
420
|
+
todays_date.strftime 'Week of %-d %b'
|
410
421
|
end
|
411
422
|
|
412
423
|
def jiras_for date
|
data/public/css/style.css
CHANGED
@@ -1,20 +1,14 @@
|
|
1
|
-
@font-face{
|
2
|
-
font-family: "DIN 1451 Mittelschrift";
|
3
|
-
src:url('../fonts/DINMittelschriftStd.woff') format('woff');
|
4
|
-
}
|
5
|
-
|
6
1
|
body {
|
7
|
-
color: #
|
8
|
-
background-color: #
|
2
|
+
color: #ebebeb;
|
3
|
+
background-color: #2b3e50;
|
9
4
|
}
|
10
5
|
|
11
6
|
body, h1, h2, h3, h4, h5, h6 {
|
12
|
-
font-family: "
|
7
|
+
font-family: "Lato","Helvetica Neue",Helvetica,Arial,sans-serif !important;
|
13
8
|
}
|
14
9
|
|
15
10
|
h1, h2, h3, h4, h5, h6 {
|
16
|
-
font-weight:
|
17
|
-
/*text-transform: uppercase;*/
|
11
|
+
font-weight: normal;
|
18
12
|
}
|
19
13
|
|
20
14
|
h2 { color: #ddd; }
|
@@ -49,37 +43,38 @@ h2 { color: #ddd; }
|
|
49
43
|
margin-top: 1.5em;
|
50
44
|
}
|
51
45
|
|
52
|
-
|
53
|
-
color:
|
54
|
-
border-color:
|
46
|
+
.jira.open a, .jira.open a h3 {
|
47
|
+
color: rgb(217, 83, 79);
|
48
|
+
border-color: rgb(217, 83, 79);
|
55
49
|
}
|
56
50
|
|
57
|
-
.jira.open a,
|
58
|
-
|
59
|
-
|
51
|
+
.jira.open.denimcores a,
|
52
|
+
.jira.open.denimcores a:visited,
|
53
|
+
.jira.open.denimcores a h3 {
|
54
|
+
color: rgb(240, 173, 78);
|
55
|
+
border-color: rgb(240, 173, 78);
|
60
56
|
}
|
61
57
|
|
58
|
+
|
62
59
|
.jira.open.denimcores a:hover, .jira.open.denimcores a:hover h3,
|
63
|
-
.jira
|
64
|
-
color:
|
65
|
-
border-color:
|
60
|
+
.jira a:hover, .jira a:hover h3 {
|
61
|
+
color: rgb(91, 192, 222);
|
62
|
+
border-color: rgb(91, 192, 222);
|
66
63
|
}
|
67
64
|
|
68
65
|
.jira a:active, .jira a:active h3 {
|
69
|
-
color: #
|
70
|
-
border-color: #
|
66
|
+
color: #ebebeb !important;
|
67
|
+
border-color: #ebebeb !important;
|
71
68
|
}
|
72
69
|
|
73
70
|
.jira a {
|
74
71
|
display: block;
|
75
72
|
padding: 1em;
|
76
|
-
|
77
|
-
border-left: 2px solid #333;
|
73
|
+
border-left: 7px solid #333;
|
78
74
|
}
|
79
75
|
|
80
|
-
.jira
|
81
|
-
background-color:
|
82
|
-
border-color: #ffaa00;
|
76
|
+
.jira a, fieldset {
|
77
|
+
background-color: rgb(78, 93, 108);
|
83
78
|
}
|
84
79
|
|
85
80
|
.jira a h3 {
|
@@ -87,32 +82,26 @@ a, a:visited, .jira.open.denimcores a h3 {
|
|
87
82
|
}
|
88
83
|
|
89
84
|
.jira .label {
|
90
|
-
color: #
|
91
|
-
background-color:
|
85
|
+
color: #333;
|
86
|
+
background-color: rgb(71, 71, 71);
|
92
87
|
}
|
93
88
|
|
94
89
|
.jira.open.denimcores .label,
|
95
90
|
.jira.open .label {
|
96
91
|
color: #fff;
|
97
|
-
background-color:
|
92
|
+
background-color: rgb(92, 184, 92);
|
98
93
|
}
|
99
94
|
|
100
95
|
fieldset {
|
101
|
-
background-color: #1a1a1a;
|
102
96
|
border: none;
|
103
97
|
margin: 0;
|
104
98
|
}
|
105
99
|
|
106
100
|
input[type=text], input[type=text]:focus,
|
107
101
|
textarea, textarea:focus {
|
108
|
-
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
109
|
-
color: #fff;
|
110
|
-
background-color: #222;
|
111
|
-
border-color: #292929;
|
112
102
|
}
|
113
103
|
|
114
104
|
select, select:hover {
|
115
|
-
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
116
105
|
font-size: 0.75em;
|
117
106
|
color: #ccc;
|
118
107
|
border-color: #292929;
|
@@ -147,7 +136,7 @@ p.ops-queues-are-full {
|
|
147
136
|
}
|
148
137
|
|
149
138
|
input[type="checkbox"] + label {
|
150
|
-
color: #
|
139
|
+
color: #ebebeb;
|
151
140
|
margin-left: 0.2em;
|
152
141
|
}
|
153
142
|
|
@@ -156,6 +145,7 @@ input[type="checkbox"] + label {
|
|
156
145
|
}
|
157
146
|
|
158
147
|
.stats .stat {
|
148
|
+
color: #ebebeb;
|
159
149
|
padding-top: 2em;
|
160
150
|
padding-bottom: 2em;
|
161
151
|
background-color: #333;
|
@@ -163,17 +153,23 @@ input[type="checkbox"] + label {
|
|
163
153
|
}
|
164
154
|
|
165
155
|
.stat.resolved {
|
166
|
-
color:
|
167
|
-
background-color: #5da423;
|
156
|
+
background-color: rgb(92, 184, 92);
|
168
157
|
margin-top: 0.75em;
|
169
158
|
}
|
170
159
|
|
160
|
+
.stat.resolved:hover {
|
161
|
+
background-color: rgb(68, 157, 68);
|
162
|
+
}
|
163
|
+
|
171
164
|
.stat.unresolved {
|
172
|
-
color:
|
173
|
-
background-color: #ff005c;
|
165
|
+
background-color: rgb(217, 83, 79);
|
174
166
|
margin-top: 2em;
|
175
167
|
}
|
176
168
|
|
169
|
+
.stat.unresolved:hover {
|
170
|
+
background-color: rgb(201, 48, 44);
|
171
|
+
}
|
172
|
+
|
177
173
|
.stat .number {
|
178
174
|
font-size: 1.25em;
|
179
175
|
font-weight: bold;
|
data/views/_form.erb
CHANGED
data/views/layout.erb
CHANGED
@@ -1,9 +1,11 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
2
|
<html class="no-js" lang="en">
|
3
3
|
<head>
|
4
|
-
<title>OpsAsk
|
4
|
+
<title>OpsAsk</title>
|
5
5
|
<meta charset="utf-8" />
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
7
|
+
<link href="//fonts.googleapis.com/css?family=Lato:300,400,700" rel="stylesheet" />
|
8
|
+
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
|
7
9
|
<link rel="stylesheet" href="/css/foundation.css" />
|
8
10
|
<link rel="stylesheet" href="/css/style.css" />
|
9
11
|
<link rel="shortcut icon" href="favicon.ico" />
|
@@ -33,7 +35,7 @@
|
|
33
35
|
<% end %>
|
34
36
|
<% unless stragglers.empty? %>
|
35
37
|
<div id="straggling-indicator">
|
36
|
-
<span class="alert label radius"><a href="/stragglers"><%= stragglers.length
|
38
|
+
<span class="alert label radius"><a href="/stragglers"><%= pluralize stragglers.length, 'straggler' %></a></span>
|
37
39
|
</div>
|
38
40
|
<% end %>
|
39
41
|
</div>
|