From b2c43d4ba71d645a54ad211e66a8941e31c09ca3 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Fri, 7 Jun 2013 16:50:13 +0200 Subject: [PATCH] Add some css class --- .../WEB-INF/app/views/issue/_issue.html.erb | 6 +- .../WEB-INF/app/views/issue/_show.html.erb | 56 ++++++++++--------- .../WEB-INF/app/views/issues/_list.html.erb | 12 ++-- 3 files changed, 38 insertions(+), 36 deletions(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/issue/_issue.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/issue/_issue.html.erb index 20330a2c6ae..8c1aeb6b0ef 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/issue/_issue.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/issue/_issue.html.erb @@ -1,12 +1,12 @@
- +
">   - <%= h Internal.rules.ruleL10nName(@issue_results.rule(issue)) -%> + <%= h Internal.rules.ruleL10nName(@issue_results.rule(issue)) -%>   <% if issue.resolution %> @@ -21,7 +21,7 @@ <% end %>   - <%= distance_of_time_in_words_to_now(Api::Utils.java_to_ruby_datetime(issue.creationDate())) -%> + <%= distance_of_time_in_words_to_now(Api::Utils.java_to_ruby_datetime(issue.creationDate())) -%>   <% if issue.reporter %> diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/issue/_show.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/issue/_show.html.erb index 5344eafceca..f7361ecbd07 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/issue/_show.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/issue/_show.html.erb @@ -1,31 +1,33 @@ -
- <% - project = @issue_results.project(@issue) - component = @issue_results.component(@issue) - %> +
+
+ <% + project = @issue_results.project(@issue) + component = @issue_results.component(@issue) + %> - <% if @issue.componentKey() != project.key() %> -
- <%= h project.longName() -%> -
- <% end %> - - <% if component %> - <%= qualifier_icon(component) %> - <%= h component.longName() -%> - <% else %> - <%= h @issue.componentKey() %> [<%= message('issue.component_deleted') %>] + <% if @issue.componentKey() != project.key() %> +
+ <%= h project.longName() -%> +
<% end %> -
-
- -
-<%= render :partial => 'issue/issue', :locals => {:issue => @issue_results.first} -%> -
+ + <% if component %> + <%= qualifier_icon(component) %> + <%= h component.longName() -%> + <% else %> + <%= h @issue.componentKey() %> [<%= message('issue.component_deleted') %>] + <% end %> + +
-<% if @snapshot && @issue.line && params[:source]!='false' %> -
- <%= snapshot_html_source(@snapshot, {:line_range => (@issue.line-5)..(@issue.line+5), :highlighted_lines => [@issue.line]}) -%> +
+ <%= render :partial => 'issue/issue', :locals => {:issue => @issue_results.first} -%>
-<% end %> + + <% if @snapshot && @issue.line && params[:source]!='false' %> +
+ <%= snapshot_html_source(@snapshot, {:line_range => (@issue.line-5)..(@issue.line+5), :highlighted_lines => [@issue.line]}) -%> +
+ <% end %> +
\ No newline at end of file diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/issues/_list.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/issues/_list.html.erb index d9302fe3018..0952add6b13 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/issues/_list.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/issues/_list.html.erb @@ -25,10 +25,10 @@ - - - - - @@ -72,7 +72,7 @@ <%= message("issue.resolution.#{issue.resolution}") if issue.resolution -%>
+ <%= column_html(@filter, message('severity_abbreviated'), message('severity'), 'SEVERITY') %> + <%= column_html(@filter, message('status'), message('status'), 'STATUS') %> @@ -43,16 +43,16 @@ <%= message('component') -%> + <%= column_html(@filter, message('issue_filter.header.assignee'), message('issue_filter.header.assignee'), 'ASSIGNEE') %> <%= message('issue_filter.header.action_plan') -%> + <%= column_html(@filter, message('issue_filter.header.creation_date'), message('issue_filter.header.creation_date'), 'CREATION_DATE') %> + <%= column_html(@filter, message('issue_filter.header.update_date'), message('issue_filter.header.update_date'), 'UPDATE_DATE') %>
- 'show', :id => issue.key, :modal => true -%>'> + 'show', :id => issue.key, :modal => true -%>'> <%= h truncate(issue.message, :length => 100) -%> -- 2.39.5