diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2011-05-04 17:52:38 +0200 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2011-05-04 17:52:55 +0200 |
commit | cd2781c7d4614adaf898017a5743b28aab79066f (patch) | |
tree | 47eb86041824ee74eff4ec12e2056675d68c19f0 /samples/standard-plugin/src/main/resources/sample_ruby_widget.html.erb | |
parent | fb5f0fe3dbf755fd0a609780a03c2741a3a6651f (diff) | |
download | sonarqube-cd2781c7d4614adaf898017a5743b28aab79066f.tar.gz sonarqube-cd2781c7d4614adaf898017a5743b28aab79066f.zip |
Improve plugin samples
Diffstat (limited to 'samples/standard-plugin/src/main/resources/sample_ruby_widget.html.erb')
-rw-r--r-- | samples/standard-plugin/src/main/resources/sample_ruby_widget.html.erb | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/samples/standard-plugin/src/main/resources/sample_ruby_widget.html.erb b/samples/standard-plugin/src/main/resources/sample_ruby_widget.html.erb new file mode 100644 index 00000000000..c2602c49646 --- /dev/null +++ b/samples/standard-plugin/src/main/resources/sample_ruby_widget.html.erb @@ -0,0 +1,40 @@ +<div class="dashbox"> + <h3><span title="<%= metric('random').description -%>"></span></h3> + <p> + <span class="big"> + <%= format_measure('random') -%> <%= trend_icon(measure('random')) %> + </span> + </p> + <p><%= format_measure('message') -%></p> + <p> + <%= format_measure('ncloc', :suffix => ' lines', :url => url_for_drilldown('ncloc')) -%> + </p> +</div> +<div class="dashbox"> + <h3>Help</h3> + <p> + Read configuration : <%= configuration('sonar.jdbc.username') -%> + </p> + + <p> + Sample of Jfree Eastwood chart : <br/> + <%= gchart('cht=bhs&chco=FF0000,00FF00,0000FF&chs=200x125&chd=s:FOE,THE,Bar&chxt=x,y&chxl=1:|Dec|Nov|Oct|0:||20K||60K||100K|') -%> + </p> + <p> + Widget properties: + <table> + <tr> + <td>max:</td> + <td><%= widget_properties['max'] -%></td> + </tr> + <tr> + <td>param1:</td> + <td><%= widget_properties['param1'] -%></td> + </tr> + <tr> + <td>param2:</td> + <td><%= widget_properties['param2'] -%></td> + </tr> + </table> + </p> +</div> |