Commit 79199a5ce5a61be992f42e6582869fd02256fe41
Committed by
Paulo Meireles
1 parent
6f00a24a
Exists in
master
and in
28 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 | 66 | |
67 | 67 | function showProjectContentFor(state){ |
68 | 68 | if (state == 'ERROR') { |
69 | - jQuery('#project-state').html('ERROR'); | |
69 | + jQuery('#project-state').html('<div style="color:Red">ERROR</div>'); | |
70 | 70 | callAction('project', 'project_error', {}, showProjectResult); |
71 | 71 | } |
72 | 72 | else if (state == 'READY') { |
73 | 73 | jQuery('#msg-time').html(''); |
74 | - jQuery('#project-state').html('READY'); | |
74 | + jQuery('#project-state').html('<div style="color:Green">READY</div>'); | |
75 | 75 | callAction('project', 'project_result', {}, showProjectResult); |
76 | 76 | callAction('project','project_tree', {}, showProjectTree); |
77 | 77 | var project_name = jQuery("#project-result").attr('data-project-name'); |
78 | 78 | callAction('module', 'module_result', {module_name: project_name}, showModuleResult); |
79 | 79 | } |
80 | 80 | else if (state.endsWith("ING")) { |
81 | - jQuery('#project-state').html(state); | |
81 | + jQuery('#project-state').html('<div style="color:DarkGoldenRod">'+ state +'</div>'); | |
82 | 82 | jQuery('#msg-time').html("The project analysis may take long. <br/> You'll receive an e-mail when it's ready!"); |
83 | 83 | showProjectContentAfter(20); |
84 | 84 | } | ... | ... |
plugins/mezuro/views/content_viewer/show_project.rhtml