Commit b612e7864051ac4a798472d86b37684772ccb18b
Committed by
Paulo Meireles
1 parent
3dc8df02
Exists in
master
and in
23 other branches
[Mezuro] added font color to project state in show_project view.
Showing
2 changed files
with
4 additions
and
4 deletions
Show diff stats
plugins/mezuro/public/javascripts/project_content.js
@@ -66,19 +66,19 @@ function reloadProject(date){ | @@ -66,19 +66,19 @@ function reloadProject(date){ | ||
66 | 66 | ||
67 | function showProjectContentFor(state){ | 67 | function showProjectContentFor(state){ |
68 | if (state == 'ERROR') { | 68 | if (state == 'ERROR') { |
69 | - jQuery('#project-state').html('ERROR'); | 69 | + jQuery('#project-state').html('<div style="color:Red">ERROR</div>'); |
70 | callAction('project', 'project_error', {}, showProjectResult); | 70 | callAction('project', 'project_error', {}, showProjectResult); |
71 | } | 71 | } |
72 | else if (state == 'READY') { | 72 | else if (state == 'READY') { |
73 | jQuery('#msg-time').html(''); | 73 | jQuery('#msg-time').html(''); |
74 | - jQuery('#project-state').html('READY'); | 74 | + jQuery('#project-state').html('<div style="color:Green">READY</div>'); |
75 | callAction('project', 'project_result', {}, showProjectResult); | 75 | callAction('project', 'project_result', {}, showProjectResult); |
76 | callAction('project','project_tree', {}, showProjectTree); | 76 | callAction('project','project_tree', {}, showProjectTree); |
77 | var project_name = jQuery("#project-result").attr('data-project-name'); | 77 | var project_name = jQuery("#project-result").attr('data-project-name'); |
78 | callAction('module', 'module_result', {module_name: project_name}, showModuleResult); | 78 | callAction('module', 'module_result', {module_name: project_name}, showModuleResult); |
79 | } | 79 | } |
80 | else if (state.endsWith("ING")) { | 80 | else if (state.endsWith("ING")) { |
81 | - jQuery('#project-state').html(state); | 81 | + jQuery('#project-state').html('<div style="color:DarkGoldenRod">'+ state +'</div>'); |
82 | jQuery('#msg-time').html("The project analysis may take long. <br/> You'll receive an e-mail when it's ready!"); | 82 | jQuery('#msg-time').html("The project analysis may take long. <br/> You'll receive an e-mail when it's ready!"); |
83 | showProjectContentAfter(20); | 83 | showProjectContentAfter(20); |
84 | } | 84 | } |
plugins/mezuro/views/content_viewer/show_project.rhtml
@@ -42,7 +42,7 @@ | @@ -42,7 +42,7 @@ | ||
42 | <tr> | 42 | <tr> |
43 | <td><%= _('Status')%></td> | 43 | <td><%= _('Status')%></td> |
44 | <td> | 44 | <td> |
45 | - <div id="project-state"><%= @project.state %></div> | 45 | + <div id="project-state" style="color:DarkGoldenRod"><%= @project.state %></div> |
46 | <div id="msg-time"></div> | 46 | <div id="msg-time"></div> |
47 | </td> | 47 | </td> |
48 | </tr> | 48 | </tr> |