mutx 0.1.22 → 0.1.23
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/lib/mutx/routes.rb +13 -5
- data/lib/mutx/version.rb +1 -1
- data/lib/mutx/view/results/results.mote +6 -2
- data/lib/mutx/view/tasks/task.mote +1 -0
- 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: 7c97577f5c4b39d0c8ab15f815b835fad5fea9b1
|
4
|
+
data.tar.gz: f4c56b9d6b6c7dd172d2d26879a6a8e5fa5aff6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d123486ed284aeb4cc3b3bbbb8d801316e342f27bc1ee5cafd3ad0a0c04c7e3cd9415890c6f5147c68d9c39fd1c56084c5f6bd44809691ad1431c6bc3abdd90
|
7
|
+
data.tar.gz: 916286b31b26f4480192a635f384a920a4b97892938566c236aeb8bb7cff83915076773a4f2675b42d1f5527b248863e4a96855e5efacb42a5d5b0af1e4fa90b
|
data/lib/mutx/routes.rb
CHANGED
@@ -163,9 +163,13 @@ Cuba.define do
|
|
163
163
|
on get do
|
164
164
|
|
165
165
|
on "logout" do
|
166
|
-
|
167
|
-
|
168
|
-
|
166
|
+
if env["SERVER_NAME"].eql? "localhost"
|
167
|
+
a = env["HTTP_REFERER"]
|
168
|
+
logout = a.match(/\D{4,5}:\/\//).to_s+"user:pass@"+env["SERVER_NAME"].to_s+":"+env["SERVER_PORT"].to_s
|
169
|
+
res.redirect "#{logout}/tasks"
|
170
|
+
else
|
171
|
+
res.redirect "http://user@mutx.garba.ninja/tasks"
|
172
|
+
end
|
169
173
|
end
|
170
174
|
|
171
175
|
# ========================================================================
|
@@ -660,10 +664,14 @@ Cuba.define do
|
|
660
664
|
on "favicon" do
|
661
665
|
res.write ""
|
662
666
|
end
|
667
|
+
|
668
|
+
on "pull" do
|
669
|
+
#When go to pull, check for updates on the branch and make a pull if its outdated
|
670
|
+
Mutx::Support::Git.pull unless Mutx::Support::Git.up_to_date?
|
671
|
+
res.redirect "/tasks"
|
672
|
+
end
|
663
673
|
|
664
674
|
on root do
|
665
|
-
#When go to root path, check for updates on the branch and make a pull if its outdated
|
666
|
-
Mutx::Support::Git.pull unless Mutx::Support::Git.up_to_date?
|
667
675
|
res.redirect "/tasks"
|
668
676
|
end
|
669
677
|
|
data/lib/mutx/version.rb
CHANGED
@@ -20,7 +20,11 @@
|
|
20
20
|
% results_list = Mutx::API::Result.results_list_for(task["_id"])
|
21
21
|
% if results_list.size > 0
|
22
22
|
% size = results_list.size
|
23
|
-
% if ((size >
|
23
|
+
% if ((size > 300) && (size < 400))
|
24
|
+
% results_list_size = "300+"
|
25
|
+
% elsif ((size > 400) && (size < 500))
|
26
|
+
% results_list_size = "400+"
|
27
|
+
% elsif ((size > 200) && (size < 300))
|
24
28
|
% results_list_size = "200+"
|
25
29
|
% elsif ((size > 100) && (size < 200))
|
26
30
|
% results_list_size = "100+"
|
@@ -31,7 +35,7 @@
|
|
31
35
|
<div class="panel-heading" data-toggle="collapse" data-target='#{{task["_id"]}}'>
|
32
36
|
<h3 class="panel-title">
|
33
37
|
{{task["name"]}}
|
34
|
-
<div class="pull-right">{{
|
38
|
+
<div class="pull-right">{{results_list_size}} Results</div>
|
35
39
|
</h3>
|
36
40
|
<div></div>
|
37
41
|
</div>
|
@@ -78,6 +78,7 @@ color = Mutx::View.color(status)
|
|
78
78
|
Link
|
79
79
|
</span>
|
80
80
|
</button>
|
81
|
+
<a href='/results/task/{{task["name"].gsub(' ','%20')}}' class='btn btn-primary'>Results for: {{task["name"]}}</a>
|
81
82
|
% if task["information"]
|
82
83
|
<div style="text-align:right">
|
83
84
|
<a href='#'><span title='{{task["information"]}}' class='glyphicon glyphicon-info-sign' aria-hidden='true' data-toggle='modal' data-target='#myModal' onclick="javascript:info('Information about {{task["name"]}}','{{task["information"].gsub('\n','<br>')}}', null);"></span>
|