adminsite 3.2.0 → 3.2.1
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 +4 -4
- data/Gemfile.lock +1 -1
- data/app/controllers/adminsite/admin/resources_controller.rb +1 -1
- data/app/views/adminsite/admin/adminsite_page_layouts/index.html.haml +3 -2
- data/app/views/adminsite/admin/adminsite_pages/index.html.haml +4 -2
- data/app/views/adminsite/admin/crud/show.html.haml +2 -2
- data/app/views/adminsite/admin/resources/_list.haml +3 -8
- data/app/views/adminsite/admin/resources/_list_actions.html.haml +4 -0
- data/lib/adminsite/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 754b4b138ee03318ea3d2155e709ae477127aef1
|
4
|
+
data.tar.gz: 1f440edada2614f81df6c50146429f49f72d254b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c12d04ab8543ec31da0890a29cb9369b9ea12c5f98296a5c37a8d79b6f2a2ed8adfa42d52a25aee2d46091e0c7332dd68a5af464d0f4f264cdf09de36b46c6f
|
7
|
+
data.tar.gz: 19685da4087543c4fbed9d34e5e23e4cf16d9db4b277f0110db8d6aa5c27d9128ceec4e7632bf0626c104e063ee43beadc243d9a4fd2dd625710e3a587f50df9
|
data/Gemfile.lock
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
- content_for :header_left do
|
5
5
|
= "Listing #{label_resource_class_plural}"
|
6
6
|
- content_for :header_right do
|
7
|
-
|
7
|
+
#action_bar
|
8
|
+
= link_to_new "New #{label_resource_class}"
|
8
9
|
There are no page layouts. Go ahead and
|
9
|
-
#{link_to 'add the first one',
|
10
|
+
#{link_to 'add the first one', admin_resource_path(nil, :new)}.
|
@@ -4,13 +4,15 @@
|
|
4
4
|
- content_for :header_left do
|
5
5
|
= "Listing #{label_resource_class_plural}"
|
6
6
|
- content_for :header_right do
|
7
|
-
|
7
|
+
#action_bar
|
8
|
+
= link_to_new "New #{label_resource_class}"
|
8
9
|
There are no pages. Go ahead and
|
9
10
|
#{link_to 'add the first one', new_admin_adminsite_page_path}.
|
10
11
|
- else
|
11
12
|
- content_for :header_left do
|
12
13
|
= "Listing #{label_resource_class_plural}"
|
13
14
|
- content_for :header_right do
|
14
|
-
|
15
|
+
#action_bar
|
16
|
+
= link_to_new "New #{label_resource_class}"
|
15
17
|
You should #{link_to 'add a page layout', new_admin_adminsite_page_layout_path}
|
16
18
|
before adding your first page.
|
@@ -1,8 +1,8 @@
|
|
1
1
|
- content_for :header_left do
|
2
2
|
= controller_name
|
3
3
|
- content_for :header_right do
|
4
|
-
#
|
5
|
-
= link_to_back
|
4
|
+
#action_bar
|
5
|
+
= link_to_back
|
6
6
|
|
7
7
|
- if Rails.env.development?
|
8
8
|
please override in '/app/views/adminsite/admin/#{controller_name}/show.html.haml'
|
@@ -14,18 +14,13 @@
|
|
14
14
|
- @resources.each do |resource|
|
15
15
|
%tr{onclick: 'Adminsite.selectedRow(this);'}
|
16
16
|
- if resource_admin_config.actions_placement == :left
|
17
|
-
|
18
|
-
%ul
|
19
|
-
- resource_admin_config.default_member_actions(resource).each do |action|
|
20
|
-
%li= send("link_to_#{action}", resource)
|
17
|
+
= render partial: 'list_actions', locals: {resource: resource }
|
21
18
|
%td.resource_selection_cell
|
22
19
|
= check_box_tag 'collection_selection[]', resource.id, false, :class => 'collection_selection'
|
23
20
|
- resource_admin_config.attributes_index.each do |attr|
|
24
21
|
= display_resource_value(resource, attr)
|
25
22
|
- if resource_admin_config.actions_placement == :right
|
26
|
-
|
27
|
-
%ul
|
28
|
-
- resource_admin_config.default_member_actions(resource).each do |action|
|
29
|
-
%li= send("link_to_#{action}", resource)
|
23
|
+
= render partial: 'list_actions', locals: {resource: resource }
|
30
24
|
|
31
25
|
= paginate(@resources, :window => 2)
|
26
|
+
|
data/lib/adminsite/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: adminsite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robin Wunderlin
|
@@ -318,6 +318,7 @@ files:
|
|
318
318
|
- app/views/adminsite/admin/resources/_filters.html.haml
|
319
319
|
- app/views/adminsite/admin/resources/_form.haml
|
320
320
|
- app/views/adminsite/admin/resources/_list.haml
|
321
|
+
- app/views/adminsite/admin/resources/_list_actions.html.haml
|
321
322
|
- app/views/adminsite/admin/resources/_search_form.html.haml
|
322
323
|
- app/views/adminsite/admin/resources/edit.haml
|
323
324
|
- app/views/adminsite/admin/resources/index.haml
|