]> source.dussan.org Git - sonarqube.git/commitdiff
Add some css class
authorJulien Lancelot <julien.lancelot@gmail.com>
Fri, 7 Jun 2013 14:50:13 +0000 (16:50 +0200)
committerJulien Lancelot <julien.lancelot@gmail.com>
Fri, 7 Jun 2013 14:50:13 +0000 (16:50 +0200)
sonar-server/src/main/webapp/WEB-INF/app/views/issue/_issue.html.erb
sonar-server/src/main/webapp/WEB-INF/app/views/issue/_show.html.erb
sonar-server/src/main/webapp/WEB-INF/app/views/issues/_list.html.erb

index 20330a2c6ae96c04d482c90d33065423a7f00ab9..8c1aeb6b0efb50c48a3c105b472b152acae983c1 100644 (file)
@@ -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}") -%>">
     &nbsp;
-    <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>
     &nbsp;
     <% if issue.resolution %>
       <img src="<%= ApplicationController.root_context -%>/images/sep12.png"/>
@@ -21,7 +21,7 @@
     <% end %>
     <img src="<%= ApplicationController.root_context -%>/images/sep12.png"/>
     &nbsp;
-    <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>
     &nbsp;
     <% if issue.reporter %>
       <img src="<%= ApplicationController.root_context -%>/images/sep12.png"/>
index 5344eafcecab92abe3043640fe466ea4e6099458..f7361ecbd0785d6ef9ca66f0b47c9c881ec6ce7e 100644 (file)
@@ -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
index d9302fe3018e5c828a597c1303acd895d0d8d8dd..0952add6b13c6ab2554f8ee100a8a580ea758809 100644 (file)
     <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>
           <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>