Merge pull request '修复排序' (#128) from KingChan/forgeplus:chenjing into standalone_develop

This commit is contained in:
KingChan 2023-08-29 09:32:57 +08:00
commit 913552a2c4
3 changed files with 5 additions and 3 deletions

View File

@ -3,7 +3,7 @@ class Admins::IdentityVerificationQuery < ApplicationQuery
attr_reader :params
sort_columns :updated_at, default_by: :updated_at, default_direction: :desc
sort_columns :created_at, default_by: :created_at, default_direction: :desc
def initialize(params)
@params = params

View File

@ -41,7 +41,7 @@
<% logo_img = @page_theme.image %>
<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' %>"/>
<%= 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>
</div>
<div class="logo-item-right">

View File

@ -3,7 +3,8 @@
<tr>
<th width="5%">序号</th>
<th width="10%">建站工具</th>
<th width="20%">主题名</th>
<th width="5%">顺序</th>
<th width="15%">主题名</th>
<th width="20%">图片</th>
<th width="25%">仓库url</th>
<th width="20%">操作</th>
@ -15,6 +16,7 @@
<tr class="page-theme-item-<%= theme.id %>">
<td><%= list_index_no((params[:page] || 1).to_i, index) %></td>
<td><%= theme.language_frame %></td>
<td><%= theme.order_index %></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>