|
|
|
@@ -11,16 +11,16 @@ |
|
|
|
</thead> |
|
|
|
<tbody> |
|
|
|
<% if page_themes.present? %> |
|
|
|
<% page_themes.each_with_index do |banner, index| %> |
|
|
|
<tr class="page-theme-item-<%= banner.id %>"> |
|
|
|
<% page_themes.each_with_index do |theme, index| %> |
|
|
|
<tr class="page-theme-item-<%= theme.id %>"> |
|
|
|
<td><%= list_index_no((params[:page] || 1).to_i, index) %></td> |
|
|
|
<td><%= banner.language_frame %></td> |
|
|
|
<td><%= banner.name %></td> |
|
|
|
<td><img style="width:150px" src="<%= banner.image_url %>" /></td> |
|
|
|
<td><a href="<%= banner.clone_url %>" target="_blank"><%= banner.clone_url %></a> </td> |
|
|
|
<td><%= theme.language_frame %></td> |
|
|
|
<td><%= theme.name %></td> |
|
|
|
<td><img style="width:150px" src="<%= theme.image %>" /></td> |
|
|
|
<td><a href="<%= theme.clone_url %>" target="_blank"><%= theme.clone_url %></a> </td> |
|
|
|
<td class="action-container"> |
|
|
|
<%= link_to "编辑", edit_admins_page_theme_path(banner), remote: true, class: "action" %> |
|
|
|
<%= link_to "删除", admins_page_theme_path(banner), method: :delete, data:{confirm: "确认删除的吗?"}, class: "action" %> |
|
|
|
<%= link_to "编辑", edit_admins_page_theme_path(theme), remote: true, class: "action" %> |
|
|
|
<%= link_to "删除", admins_page_theme_path(theme), method: :delete, data:{confirm: "确认删除的吗?"}, class: "action" %> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<% end %> |
|
|
|
|