site_logic 1.8.0 → 1.9.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.8.0
1
+ 1.9.0
@@ -1,5 +1,5 @@
1
1
  <%- if ! nav_items.blank? -%>
2
- <p>To reorder the navigation links, drag and drop the rows below using the drag icon on the right hand side of the table.</p>
2
+ <p>To reorder a link, drag it using the drag icon on the far right.</p>
3
3
 
4
4
  <table class="standard">
5
5
  <thead>
@@ -21,7 +21,7 @@
21
21
  <td class="crud_links">
22
22
  <%= link_to image_tag('/images/icons/delete.png'), admin_site_nav_item_path(@site, nav_item), :method => :delete, :confirm => 'Are you sure? This action cannot be undone.' -%>
23
23
  </td>
24
- <td style="width: 19px; cursor: move; " id="content_<%= nav_item.id -%>">
24
+ <td style="width: 19px; cursor: move">
25
25
  <img src="/images/icons/drag.png" alt="Move" width="19" height="19" class="move_icon" />
26
26
  </td>
27
27
  </tr>
@@ -0,0 +1,26 @@
1
+ <%= tabset do -%>
2
+ <%= tab_tag(:id => 'primary_nav', :label => 'Main', :state => 'active') -%>
3
+ <%= tab_tag(:id => 'secondary_nav', :label => 'Secondary') -%>
4
+ <%= tab_tag(:id => 'footer_nav', :label => 'Footer') -%>
5
+ <%- end -%>
6
+
7
+ <%= tab_body :id => 'primary_nav', :label => 'Navigation', :help => SiteLogic.primary_nav.description, :display => 'block' do -%>
8
+ <%= render :partial => 'admin/nav_items/index', :locals => {:nav_items => @site.nav_items.primary.roots, :navitem_type => 'primary'} -%>
9
+ <div class="link_block">
10
+ <%= link_to 'New Navigation Link', new_admin_site_nav_item_path(@site), :class => 'link_button' -%>
11
+ </div>
12
+ <%- end -%>
13
+
14
+ <%= tab_body :id => 'secondary_nav', :label => 'Navigation', :help => SiteLogic.secondary_nav.description, :display => 'none' do -%>
15
+ <%= render :partial => 'admin/nav_items/index', :locals => {:nav_items => @site.nav_items.secondary.roots, :navitem_type => 'secondary'} -%>
16
+ <div class="link_block">
17
+ <%= link_to 'New Navigation Link', new_admin_site_nav_item_path(@site, :kind => 'Secondary'), :class => 'link_button' -%>
18
+ </div>
19
+ <%- end -%>
20
+
21
+ <%= tab_body :id => 'footer_nav', :label => 'Navigation', :help => SiteLogic.footer_nav.description, :display => 'none' do -%>
22
+ <%= render :partial => 'admin/nav_items/index', :locals => {:nav_items => @site.nav_items.footer.roots, :navitem_type => 'footer'} -%>
23
+ <div class="link_block">
24
+ <%= link_to 'New Navigation Link', new_admin_site_nav_item_path(@site, :kind => 'Footer'), :class => 'link_button' -%>
25
+ </div>
26
+ <%- end -%>
@@ -1,31 +1,3 @@
1
1
  <%- set_title 'Manage Navigation Links' -%>
2
2
 
