adminsite 2.1.1 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 19d396b76029c39ad67a1f2d2ef6257eaad32cf6
|
|
4
|
+
data.tar.gz: f3fb9c4f7ef39c13d17caf8550c8d98890da3d69
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c9918c79e62f8c32bbaf4a7d8ae51049180ac3812e04a3adc7e0d13c315d540e0d1b934f7343dc226402b6b06baf04a943fdd3a6cde5103ee3a760082df4b421
|
|
7
|
+
data.tar.gz: 3027a002d44c0e842ba0c1792046054078925536316564a1539a82eacc02aa38282759a4878dee8e55675f9405c8763c0ca09648f088d59fc521cf4d82cdc901
|
data/Gemfile.lock
CHANGED
|
@@ -50,6 +50,7 @@ class Adminsite::Admin::ResourcesController < Adminsite::Admin::CrudController
|
|
|
50
50
|
@q = resources.order(order_params).ransack(params[:q])
|
|
51
51
|
@resources = @q.result.page(params[:page])
|
|
52
52
|
@ransack_params = ransack_params
|
|
53
|
+
@show_search_form = @ransack_params[:q].try(:except, :s).present?
|
|
53
54
|
render :json => @resources if api_call?
|
|
54
55
|
end
|
|
55
56
|
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
- if resource_admin_config.attributes_search.any?
|
|
2
2
|
.search_form
|
|
3
|
-
|
|
4
|
-
%a#
|
|
5
|
-
|
|
6
|
-
= search_form_for(@q, :url => admin_resource_path(nil), method: :get, html: { style: "#{'display:none' unless show_search_form}"} ) do |f|
|
|
3
|
+
%a#show{onClick: 'Adminsite.showSearchForm();', style: "#{'display:none' if @show_search_form}" } Show Filters
|
|
4
|
+
%a#hide{onClick: 'Adminsite.hideSearchForm();', style: "#{'display:none' unless @show_search_form}" } Hide Filters
|
|
5
|
+
= search_form_for(@q, :url => admin_resource_path(nil), method: :get, html: { style: "#{'display:none' unless @show_search_form}"} ) do |f|
|
|
7
6
|
= hidden_field_tag :admin_menu, params[:admin_menu]
|
|
8
7
|
%div{id: "#{controller_name}-search"}
|
|
9
8
|
%ul
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# Be sure to restart your server when you modify this file.
|
|
2
2
|
|
|
3
3
|
# Rails.application.config.assets.paths << Emoji.images_path
|
|
4
|
+
Rails.application.config.assets.paths += %w( adminsite/admin )
|
|
4
5
|
|
|
5
6
|
# Precompile additional assets.
|
|
6
7
|
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
data/lib/adminsite/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: adminsite
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Robin Wunderlin
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2016-03-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|