We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent affc3af commit fc13e1cCopy full SHA for fc13e1c
1 file changed
pegr/grails-app/views/project/index.gsp
@@ -19,7 +19,20 @@
19
<g:paginate next="Next" prev="Prev" controller="project" action="index" max="15" total="${totalCount ?: 0}" />
20
</div>
21
<script>
22
- $("#nav-projects").addClass("active");
+ $("#nav-projects").addClass("active");
23
+ $(".label").each(function() {
24
+ if ($(this).text() == "ANALYZING") {
25
+ $(this).addClass("label-info");
26
+ } else if ($(this).text() == "COMPLETED") {
27
+ $(this).addClass("label-success");
28
+ } else if ($(this).text() == "QUEUE") {
29
+ $(this).addClass("label-warning");
30
+ } else if ($(this).text() == "FAILED") {
31
+ $(this).addClass("label-danger");
32
+ } else {
33
+ $(this).addClass("label-default");
34
+ }
35
+ });
36
</script>
37
</body>
38
</html>
0 commit comments