课程模块

sso
daiao 5 years ago
parent 7e2a4504f2
commit 8f6539373e

@ -53,7 +53,7 @@ class Admins::ShixunSettingsQuery < ApplicationQuery
all_shixuns = all_shixuns.where(vip: params[:vip]) if params[:vip]
if params[:no_subject]
shixun_ids = StageShixun.pluck(:shixun_id).uniq
all_shixuns = all_shixuns.where.not(id: shixun_ids)
all_shixuns = all_shixuns.published.where.not(id: shixun_ids)
end
custom_sort(all_shixuns, params[:sort_by], params[:sort_direction])

@ -74,7 +74,7 @@
<div class="mr-5">
<label for="is_wechat_support">
<%= check_box_tag :no_subject, !@sort_json[:no_subject],@sort_json[:no_subject], class:"shixun-settings-select" %>
<span class="only_view">只显示没关联课程</span>
<span class="only_view">已发布没关联课程</span>
</label>
</div>

Loading…
Cancel
Save