<div class="line-block">
<div style="float:right">
- <a href="<%= url_for_drilldown(metric) -%>"><%= message('widget.hotspot_metric.more') -%></a>
+ <a class="underlined-link" href="<%= url_for_drilldown(metric) -%>"><%= message('widget.hotspot_metric.more') -%></a>
</div>
<h3><%= title -%></h3>
</div>
%>
<tr class="<%= cycle 'even', 'odd', :name => ('hotspot_metric' + widget.id.to_s) -%>">
<td>
- <%= link_to_resource(resource, h(resource.name), {:metric => metric.name}) -%>
+ <%= link_to_resource(resource, h(resource.name), {:metric => metric.name, :class => 'underlined-link'}) -%>
</td>
<td class="right nowrap">
<%= format_measure(measure) -%>
</td>
<td class="barchart">
<div class="barchart" style="width: <%= (measure.value*100/metric_max_value).round.to_i -%>%">
- <div style="width: 100%;background-color:#777;"></div>
+ <div style="width: 100%;"></div>
</div>
</td>
</tr>
<div class="line-block">
<div style="float:right">
- <a href="<%= url_for_drilldown(metric) -%>"><%= message('widget.hotspot_metric.more') -%></a>
+ <a class="underlined-link" href="<%= url_for_drilldown(metric) -%>"><%= message('widget.hotspot_metric.more') -%></a>
</div>
<h3><%= title -%></h3>
</div>
%>
<tr class="<%= cycle 'even', 'odd', :name => ('hotspot_most_violated_resources' + widget.id.to_s) -%>">
<td>
- <%= link_to_resource(resource, h(resource.name), {:tab => :violations}) -%>
+ <%= link_to_resource(resource, h(resource.name), {:tab => :violations, :class => 'underlined-link'}) -%>
</td>
<td class="small right">
<i class="icon-severity-blocker"></i>
<div class="line-block">
<div style="float:right">
- <a href="#" onclick="window.location.href='<%= url_for(:controller => 'drilldown', :action => 'issues') -%>/<%= @resource.id -%>?period=<%= dashboard_configuration.period_index -%>&severity=' + severityForLink() ">
+ <a class="underlined-link" href="#" onclick="window.location.href='<%= url_for(:controller => 'drilldown', :action => 'issues') -%>/<%= @resource.id -%>?period=<%= dashboard_configuration.period_index -%>&severity=' + severityForLink() ">
<%= message('widget.hotspot_metric.more') -%>
</a>
</div>
<%= h rule.name -%>
</td>
<td class="right nowrap">
- <a class="nolink <%= widget.key %>_<%= rule.key.parameterize %>" href="<%= url_for(:controller => 'drilldown', :action => 'issues', :id => @resource.key, :rule => rule.key, :rule_sev => m.severity, :period => dashboard_configuration.period_index) -%>">
+ <a class="underlined-link <%= widget.key %>_<%= rule.key.parameterize %>" href="<%= url_for(:controller => 'drilldown', :action => 'issues', :id => @resource.key, :rule => rule.key, :rule_sev => m.severity, :period => dashboard_configuration.period_index) -%>">
<%= dashboard_configuration.selected_period? ? format_variation(m) : format_measure(m) -%>
</a>
</td>
<td class="barchart">
<div class="barchart" style="width: <%= (value*100/max_value).round.to_i -%>%">
- <div style="width: 100%;background-color:#777;"></div>
+ <div style="width: 100%;"></div>
</div>
</td>
</tr>
}
#dashboard .widget-title a {
- .base-link;
- .chevron-link;
+ .highlighted-link;
}
/*CONFIGURATION*/
ul.sidebar li > a {
.highlighted-link;
- .chevron-link;
}
ul.sidebar li.active {
}
div.barchart > div {
- background-color: #4B9FD5;
+ background-color: @darkBlue;
height: 0.9em;
}
* Links
*/
-a {
- cursor: pointer;
-}
-
.link() {
outline: none;
text-decoration: none;
}
}
-.chevron-link {
- &:after {
- content: "\f105";
- position: relative;
- top: -1px;
- vertical-align: middle;
- margin-left: 0.4em;
- font-family: 'sonar';
- speak: none;
- font-style: normal;
- font-weight: normal;
- font-variant: normal;
- text-transform: none;
- line-height: 1;
- }
-}
-
.base-link {
color: @baseFontColor;
.link;
.link;
}
+.underlined-link {
+ .highlighted-link;
+ border-bottom: 1px solid @lightBlue;
+
+ &.link-red { .widget-link-red; }
+}
+
.icon-with-link {
outline: none;
text-decoration: none;
}
}
+a {
+ cursor: pointer;
+ .highlighted-link;
+}
+
/*
anchor= 'L' + options[:line].to_s
end
link_to(name || resource.name, {:controller => 'resource', :action => 'index', :anchor => anchor, :id => resource.id, :period => period_index, :tab => options[:tab], :rule => options[:rule],
- :metric => options[:metric], :display_title => true}, :popup => ['resource', 'height=800,width=900,scrollbars=1,resizable=1'], :title => options[:title])
+ :metric => options[:metric], :display_title => true}, :popup => ['resource', 'height=800,width=900,scrollbars=1,resizable=1'], :title => options[:title], :class => options[:class])
end
end
end
elsif column.key=='name'
- "#{qualifier_icon(row.snapshot)} #{link_to(h(row.snapshot.resource.name(true)), {:controller => 'dashboard', :id => row.snapshot.resource_id}, {:title => h(row.snapshot.resource.key), :class => 'highlighted-link chevron-link'})}"
+ "#{qualifier_icon(row.snapshot)} #{link_to(h(row.snapshot.resource.name(true)), {:controller => 'dashboard', :id => row.snapshot.resource_id}, {:title => h(row.snapshot.resource.key), :class => 'underlined-link'})}"
elsif column.key=='short_name'
"#{qualifier_icon(row.snapshot)} #{link_to(h(row.snapshot.resource.name(false)), {:controller => 'dashboard', :id => row.snapshot.resource_id}, {:title => h(row.snapshot.resource.key), :class => 'highlighted-link'})}"
elsif column.key=='date'
<td class="left" x="<%= u(snapshot.project.name) -%>">
<%= qualifier_icon(snapshot) %>
<% if snapshot.display_dashboard? %>
- <%= link_to_resource(project, h(snapshot.project.name), :class => 'chevron-link highlighted-link') %>
+ <%= link_to_resource(project, h(snapshot.project.name), :class => 'underlined-link') %>
<% else %>
<%= h snapshot.project.name %>
<% end %>
<tr class="<%= css -%> <%= 'selected' if selected -%>">
<td><i class="icon-severity-<%= severity.downcase -%>"></i></td>
<td>
- <%= link_to message("severity.#{severity}"), {:controller => :drilldown, :action => :issues, :id => @resource.id, :severity => (selected ? nil : severity), :period => @period}, :class => 'chevron-link highlighted-link' %>
+ <%= link_to message("severity.#{severity}"), {:controller => :drilldown, :action => :issues, :id => @resource.id, :severity => (selected ? nil : severity), :period => @period}, :class => 'underlined-link' %>
</td>
<td style="padding-left: 10px;" align="right" nowrap>
<%= @period ? format_variation(measure, :index => @period, :style => 'light') : format_measure(measure) -%>
:rule_sev => (selected ? nil : rule_measure.severity), :sid => nil, :severity => @severity, :period => @period,
:rids => (selected ? nil : @selected_rids)},
:title => "#{rule.plugin_name}: #{rule.plugin_rule_key}",
- :class => 'chevron-link highlighted-link'
+ :class => 'underlined-link'
) -%>
</td>
<td class="right" nowrap="nowrap">
<%= qualifier_icon(resource) -%>
<% if resource.source_code? %>
<a href="#" alt="<%= h resource.name(true) -%>" title="<%= h resource.name(true) -%>" data-key="<%= resource.key -%>"
- class="js-drilldown-link chevron-link highlighted-link"><%= h resource.name(false) %></a>
+ class="js-drilldown-link underlined-link"><%= h resource.name(false) %></a>
<% else %>
- <%= link_to(h(resource.name), {:only_path => true, :overwrite_params => {:rids => (selected ? rids-[resource.id] : rids+[resource.id])}}, :class => 'chevron-link highlighted-link') -%>
+ <%= link_to(h(resource.name), {:only_path => true, :overwrite_params => {:rids => (selected ? rids-[resource.id] : rids+[resource.id])}}, :class => 'underlined-link') -%>
<% end %>
</td>
<td class="right" nowrap>
<%= qualifier_icon(resource) -%>
<% if resource.source_code? %>
<a href="#" title="<%= h resource.name(true) -%>" data-key="<%= resource.key -%>"
- class="js-drilldown-link chevron-link highlighted-link"><%= h resource.name(false) %></a>
+ class="js-drilldown-link underlined-link"><%= h resource.name(false) %></a>
<% else %>
<%= link_to(h(resource.name), {:only_path => true, :overwrite_params => {:rids => (selected ? rids-[resource.id] : rids+[resource.id])}}, :class => 'chevron-link highlighted-link') -%>
<% end %>