imagine_cms 4.1.1 → 4.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: 4f0d5cf95b43319edcfeb2bc6f1f5b24dcd099a7
4
- data.tar.gz: 31b68c19f5d22a5fc68d4f1b55186b18ac622247
3
+ metadata.gz: 19660898df43518871e1d89a20319eb784f06308
4
+ data.tar.gz: 53f2ea2aa6774d9987641c8ff2148032c5b6a124
5
5
  SHA512:
6
- metadata.gz: ea47210e4226ac55d7857770942202c4b6b502bbf876246e71e89f06d7df767c1e11649fc7a315a59bf9cbd9f8f7439ed15daabe2bd55a9b046ddc0104512f14
7
- data.tar.gz: 0563088dc9ec65791dbae76d6a54bf2050f9d80c065f506defeed969532e4297c90181a8cfa7e4e67c8141ab90dd5652ed10cb579a9f6d71763a89509f7dd0dc
6
+ metadata.gz: 7bb0f4b43d50fdb5b35f31e74bfb088984aa8e938b39f68a6c5a4341b342a9b3b135969e09911d87731b7c054ba7c44c675e84c478ab8a8e5dd1732307c064bb
7
+ data.tar.gz: ac7fad0d469699fe4fb4b81f6719eb11c4f846ffc6d1f3338432e075a8f26b99fe7ad3ce7d9b5c284fec84a56fcc411d70e0912d1c10d5bbf0b9d859affc1bc3
@@ -637,12 +637,15 @@ module CmsApplicationHelper
637
637
  #
638
638
  # NOTE: @error and @notice are deprecated, use flash.now[:error] and flash.now[:notice] instead.
639
639
  def flash_message
640
+ link = ''.html_safe
641
+ link << ' '.html_safe + link_to(flash[:link][0], flash[:link][1]) if flash[:link].present? && flash[:link].is_a?(Array)
642
+
640
643
  output = ''.html_safe
641
644
  if (flash[:error] || @error || '') != ''
642
- output << content_tag('div', flash[:error] || @error, :class => 'alert alert-error error')
645
+ output << content_tag('div', h(flash[:error] || @error) + link, :class => 'alert alert-error error')
643
646
  end
644
647
  if (flash[:notice] || @notice || '') != ''
645
- output << content_tag('div', flash[:notice] || @notice, :class => 'alert alert-info notice')
648
+ output << content_tag('div', h(flash[:notice] || @notice) + link, :class => 'alert alert-info notice')
646
649
  end
647
650
  output
648
651
  end
@@ -1,6 +1,6 @@
1
1
  <h2>CMS &raquo; Snippets</h2>
2
2
 
3
- <p><%= button_to 'Create New Snippet', :action => 'edit_snippet' %></p>
3
+ <p><%= button_to 'Create New Snippet', { :action => 'edit_snippet' }, :method => :get %></p>
4
4
 
5
5
  <%= flash_message %>
6
6
 
@@ -1,6 +1,6 @@
1
1
  <h2>CMS &raquo; Templates</h2>
2
2
 
3
- <p><%= button_to 'Create New Template', :action => 'edit_template' %></p>
3
+ <p><%= button_to 'Create New Template', { :action => 'edit_template' }, :method => :get %></p>
4
4
 
5
5
  <%= flash_message %>
6
6
 
@@ -1,3 +1,3 @@
1
1
  module ImagineCms
2
- VERSION = "4.1.1"
2
+ VERSION = "4.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imagine_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.1
4
+ version: 4.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Namba
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-11 00:00:00.000000000 Z
11
+ date: 2015-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails