Commit 2066eea421c77635b1c1c62ef7260f50879796dc
Committed by
Paulo Meireles
1 parent
4e7213ba
Exists in
staging
and in
42 other branches
[Mezuro] Started the metric history view
Showing
2 changed files
with
14 additions
and
1 deletions
Show diff stats
plugins/mezuro/controllers/mezuro_plugin_profile_controller.rb
| ... | ... | @@ -123,5 +123,12 @@ class MezuroPluginProfileController < ProfileController |
| 123 | 123 | range.comments = params[:range][:comments] |
| 124 | 124 | range |
| 125 | 125 | end |
| 126 | -end | |
| 127 | 126 | |
| 127 | + def get_module_metrics_history | |
| 128 | + content = profile.articles.find(params[:id]) | |
| 129 | + module_history = Kalibro::Client::ModuleResultClient.new | |
| 130 | + module_history.result_history(content.project.name, params[:module_name]) | |
| 131 | + render :partial => 'content_viewer/show_history', :locals => {:module_history => module_history } | |
| 132 | + end | |
| 133 | + | |
| 134 | +end | ... | ... |
plugins/mezuro/views/content_viewer/_module_result.rhtml
| ... | ... | @@ -31,6 +31,12 @@ |
| 31 | 31 | <td colspan="4" align="right"> |
| 32 | 32 | <%= range.nil? or range.comments.nil? ? 'comment empty' : range.comments %> |
| 33 | 33 | </td> |
| 34 | + <td> | |
| 35 | + <a> <p style="text-indent: 3em;"> Draw Historical Graphic </p> </a> | |
| 36 | + </td> | |
| 37 | + <td colspan="3" align="right"> | |
| 38 | + <%= range.comments.nil? ? '' : range.comments %> | |
| 39 | + </td> | |
| 34 | 40 | </tr> |
| 35 | 41 | <% end %> |
| 36 | 42 | </tbody> | ... | ... |