项目-设置-问题-居中;

exceptionHandle
yanxd 12 years ago
parent 5e9bb9a99f
commit 8043c527ce

@ -1,29 +1,29 @@
<% if @project.issue_categories.any? %> <% if @project.issue_categories.any? %>
<table class="list"> <table class="list">
<thead><tr> <thead><tr>
<th><%= l(:label_issue_category) %></th> <th><%= l(:label_issue_category) %></th>
<th><%= l(:field_assigned_to) %></th> <th><%= l(:field_assigned_to) %></th>
<th></th> <th></th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<% for category in @project.issue_categories %> <% for category in @project.issue_categories %>
<% unless category.new_record? %> <% unless category.new_record? %>
<tr class="<%= cycle 'odd', 'even' %>"> <tr class="text_center <%= cycle 'odd', 'even' %>">
<td><%=h(category.name) %></td> <td><%=h(category.name) %></td>
<td><%=h(category.assigned_to.name) if category.assigned_to %></td> <td><%=h(category.assigned_to.name) if category.assigned_to %></td>
<td class="buttons"> <td class="buttons">
<% if User.current.allowed_to?(:manage_categories, @project) %> <% if User.current.allowed_to?(:manage_categories, @project) %>
<%= link_to l(:button_edit), edit_issue_category_path(category), :class => 'icon icon-edit' %> <%= link_to l(:button_edit), edit_issue_category_path(category), :class => 'icon icon-edit' %>
<%= delete_link issue_category_path(category) %> <%= delete_link issue_category_path(category) %>
<% end %> <% end %>
</td> </td>
</tr> </tr>
<% end %> <% end %>
<% end %> <% end %>
</tbody> </tbody>
</table> </table>
<% else %> <% else %>
<p class="nodata"><%= l(:label_no_data) %></p> <p class="nodata"><%= l(:label_no_data) %></p>
<% end %> <% end %>
<p><%= link_to l(:label_issue_category_new), new_project_issue_category_path(@project), :class => 'icon icon-add' if User.current.allowed_to?(:manage_categories, @project) %></p> <p><%= link_to l(:label_issue_category_new), new_project_issue_category_path(@project), :class => 'icon icon-add' if User.current.allowed_to?(:manage_categories, @project) %></p>

@ -1,5 +1,8 @@
/* TODO: base/common/page YUI /* TODO: base/common/page YUI
*******************************************************************************/ *******************************************************************************/
.text_center{
text-align: center;
}
/* /*
*******************************************************************************/ *******************************************************************************/

Loading…
Cancel
Save