3
- <%= tabset do -%>
4
- <%= tab_tag(:id => 'primary_nav', :label => 'Main Navigation', :state => 'active') %>
5
- <%= tab_tag(:id => 'secondary_nav', :label => 'Secondary Navigation') %>
6
- <%= tab_tag(:id => 'footer_nav', :label => 'Footer Navigation') %>
7
- <%- end -%>
8
-
9
- <%= tab_body :id => 'primary_nav', :label => SiteLogic.primary_nav.label, :help => SiteLogic.primary_nav.description, :display => 'block' do -%>
10
- <%= render :partial => 'index', :locals => {:nav_items => @site.nav_items.primary.roots, :navitem_type => 'primary'} -%>
11
- <br style="clear: both;" />
12
- <div class="link_block">
13
- <%= link_to 'New Navigation Link', new_admin_site_nav_item_path(@site), :class => 'link_button' -%>
14
- </div>
15
- <%- end -%>
16
-
17
- <%= tab_body :id => 'secondary_nav', :label => SiteLogic.secondary_nav.label, :help => SiteLogic.secondary_nav.description, :display => 'none' do -%>
18
- <%= render :partial => 'index', :locals => {:nav_items => @site.nav_items.secondary.roots, :navitem_type => 'secondary'} -%>
19
- <br style="clear: both;" />
20
- <div class="link_block">
21
- <%= link_to 'New Navigation Link', new_admin_site_nav_item_path(@site, :kind => 'Secondary'), :class => 'link_button' -%>
22
- </div>
23
- <%- end -%>
24
-
25
- <%= tab_body :id => 'footer_nav', :label => SiteLogic.footer_nav.label, :help => SiteLogic.footer_nav.description, :display => 'none' do -%>
26
- <%= render :partial => 'index', :locals => {:nav_items => @site.nav_items.footer.roots, :navitem_type => 'footer'} -%>
27
- <br style="clear: both;" />
28
- <div class="link_block">
29
- <%= link_to 'New Navigation Link', new_admin_site_nav_item_path(@site, :kind => 'Footer'), :class => 'link_button' -%>
30
- </div>
31
- <%- end -%>
3
+ <%= render 'tabs' -%>
@@ -22,8 +22,11 @@
22
22
  <%= link_to 'Back', admin_sites_path, :class => 'link_button' -%>
23
23
  <%- end -%>
24
24
  </div>
25
- </fieldset><br style="clear: both" />
25
+ </fieldset><br />
26
26
 
27
- <h2>Pages</h2>
27
+ <%= render 'admin/nav_items/tabs' -%><br style="clear: both" />
28
28
 
29
- <%= render :partial => 'admin/pages/index' -%>
29
+ <fieldset class="form_container">
30
+ <%= legend_tag 'Pages' -%><br />
31
+ <%= render :partial => 'admin/pages/index' -%>
32
+ </fieldset>
data/site_logic.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "site_logic"
8
- s.version = "1.8.0"
8
+ s.version = "1.9.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Bantik"]
12
- s.date = "2011-09-23"
12
+ s.date = "2011-09-26"
13
13
  s.description = "An engine for search-engine-optimized content management."
14
14
  s.email = "corey@seologic.com"
15
15
  s.extra_rdoc_files = [
@@ -41,6 +41,7 @@ Gem::Specification.new do |s|
41
41
  "app/uploaders/image_uploader.rb",
42
42
  "app/views/admin/nav_items/_form.html.erb",
43
43
  "app/views/admin/nav_items/_index.html.erb",
44
+ "app/views/admin/nav_items/_tabs.html.erb",
44
45
  "app/views/admin/nav_items/edit.html.erb",
45
46
  "app/views/admin/nav_items/index.html.erb",
46
47
  "app/views/admin/nav_items/new.html.erb",
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: site_logic
3
3
  version: !ruby/object:Gem::Version
4
- hash: 55
4
+ hash: 51
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
- - 8
8
+ - 9
9
9
  - 0
10
- version: 1.8.0
10
+ version: 1.9.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Bantik
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-09-23 00:00:00 Z
18
+ date: 2011-09-26 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: bson_ext
@@ -231,6 +231,7 @@ files:
231
231
  - app/uploaders/image_uploader.rb
232
232
  - app/views/admin/nav_items/_form.html.erb
233
233
  - app/views/admin/nav_items/_index.html.erb
234
+ - app/views/admin/nav_items/_tabs.html.erb
234
235
  - app/views/admin/nav_items/edit.html.erb
235
236
  - app/views/admin/nav_items/index.html.erb
236
237
  - app/views/admin/nav_items/new.html.erb