Skip to content

Commit 4a57d78

Browse files
committed
后台酷站列表改进,显示提交者.
1 parent fc43a7e commit 4a57d78

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

app/views/cpanel/sites/index.html.erb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@
33
<div id="cpanel_sites">
44
<table class="table table-bordered table-striped table-condensed">
55
<tr class="head">
6-
<td>编号</td>
7-
<td><%= t("mongoid.attributes.site.name") %></td>
8-
<td><%= t("mongoid.attributes.site.url") %></td>
9-
<td><%= t("mongoid.attributes.site.desc") %></td>
10-
<td style="width:100px"><%= t("mongoid.attributes.site.site_node") %></td>
11-
<td style="width:100px">At</td>
12-
<td style="width:40px" class="opts"></td>
6+
<td style="width:40px;">编号</td>
7+
<td style="width:140px;">网站</td>
8+
<td>信息</td>
9+
<td>提交人</td>
10+
<td style="width:100px">节点</td>
11+
<td style="width:105px">时间</td>
12+
<td style="width:30px" class="opts"></td>
1313
</tr>
1414
<% @sites.each do |item| %>
1515
<tr class="<%= cycle("","even") %><%= ' deleted' if !item.deleted_at.blank? %>">
1616
<td><%= item.id %></td>
1717
<td><%= item.name %></td>
18-
<td><%= item.url %></td>
19-
<td><%= item.desc %></td>
18+
<td><%= link_to item.url,item.url, target: "_blank" %><br /><small class="muted"><%= item.desc %></small></td>
19+
<td><%= user_name_tag(item.user) %></td>
2020
<td><%= item.site_node.name if !item.site_node.blank? %></td>
2121
<td><%= l(item.created_at, :format => :short) %></td>
2222
<td>

0 commit comments

Comments
 (0)