From: Julien Lancelot Date: Fri, 19 Jul 2013 16:36:43 +0000 (+0200) Subject: Improve issues design X-Git-Tag: 3.7~40 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4db38e9ae34b270f4890d59ab447dfdeec91efab;p=sonarqube.git Improve issues design --- 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 1eec5217a22..41c89469d56 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 @@ -1,6 +1,6 @@ <% if @issues_result.issues && !@issues_result.issues.empty? - colspan = 9 + colspan = 6 %> <% if @issues_result && @issues_result.maxResultsReached() %>

<%= message('issue_filter.max_results_reached', :params => @issues_result.paging.total()) -%>

@@ -15,15 +15,9 @@ <%= column_html(@issues_query, @issues_result, message('status'), message('status'), 'STATUS') %> - - <%= message('issue_filter.header.resolution') -%> - <%= message('description') -%> - - <%= message('project') -%> - <%= message('component') -%> @@ -33,9 +27,6 @@ <%= message('issue_filter.header.action_plan') -%> - - <%= column_html(@issues_query, @issues_result, message('issue_filter.header.creation_date'), message('issue_filter.header.creation_date'), 'CREATION_DATE') %> - <%= column_html(@issues_query, @issues_result, message('issue_filter.header.update_date'), message('issue_filter.header.update_date'), 'UPDATE_DATE') %> @@ -49,23 +40,25 @@ - + <%= message("issue.status.#{issue.status}") -%> - - - <%= message("issue.resolution.#{issue.resolution}") if issue.resolution -%> + <% if issue.resolution %> + [<%= message("issue.resolution.#{issue.resolution}") -%>] + <% end %> 'show', :id => issue.key, :modal => true -%>'> <%= h truncate(issue.message, :length => 100) -%> - <%= h (truncate(@issues_result.project(issue).name, :length => 100)) -%> - - - <% component = @issues_result.component(issue) %> + <% project = @issues_result.project(issue) + component = @issues_result.component(issue) -%> +
<%= h (truncate(project.name, :length => 100)) -%>
<% if component %> - <%= h component.longName() -%> + + <% if component.key != project.key %> + <%= h component.longName() -%> + <% end %> <% else %> <%= h issue.componentKey() %> <% end %> @@ -76,9 +69,6 @@ <%= h @issues_result.actionPlan(issue).name if issue.actionPlanKey() -%> - - <%= human_short_date(Api::Utils.java_to_ruby_datetime(issue.creationDate())) -%> - <%= human_short_date(Api::Utils.java_to_ruby_datetime(issue.updateDate())) -%>