| @@ -41,7 +41,7 @@ | |||||
| <% logo_img = @page_theme.image %> | <% logo_img = @page_theme.image %> | ||||
| <div class="logo-item-left mr-3 <%= logo_img ? 'has-img' : '' %>"> | <div class="logo-item-left mr-3 <%= logo_img ? 'has-img' : '' %>"> | ||||
| <img class="logo-item-img nav-logo-img" src="<%= logo_img %>" style="<%= logo_img.present? ? '' : 'display: none' %>"/> | <img class="logo-item-img nav-logo-img" src="<%= logo_img %>" style="<%= logo_img.present? ? '' : 'display: none' %>"/> | ||||
| <%= file_field_tag(:image, accept: 'image/png,image/jpg,image/jpeg',style: "display: none", value: params[:image], required: true) %> | |||||
| <%= file_field_tag(:image, accept: 'image/png,image/jpg,image/jpeg',style: "display: none", value: params[:image]) %> | |||||
| <label for="image" class="logo-item-upload" data-toggle="tooltip" data-title="选择图片"></label> | <label for="image" class="logo-item-upload" data-toggle="tooltip" data-title="选择图片"></label> | ||||
| </div> | </div> | ||||
| <div class="logo-item-right"> | <div class="logo-item-right"> | ||||
| @@ -3,7 +3,8 @@ | |||||
| <tr> | <tr> | ||||
| <th width="5%">序号</th> | <th width="5%">序号</th> | ||||
| <th width="10%">建站工具</th> | <th width="10%">建站工具</th> | ||||
| <th width="20%">主题名</th> | |||||
| <th width="5%">顺序</th> | |||||
| <th width="15%">主题名</th> | |||||
| <th width="20%">图片</th> | <th width="20%">图片</th> | ||||
| <th width="25%">仓库url</th> | <th width="25%">仓库url</th> | ||||
| <th width="20%">操作</th> | <th width="20%">操作</th> | ||||
| @@ -15,6 +16,7 @@ | |||||
| <tr class="page-theme-item-<%= theme.id %>"> | <tr class="page-theme-item-<%= theme.id %>"> | ||||
| <td><%= list_index_no((params[:page] || 1).to_i, index) %></td> | <td><%= list_index_no((params[:page] || 1).to_i, index) %></td> | ||||
| <td><%= theme.language_frame %></td> | <td><%= theme.language_frame %></td> | ||||
| <td><%= theme.order_index %></td> | |||||
| <td><%= theme.name %></td> | <td><%= theme.name %></td> | ||||
| <td><img style="width:150px" src="<%= theme.image %>" /></td> | <td><img style="width:150px" src="<%= theme.image %>" /></td> | ||||
| <td><a href="<%= theme.clone_url %>" target="_blank"><%= theme.clone_url %></a> </td> | <td><a href="<%= theme.clone_url %>" target="_blank"><%= theme.clone_url %></a> </td> | ||||