2 containerId = 'issue-tag-cloud' + widget.id.to_s
3 maxItems = widget_properties['maxItems'].to_i
5 if current_user && has_role?(:user, @project)
8 search_options['componentUuids'] = @project.uuid
10 search_options['resolved'] = 'false'
12 title = message('widget.issue_tag_cloud.name')
15 <div class="histogram-widget" id="<%= containerId %>">
16 <!--[if lte IE 8 ]> <h3><%= message('widget.unsupported_browser_warning') -%></h3> <![endif]-->
19 <!--[if (gte IE 9)|!(IE)]><!-->
23 'componentUuid=<%= @project.uuid() -%>',
26 widget = new SonarWidgets.Widget();
30 .source(baseUrl + '/api/issues/component_tags?' + query)
32 maxItemsReachedMessage: '<%= message("widget.measure_filter_histogram.max_items_reached", :params => [maxItems]) -%>',
33 baseUrl: baseUrl + '/issues/search/#componentUuids=<%= @project.uuid() -%>',
34 noData: '<%= message('no_data') -%>'
36 .render('#<%= containerId -%>');
38 autoResize(500, function() {
39 widget.update('#<%= containerId -%>');