sinatra-hexacta 0.8.7 → 0.8.8
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0dd060b73a298d6478e00bcbb9bdc8d756941ea0f8bd4722f6fc1b5391d81e0
|
4
|
+
data.tar.gz: 3a52a4a4698b47f2f6f7fa5fcfced960744dba7e92c6e25e1d330986a89ed68a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 030ceff7353e3653f0077dd2c0176fb6200c8a38db4d29a5f62f892c188f2a7165aff6e2949fb12cd864911dce32a51ccf59df6d5b2b9ca132372932cb213d08
|
7
|
+
data.tar.gz: a487d657ce41bf225bf1681bfb4948e328340b60482d4f8eca570dbf861bfbd09c8ba12e31422f026c6877ae1ca3ef8e8653a996ed2e1f086acd57548a9ae22c
|
@@ -55,6 +55,7 @@ class ProcessManager {
|
|
55
55
|
}
|
56
56
|
|
57
57
|
static start(clazz) {
|
58
|
+
ProcessManager.show(clazz);
|
58
59
|
$.ajax({
|
59
60
|
url: "/process",
|
60
61
|
type: 'POST',
|
@@ -69,6 +70,7 @@ class ProcessManager {
|
|
69
70
|
}
|
70
71
|
|
71
72
|
static start_with_map(clazz,map) {
|
73
|
+
ProcessManager.show(clazz);
|
72
74
|
map['class'] = clazz;
|
73
75
|
$.ajax({
|
74
76
|
url: "/process",
|
@@ -90,11 +92,9 @@ class ProcessManager {
|
|
90
92
|
data: { class : clazz },
|
91
93
|
success: function(result) {
|
92
94
|
if (result != "") {
|
95
|
+
ProcessManager.show(result.name);
|
93
96
|
if (result.progress >= 100.0) {
|
94
|
-
ProcessManager.
|
95
|
-
ProcessManager.cleanProcess(clazz);
|
96
|
-
} else {
|
97
|
-
ProcessManager.show(result.name);
|
97
|
+
ProcessManager.completeProcess(clazz);
|
98
98
|
}
|
99
99
|
ProcessManager.update(result.progress);
|
100
100
|
}
|
@@ -105,6 +105,19 @@ class ProcessManager {
|
|
105
105
|
});
|
106
106
|
}
|
107
107
|
|
108
|
+
static completeProcess(clazz) {
|
109
|
+
$.ajax({
|
110
|
+
url: "/processes/" + clazz,
|
111
|
+
type: 'POST',
|
112
|
+
success: function(result) {
|
113
|
+
ProcessManager.complete()
|
114
|
+
},
|
115
|
+
error: function(error) {
|
116
|
+
ProcessManager.error();
|
117
|
+
}
|
118
|
+
});
|
119
|
+
}
|
120
|
+
|
108
121
|
static cleanProcess(clazz) {
|
109
122
|
$.ajax({
|
110
123
|
url: "/processes/" + clazz,
|
@@ -113,7 +126,7 @@ class ProcessManager {
|
|
113
126
|
ProcessManager.cancel();
|
114
127
|
},
|
115
128
|
error: function(error) {
|
116
|
-
|
129
|
+
ProcessManager.error();
|
117
130
|
}
|
118
131
|
});
|
119
132
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
a.lv-item style="padding:10px 15px;#{notification.pending?? 'background-color: #ECF9FF;' : ''}" role="button" onclick="#{notification.pending?? "read_notify(#{notification.id},'#{notification.link}');this.onclick=\'\'" : ''}" href="#{notification.pending?? '#' : notification.link}"
|
2
2
|
.media
|
3
3
|
.pull-left.text-center.p-r-15
|
4
|
-
img.lv-img-sm alt="" src="#{Configuration::USER_PHOTO_URL}#{notification.creator.hxt_id}" title="#{notification.creator.full_name}"
|
4
|
+
img.lv-img-sm alt="" src="#{Configuration::USER_PHOTO_URL}#{notification.creator.hxt_id}" title="#{notification.creator.full_name}" onError="this.onerror=null;this.src='/sinatra-hexacta/img/noimage.jpg';"
|
5
5
|
br
|
6
6
|
-if notification.label == 'error'
|
7
7
|
.btn.btn-link.bgm-red.btn-xs style="font-size:6pt" #{notification.label}
|
@@ -5,7 +5,7 @@
|
|
5
5
|
.card-header
|
6
6
|
.media
|
7
7
|
.pull-left
|
8
|
-
img.lv-img alt="" src="#{Configuration::USER_PHOTO_URL}#{notification.creator.hxt_id}" title="#{notification.creator.full_name}"
|
8
|
+
img.lv-img alt="" src="#{Configuration::USER_PHOTO_URL}#{notification.creator.hxt_id}" title="#{notification.creator.full_name}" onError="this.onerror=null;this.src='/sinatra-hexacta/img/noimage.jpg';"
|
9
9
|
.media-body.m-t-5
|
10
10
|
h2
|
11
11
|
| #{notification.title}
|
@@ -10,7 +10,7 @@
|
|
10
10
|
.col-xs-2
|
11
11
|
.card.profile-view
|
12
12
|
.pv-header.bgm-teal style="height:70px;"
|
13
|
-
img.pv-main style="width: 100px;height: 100px;bottom: -50px;margin-left: -50px;" alt="" src="#{Configuration::USER_PHOTO_URL}#{user.hxt_id}"
|
13
|
+
img.pv-main style="width: 100px;height: 100px;bottom: -50px;margin-left: -50px;" alt="" src="#{Configuration::USER_PHOTO_URL}#{user.hxt_id}" onError="this.onerror=null;this.src='/sinatra-hexacta/img/noimage.jpg';"
|
14
14
|
.pv-body style="padding: 0 20px 10px;"
|
15
15
|
h2 style="font-size:14px;font-weight: 500;"
|
16
16
|
| #{user.first_name}
|