Browse Source

调整站点详情的url展示长度

pull/338/head
呱呱呱 2 years ago
parent
commit
d22a18a8fe
1 changed files with 11 additions and 8 deletions
  1. +11
    -8
      app/views/admins/site_pages/shared/_info_list.html.erb

+ 11
- 8
app/views/admins/site_pages/shared/_info_list.html.erb View File

@@ -1,21 +1,21 @@
<table class="table table-hover identity-verifications-list-table">
<thead class="thead-light">
<tr>
<th width="10%">序号</th>
<th width="10%" class="text-left">昵称</th>
<th width="5%">序号</th>
<th width="5%" class="text-left">昵称</th>
<th width="10%" class="text-left">仓库</th>
<th width="10%">站点状态</th>
<th width="5%">站点状态</th>
<th width="10%" class="text-left">站点名</th>
<th width="10%" class="text-left">站点标识</th>
<th width="20%" class="text-left">站点地址</th>
<th width="10%" class="text-left">站点地址</th>

<th width="10%" class="text-left">建站工具</th>
<th width="5%" class="text-left">建站工具</th>
<th width="10%" class="text-left">主题</th>
<th width="10%" class="text-left">上次构建时间</th>

<th width="10%"><%= sort_tag('创建于', name: 'created_at', path: admins_site_pages_path) %></th>
<th width="14%">操作</th>
<th width="10%">操作</th>
</tr>
</thead>
<tbody>
@@ -36,8 +36,11 @@
<td><%= display_text(site_page.state == true ? "正常" : "已关闭") %></td>
<td><%= display_text(site_page.site_name) %></td>
<td><%= display_text(site_page.identifier) %></td>
<td><%= link_to "#{site_page.url}", site_page.url, target: '_blank'%></td>
<td class="text-left">
<%= link_to "#{site_page.url}", target: '_blank' do %>
<%= overflow_hidden_span site_page.url, width: 120 %>
<% end %>
</td>
<td><%= display_text(site_page.language_frame) %></td>
<td><%= display_text(site_page.theme) %></td>
<td><%= display_text(site_page.last_build_at&.strftime('%Y-%m-%d %H:%M')) %></td>


Loading…
Cancel
Save