<div class="block">
<% if default_layout %>
<div class="widget">
- <span class="empty_widget"><%= message('widget.error_occurred_please_read_logs', :params => widget.name) -%></span>
+ <span class="empty_widget"><%= message('widget.error_occurred_please_read_logs', :params => [widget.key]) -%></span>
<div class="clear"></div>
</div>
<% else %>
- <span class="empty_widget"><%= message('widget.error_occurred_please_read_logs', :params => widget.name) -%></span>
+ <span class="empty_widget"><%= message('widget.error_occurred_please_read_logs', :params => [widget.key]) -%></span>
<% end %>
</div>
<% elsif widget_body.include? '<' %>
<div class="block">
<% if default_layout %>
<div class="widget">
- <span class="empty_widget"><%= message('widget.error_occurred_please_read_logs', :params => widget.name) -%></span>
+ <span class="empty_widget"><%= message('widget.error_occurred_please_read_logs', :params => [widget.key]) -%></span>
<div class="clear"></div>
</div>
<% else %>
- <span class="empty_widget"><%= message('widget.error_occurred_please_read_logs', :params => widget.name) -%></span>
+ <span class="empty_widget"><%= message('widget.error_occurred_please_read_logs', :params => [widget.key]) -%></span>
<% end %>
</div>
<% if default_layout %>
<div class="widget">
- <span class="empty_widget"><%= message('widget.error_occurred_please_read_logs', :params => @widget.key) -%></span>
+ <span class="empty_widget"><%= message('widget.error_occurred_please_read_logs', :params => [@widget.key]) -%></span>
<div class="clear"></div>
</div>
<% else %>
- <span class="empty_widget"><%= message('widget.error_occurred_please_read_logs', :params => @widget.key) -%></span>
+ <span class="empty_widget"><%= message('widget.error_occurred_please_read_logs', :params => [@widget.key]) -%></span>
<% end %>
<%
def leaves_qualifiers
@leaves_qualifiers ||=
begin
- Java::OrgSonarServerUi::JRubyFacade.getInstance().getResourceLeavesQualifiers(qualifier)
+ Api::Utils.java_facade.getResourceLeavesQualifiers(qualifier)
end
end
def children_qualifiers
@children_qualifiers ||=
begin
- Java::OrgSonarServerUi::JRubyFacade.getInstance().getResourceChildrenQualifiers(qualifier)
+ Api::Utils.java_facade.getResourceChildrenQualifiers(qualifier)
end
end
def java_resource_type
@java_resource_type ||=
begin
- Java::OrgSonarServerUi::JRubyFacade.getInstance().getResourceType(qualifier)
+ Api::Utils.java_facade.getResourceType(qualifier)
end
end
end