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

This commit is contained in:
呱呱呱 2023-08-28 10:51:18 +08:00
parent 484d769f1b
commit d22a18a8fe
1 changed files with 11 additions and 8 deletions

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>