foreman-tasks 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -101,17 +101,33 @@
|
|
101
101
|
<span class="param-name"><%= _("Params") %>:</span>
|
102
102
|
<span class="param-value"><%= format_task_input(@task) %></span>
|
103
103
|
</div>
|
104
|
-
<div>
|
105
|
-
<
|
106
|
-
|
107
|
-
<div class="progress progress-striped">
|
104
|
+
<div class="row">
|
105
|
+
<div class="col-xs-11">
|
106
|
+
<div class="progress progress-striped <%= 'active' if @task.state == 'running' %>">
|
108
107
|
<% progress = 100 * @task.progress %>
|
109
|
-
|
110
|
-
|
108
|
+
<% classes = ['progress-bar',
|
109
|
+
case @task.result
|
110
|
+
when 'success'
|
111
|
+
'progress-bar-success'
|
112
|
+
when 'error'
|
113
|
+
'progress-bar-danger'
|
114
|
+
else
|
115
|
+
nil
|
116
|
+
end]
|
117
|
+
%>
|
118
|
+
<div class="<%= classes.join ' ' %>"
|
119
|
+
role="progressbar"
|
120
|
+
aria-valuenow="<%= progress %>"
|
121
|
+
aria-valuemin="0"
|
122
|
+
aria-valuemax="100"
|
123
|
+
style="width: <%= progress %>%;">
|
111
124
|
<span class="sr-only"><%= progress %>% Complete</span>
|
112
125
|
</div>
|
113
126
|
</div>
|
114
|
-
</
|
127
|
+
</div>
|
128
|
+
<div class="col-xs-1">
|
129
|
+
<%= progress.round %>%
|
130
|
+
</div>
|
115
131
|
</div>
|
116
132
|
<div>
|
117
133
|
<span class="param-name"><%= _("Output") %>:</span>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman-tasks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-06-
|
12
|
+
date: 2014-06-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|