rack-insight 0.5.15 → 0.5.16

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.
data/CHANGELOG CHANGED
@@ -1,4 +1,10 @@
1
- == 0.5.14 / 2012-09-11
1
+ == 0.5.16 / 2012-09-11
2
+
3
+ * Other
4
+
5
+ * Improved handling of no content for a panel.
6
+
7
+ == 0.5.14-15 / 2012-09-11
2
8
 
3
9
  * New Features
4
10
 
@@ -260,9 +260,7 @@ module Rack::Insight
260
260
 
261
261
  def content
262
262
  logger.info("Rack::Insight is using default content for #{self.class}") if verbose(:med)
263
- html = "<h3>#{self.camelized_name}</h3>"
264
- html += '<p>Add a content method to your panel</p>'
265
- html
263
+ render_template 'no_content', :name => self.camelized_name
266
264
  end
267
265
 
268
266
  # Override in subclasses.
@@ -1,7 +1,7 @@
1
1
  module Rack
2
2
  module Insight
3
3
 
4
- VERSION = '0.5.15'
4
+ VERSION = '0.5.16'
5
5
 
6
6
  end
7
7
  end
@@ -0,0 +1,3 @@
1
+ <h3><%= name %></h3>
2
+ <p>Add a content or content_for_request method to this panel.</p>
3
+ <p>Have it return the content and data you would like see here.</p>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-insight
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.15
4
+ version: 0.5.16
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -284,6 +284,7 @@ files:
284
284
  - lib/rack/insight/views/enable-button.html.erb
285
285
  - lib/rack/insight/views/error.html.erb
286
286
  - lib/rack/insight/views/headers_fragment.html.erb
287
+ - lib/rack/insight/views/no_content.html.erb
287
288
  - lib/rack/insight/views/no_data.html.erb
288
289
  - lib/rack/insight/views/panels/active_record.html.erb
289
290
  - lib/rack/insight/views/panels/active_resource.html.erb