代码评审样式调整

This commit is contained in:
linhk 2014-09-17 16:02:57 +08:00
parent 5824f70fe3
commit 0342dfa4c5
1 changed files with 10 additions and 10 deletions

View File

@ -51,7 +51,7 @@ function change_option(flag) {
<% else %> <% else %>
<table class="list"> <table class="list" style="width:100%;table-layout: fixed;">
<thead> <thead>
<tr> <tr>
<%= sort_header_tag "#{Issue.table_name}.id", :caption => '#' %> <%= sort_header_tag "#{Issue.table_name}.id", :caption => '#' %>
@ -70,18 +70,18 @@ function change_option(flag) {
<tbody> <tbody>
<% for review in @reviews %> <% for review in @reviews %>
<tr class="<%= cycle 'odd', 'even' %>"> <tr class="<%= cycle 'odd', 'even' %>">
<td> <td style="text-overflow:ellipsis;white-space:nowrap;overflow:hidden;">
<%= link_to review.issue.id.to_s, {:controller => 'issues', :action => 'show', <%= link_to review.issue.id.to_s, {:controller => 'issues', :action => 'show',
:id => review.issue.id}, :title => review.issue.subject %> :id => review.issue.id}, :title => review.issue.subject %>
</td> </td>
<td class="status"> <td class="status" style="text-overflow:ellipsis;white-space:nowrap;overflow:hidden;" title="<%=h review.issue.status %>">
<%=h review.issue.status %> <%=h review.issue.status %>
</td> </td>
<td class="subject"> <td class="subject" style="text-overflow:ellipsis;white-space:nowrap;overflow:hidden;" title="<%=h review.issue.subject %>">
<%=h review.issue.subject %> <%=h review.issue.subject %>
</td> </td>
<td class="path"> <td class="path" style="text-overflow:ellipsis;white-space:nowrap;overflow:hidden;">
<% <%
review_path = URI.decode(review.path) review_path = URI.decode(review.path)
codepath = review_path codepath = review_path
@ -91,11 +91,11 @@ function change_option(flag) {
-%> -%>
<%= link_to(raw(codepath), {:controller => 'code_review', :action => 'show', :id => @project, :review_id => review.id}, :title => review_path) -%> <%= link_to(raw(codepath), {:controller => 'code_review', :action => 'show', :id => @project, :review_id => review.id}, :title => review_path) -%>
</td> </td>
<td><%=h review.line %></td> <td style="text-overflow:ellipsis;white-space:nowrap;overflow:hidden;" title="<%=h review.line %>"><%=h review.line %></td>
<td><%=h review.revision %></td> <td style="text-overflow:ellipsis;white-space:nowrap;overflow:hidden;" title="<%=h review.revision %>"><%=h review.revision %></td>
<td><%=h review.committer %></td> <td style="text-overflow:ellipsis;white-space:nowrap;overflow:hidden;" title="<%=h review.committer %>"><%=h review.committer %></td>
<td><%=h review.user.name %></td> <td style="text-overflow:ellipsis;white-space:nowrap;overflow:hidden;" title="<%=h review.user.name %>"><%=h review.user.name %></td>
<td><%=h format_time(review.created_at) %></td> <td style="text-overflow:ellipsis;white-space:nowrap;overflow:hidden;" title="<%=h format_time(review.created_at) %>"><%=h format_time(review.created_at) %></td>
</tr> </tr>
<% end %> <% end %>
</tbody> </tbody>