代码评审样式调整
This commit is contained in:
parent
5824f70fe3
commit
0342dfa4c5
|
@ -51,7 +51,7 @@ function change_option(flag) {
|
|||
<% else %>
|
||||
|
||||
|
||||
<table class="list">
|
||||
<table class="list" style="width:100%;table-layout: fixed;">
|
||||
<thead>
|
||||
<tr>
|
||||
<%= sort_header_tag "#{Issue.table_name}.id", :caption => '#' %>
|
||||
|
@ -70,18 +70,18 @@ function change_option(flag) {
|
|||
<tbody>
|
||||
<% for review in @reviews %>
|
||||
<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',
|
||||
:id => review.issue.id}, :title => review.issue.subject %>
|
||||
</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 %>
|
||||
</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 %>
|
||||
</td>
|
||||
<td class="path">
|
||||
<td class="path" style="text-overflow:ellipsis;white-space:nowrap;overflow:hidden;">
|
||||
<%
|
||||
review_path = URI.decode(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) -%>
|
||||
</td>
|
||||
<td><%=h review.line %></td>
|
||||
<td><%=h review.revision %></td>
|
||||
<td><%=h review.committer %></td>
|
||||
<td><%=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 review.line %>"><%=h review.line %></td>
|
||||
<td style="text-overflow:ellipsis;white-space:nowrap;overflow:hidden;" title="<%=h review.revision %>"><%=h review.revision %></td>
|
||||
<td style="text-overflow:ellipsis;white-space:nowrap;overflow:hidden;" title="<%=h review.committer %>"><%=h review.committer %></td>
|
||||
<td style="text-overflow:ellipsis;white-space:nowrap;overflow:hidden;" title="<%=h review.user.name %>"><%=h review.user.name %></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>
|
||||
<% end %>
|
||||
</tbody>
|
||||
|
|
Loading…
Reference in New Issue