ce.widget-lab.sonar-widget-lab-plugin.1.8.1.source-code.measure_bar_chart_widget.html.erb Maven / Gradle / Ivy
The newest version!
<%
containerId = 'measure_bar_chart' + widget.id.to_s
if has_role?(:user, @project)
metric = widget_properties["metric"]
period = widget_properties["period"]
measure = measure(metric)
if metric
legendText = ''
if measure.metric.value_type == 'WORK_DUR'
legendText = 'Minutes'
else
legendText = measure.metric.suffix
end
%>
Last:
Week -
Month -
Quarter -
Semester -
Year
<% else %>
Please configure the widget to have the Measure Bar Chart working.
<% end %>
<% end %>