manage 1.3.25 → 1.3.26
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: d68f55713a2122a1e960e63934610538d8b474e0
|
4
|
+
data.tar.gz: af91801bb4a5b2fec69a5166e9560a1892eac4db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da08bc57fe03c1eed6d30d923008112cebd8d83655272688e660e3dfe215fc2e1d3ddfb142b868646d668f213aebadf104b6fd2eed2c5b32bba9f17ffb6795e1
|
7
|
+
data.tar.gz: 2d5a33ce30c6801ddd327964e8b907a09467c696e19c3bdc6fd7c9ff381f587330ad96ee65c2733163c628f9871d5cfcd52945f9c2d8d8996636468b9c45e0f4
|
@@ -12,7 +12,7 @@ class Manage::ResourceController < Manage::ApplicationController
|
|
12
12
|
|
13
13
|
respond_to :html
|
14
14
|
|
15
|
-
helper_method :list_index_fields, :list_edit_fields, :list_search_fields, :list_action_links, :resource_actions, :collection_actions
|
15
|
+
helper_method :list_index_fields, :list_edit_fields, :list_search_fields, :list_action_links, :resource_actions, :collection_actions, :'default_actions?'
|
16
16
|
|
17
17
|
def end_of_association_chain
|
18
18
|
if self.resources_configuration[:self][:search_fields].blank?
|
@@ -93,6 +93,11 @@ class Manage::ResourceController < Manage::ApplicationController
|
|
93
93
|
end
|
94
94
|
end
|
95
95
|
|
96
|
+
# Don't display the show, edit, delete in the index view
|
97
|
+
def default_actions?
|
98
|
+
true
|
99
|
+
end
|
100
|
+
|
96
101
|
#
|
97
102
|
# This doubles the list_action_links.
|
98
103
|
# It provides actions on existing resource.
|
@@ -17,9 +17,10 @@ table
|
|
17
17
|
td = field_value(resource, field_data)
|
18
18
|
td
|
19
19
|
ul.inline-list
|
20
|
-
|
21
|
-
|
22
|
-
|
20
|
+
- if default_actions?
|
21
|
+
li = link_to t('manage.actions.show'), [resource]
|
22
|
+
li = link_to t('manage.actions.edit'), [:edit, resource]
|
23
|
+
li = link_to t('manage.actions.destroy'), [resource], method: :delete, data: { confirm: t('manage.confirmations.Are you sure')}
|
23
24
|
- list_action_links.each do |link_data|
|
24
25
|
li = action_link(resource, link_data)
|
25
26
|
= resource_actions(resource)
|
data/lib/manage/version.rb
CHANGED