1、调整admin界面项目列表显示样式

2、项目列表增加序号
tmp
sw 10 years ago
parent f9880a00fd
commit d48a733502

@ -1,5 +1,5 @@
<div class="contextual">
<%= link_to l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add' %>
<%= link_to l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add' %>
</div>
<h3>
@ -7,7 +7,7 @@
</h3>
<%= form_tag({}, :method => :get) do %>
<fieldset>
<fieldset>
<legend>
<%= l(:label_filter_plural) %>
</legend>
@ -21,27 +21,35 @@
<%= text_field_tag 'name', params[:name], :size => 30 %>
<%= submit_tag l(:button_apply), :class => "small", :name => nil %>
<%= link_to l(:button_clear), {:controller => 'admin', :action => 'projects'}, :class => 'icon icon-reload' %>
</fieldset>
</fieldset>
<% end %>
&nbsp;
<div class="autoscroll">
<table class="list" style="width: 100%;table-layout: fixed">
<thead><tr>
<th>
<table class="list" style="width: 100%;table-layout: fixed">
<thead>
<tr>
<th style="width: 30px;">
序号
</th>
<th style="width: 120px;">
<%=l(:label_project)%>
</th>
<th>
<th style="width: 20px;">
<%=l(:field_is_public)%>
</th>
<th>
<th style="width: 30px;">
<%=l(:field_created_on)%>
</th>
<th></th>
</tr></thead>
<th style="width: 70px;"></th>
</tr>
</thead>
<tbody>
<% project_tree(@projects) do |project, level| %>
<% project_tree(@projects) do |project, level| %>
<tr class="<%= cycle("odd", "even") %> <%= project.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>">
<td style="text-align: center;">
<%= project.id %>
</td>
<td style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" class="name" title='<%=project.name%>'>
<span>
<%= link_to_project_settings(project, {}) %>
@ -60,9 +68,9 @@
<%= link_to(l(:button_delete), project_path(project), :method => :delete, :class => 'icon icon-del') %>
</td>
</tr>
<% end %>
<% end %>
</tbody>
</table>
</table>
</div>
<% html_title(l(:label_project_plural)) -%>

Loading…
Cancel
Save