manage 1.3.26 → 1.3.27

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d68f55713a2122a1e960e63934610538d8b474e0
4
- data.tar.gz: af91801bb4a5b2fec69a5166e9560a1892eac4db
3
+ metadata.gz: 7c0e0a82d2018f3d838d41f6a07088e2b37edc3a
4
+ data.tar.gz: 1b9adc9919310e8560ce61006b78ed2fedfa21b8
5
5
  SHA512:
6
- metadata.gz: da08bc57fe03c1eed6d30d923008112cebd8d83655272688e660e3dfe215fc2e1d3ddfb142b868646d668f213aebadf104b6fd2eed2c5b32bba9f17ffb6795e1
7
- data.tar.gz: 2d5a33ce30c6801ddd327964e8b907a09467c696e19c3bdc6fd7c9ff381f587330ad96ee65c2733163c628f9871d5cfcd52945f9c2d8d8996636468b9c45e0f4
6
+ metadata.gz: ca02fbd137f45fbf51dcd40c4a984398b584718dea7afb71c4f585c366b8d66e190db6b54b07d0b36437d9c6c5a31793d9376310a063bf8d39aa9b20edef9c08
7
+ data.tar.gz: 5c08d9227310f90e690492a9dcace806885d16621f364e985d0074f05bdba73adc056abb2719f3d7aefeddf80b0cd540c9b721bd10d4149ab0e3151c585c3173
data/README.rdoc CHANGED
@@ -30,6 +30,13 @@ if you want to have custom design in your app for the manage engine add in appli
30
30
  Add the resource to your app routes.rb yourapp/config/routes.rb:
31
31
 
32
32
  Manage::Engine.routes.draw do
33
+ concern :backend_manageable do
34
+ collection do
35
+ get :show_help, concerns: :backend_manageable
36
+ end
37
+ end
38
+
39
+
33
40
  resources :cities
34
41
  end
35
42
 
@@ -3,7 +3,6 @@ require_dependency 'kaminari'
3
3
 
4
4
  class Manage::ResourceController < Manage::ApplicationController
5
5
  inherit_resources
6
-
7
6
  cattr_accessor :per_page
8
7
 
9
8
  self.responder = Manage::Responder
@@ -25,6 +24,9 @@ class Manage::ResourceController < Manage::ApplicationController
25
24
  @search.results
26
25
  end
27
26
 
27
+ def show_help
28
+ end
29
+
28
30
  protected
29
31
 
30
32
  def clean_search_params(search_params)
@@ -6,13 +6,15 @@
6
6
 
7
7
  = render 'manage/resource/index/scopes'
8
8
 
9
-
10
9
  .row
11
10
  .columns.large-9
12
11
  = render 'manage/resource/index/table', index_fields: index_fields
13
12
  .columns.large-3
14
13
  = render 'manage/resource/index/filters'
15
14
 
15
+ .right
16
+ = link_to('Help', [:show_help, resource_class.name.tableize]) rescue ''
17
+
16
18
  = paginate collection
17
19
  = render 'manage/resource/index/collection_actions', collection: collection
18
20
  = render 'manage/resource/index/count'
@@ -0,0 +1,3 @@
1
+ h1 = "Context help for #{resource}"
2
+
3
+ ' Create 'show_help' view and enter the help there.
@@ -1,3 +1,3 @@
1
1
  module Manage
2
- VERSION = "1.3.26"
2
+ VERSION = "1.3.27"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: manage
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.26
4
+ version: 1.3.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Empower United
@@ -260,6 +260,7 @@ files:
260
260
  - app/views/layouts/manage/application.html.slim
261
261
  - app/views/layouts/manage/sign_in.html.slim
262
262
  - app/views/manage/resource/index.html.slim
263
+ - app/views/manage/resource/show_help.html.slim
263
264
  - app/views/manage/resource/_form.html.slim
264
265
  - app/views/manage/resource/show.html.slim
265
266
  - app/views/manage/resource/index/_count.html.slim