diff options
author | Julien Lancelot <julien.lancelot@gmail.com> | 2013-06-07 16:50:13 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@gmail.com> | 2013-06-07 16:50:13 +0200 |
commit | b2c43d4ba71d645a54ad211e66a8941e31c09ca3 (patch) | |
tree | 9aa4308162ad4ae6ad6daae36f28a9674af2b2d3 /sonar-server | |
parent | b22fd0e51b66fda30a7460dd7c0ac819822dfdd8 (diff) | |
download | sonarqube-b2c43d4ba71d645a54ad211e66a8941e31c09ca3.tar.gz sonarqube-b2c43d4ba71d645a54ad211e66a8941e31c09ca3.zip |
Add some css class
Diffstat (limited to 'sonar-server')
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 @@ <div class="code-issue" data-issue-key="<%= issue.key -%>" data-issue-component="<%= issue.componentKey() -%>" data-issue-rule="<%= issue.ruleKey().toString() -%>"> <div class="code-issue-name"> <div style="float: right"> - <a href="#" onclick="return openIssuePopup(this)"><img src="<%= ApplicationController.root_context -%>/images/new-window-16.gif"></a> + <a href="#" onclick="return openIssuePopup(this)" class="issue-permalink"><img src="<%= ApplicationController.root_context -%>/images/new-window-16.gif"></a> </div> <img src="<%= ApplicationController.root_context -%>/images/priority/<%= issue.severity -%>.png" title="<%= h message("severity.#{issue.severity}") -%>"> - <a href="#" onclick="return toggleIssueRule(this)" class="rulename"><%= h Internal.rules.ruleL10nName(@issue_results.rule(issue)) -%></a> + <a href="#" onclick="return toggleIssueRule(this)" class="rulename issue-rule-link"><%= h Internal.rules.ruleL10nName(@issue_results.rule(issue)) -%></a> <% if issue.resolution %> <img src="<%= ApplicationController.root_context -%>/images/sep12.png"/> @@ -21,7 +21,7 @@ <% end %> <img src="<%= ApplicationController.root_context -%>/images/sep12.png"/> - <a href="#" onclick="return toggleIssueChangelog(this)" class="gray"><%= distance_of_time_in_words_to_now(Api::Utils.java_to_ruby_datetime(issue.creationDate())) -%></a> + <a href="#" onclick="return toggleIssueChangelog(this)" class="gray issue-changelog-link"><%= distance_of_time_in_words_to_now(Api::Utils.java_to_ruby_datetime(issue.creationDate())) -%></a> <% if issue.reporter %> <img src="<%= ApplicationController.root_context -%>/images/sep12.png"/> 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 @@ -<div class="source_title"> - <% - project = @issue_results.project(@issue) - component = @issue_results.component(@issue) - %> +<div class="issue-detail"> + <div class="source_title"> + <% + project = @issue_results.project(@issue) + component = @issue_results.component(@issue) + %> - <% if @issue.componentKey() != project.key() %> - <div class="subtitle"> - <%= h project.longName() -%> - </div> - <% end %> - <span class="h1"> - <% if component %> - <%= qualifier_icon(component) %> - <a href="<%= ApplicationController.root_context -%>/resource/index/<%= component.key() -%>?layout=false&tab=issues" - onclick="window.open(this.href,'resource-<%= component.key().parameterize -%>','height=800,width=900,scrollbars=1,resizable=1');return false;"><%= h component.longName() -%></a> - <% else %> - <%= h @issue.componentKey() %> [<del><%= message('issue.component_deleted') %></del>] + <% if @issue.componentKey() != project.key() %> + <div class="subtitle"> + <%= h project.longName() -%> + </div> <% end %> - </span> -</div> - -<div class="marginbottom10"> -<%= render :partial => 'issue/issue', :locals => {:issue => @issue_results.first} -%> -</div> + <span class="h1"> + <% if component %> + <%= qualifier_icon(component) %> + <a href="<%= ApplicationController.root_context -%>/resource/index/<%= component.key() -%>?layout=false&tab=issues" class="issue-component-link" + onclick="window.open(this.href,'resource-<%= component.key().parameterize -%>','height=800,width=900,scrollbars=1,resizable=1');return false;"><%= h component.longName() -%></a> + <% else %> + <%= h @issue.componentKey() %> [<del><%= message('issue.component_deleted') %></del>] + <% end %> + </span> + </div> -<% if @snapshot && @issue.line && params[:source]!='false' %> - <div class="bordered"> - <%= snapshot_html_source(@snapshot, {:line_range => (@issue.line-5)..(@issue.line+5), :highlighted_lines => [@issue.line]}) -%> + <div class="marginbottom10"> + <%= render :partial => 'issue/issue', :locals => {:issue => @issue_results.first} -%> </div> -<% end %> + + <% if @snapshot && @issue.line && params[:source]!='false' %> + <div class="bordered"> + <%= snapshot_html_source(@snapshot, {:line_range => (@issue.line-5)..(@issue.line+5), :highlighted_lines => [@issue.line]}) -%> + </div> + <% end %> +</div>
\ 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 @@ <table class="data width100"> <thead> <tr> - <th width="1%" nowrap> + <th width="1%" nowrap class="column-severity"> <%= column_html(@filter, message('severity_abbreviated'), message('severity'), 'SEVERITY') %> </th> - <th width="1%" nowrap> + <th width="1%" nowrap class="column-status"> <%= column_html(@filter, message('status'), message('status'), 'STATUS') %> </th> <th width="1%" nowrap> @@ -43,16 +43,16 @@ <th nowrap> <%= message('component') -%> </th> - <th> + <th class="column-assignee"> <%= column_html(@filter, message('issue_filter.header.assignee'), message('issue_filter.header.assignee'), 'ASSIGNEE') %> </th> <th width="1%" nowrap> <%= message('issue_filter.header.action_plan') -%> </th> - <th width="1%" nowrap> + <th width="1%" nowrap class="column-creation-date"> <%= column_html(@filter, message('issue_filter.header.creation_date'), message('issue_filter.header.creation_date'), 'CREATION_DATE') %> </th> - <th width="1%" nowrap> + <th width="1%" nowrap class="column-update-date"> <%= column_html(@filter, message('issue_filter.header.update_date'), message('issue_filter.header.update_date'), 'UPDATE_DATE') %> </th> </tr> @@ -72,7 +72,7 @@ <%= message("issue.resolution.#{issue.resolution}") if issue.resolution -%> </td> <td> - <a class='open-modal rule-modal' modal-width='900' href='<%= url_for :controller => 'issue', :action => 'show', :id => issue.key, :modal => true -%>'> + <a class='open-modal rule-modal issue-detail-link' modal-width='900' href='<%= url_for :controller => 'issue', :action => 'show', :id => issue.key, :modal => true -%>'> <%= h truncate(issue.message, :length => 100) -%></a> </td> <td> |