site_logic 1.6.7 → 1.6.8

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -2,7 +2,7 @@ source 'http://rubygems.org'
2
2
  source 'http://jose.seologic.com:8808/'
3
3
 
4
4
  gem 'bson_ext'
5
- gem 'carrierwave'
5
+ gem 'carrierwave', '< 0.5.7'
6
6
  gem 'ckeditor', :git => 'git://github.com/Bantik/rails-ckeditor.git', :branch => 'rails3_mongoid'
7
7
  gem 'mongoid', '>= 2.0.0.beta.17'
8
8
  gem 'mongoid-tree', :require => 'mongoid/tree'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.6.7
1
+ 1.6.8
@@ -11,9 +11,10 @@ class Admin::PagesController < ApplicationController
11
11
  :window_title => 'Title Tag',
12
12
  :page_title => 'Page Header'
13
13
  }
14
- params[:by] ||= 'humanize_path'; params[:dir] ||= 'ASC'
15
- @pages = @site.pages.sort{|a,b| a.send(params[:by]) <=> b.send(params[:by])}
16
- @pages.reverse! if params[:dir] == 'DESC'
14
+ params[:by] ||= 'humanize_path'
15
+ params[:dir] ||= 'asc'
16
+ @pages = @site.pages.sort_by{ |p| p.send(params[:by]).to_s }
17
+ @pages.reverse! if params[:dir] == 'desc'
17
18
  end
18
19
 
19
20
  def show
@@ -11,11 +11,12 @@ class Admin::SitesController < ApplicationController
11
11
  :humanize_path => 'URL'
12
12
  }
13
13
  @site = Site.find(params[:id])
14
- params[:by] ||= 'humanize_path'; params[:dir] ||= 'ASC'
15
- @pages = @site.pages.sort{|a,b| a.send(params[:by]) <=> b.send(params[:by])}
16
- @pages.reverse! if params[:dir] == 'DESC'
14
+ params[:by] ||= 'humanize_path'
15
+ params[:dir] ||= 'asc'
16
+ @pages = @site.pages.sort_by{ |p| p.send(params[:by]).to_s }
17
+ @pages.reverse! if params[:dir] == 'desc'
17
18
  @redirects = @site.redirects
18
- @nav_items = @site.nav_items.roots.sort{|a,b| a.position.to_i <=> b.position.to_i}
19
+ @nav_items = @site.nav_items.roots.sort_by{ |ni| ni.position.to_i }
19
20
  end
20
21
 
21
22
  def new
@@ -6,8 +6,7 @@ module LayoutHelper
6
6
  def breadcrumbs
7
7
  unless controller?('home') && action?(/home|index/)
8
8
  html = [ link_to('Home', root_path) ]
9
- # html << link_to( 'Foo', foo_path ) if controller?('FoosController')
10
- (html * ' &gt; ').html_safe
9
+ html * ''
11
10
  end
12
11
  end
13
12
 
@@ -1,22 +1,25 @@
1
1
  <table class="standard">
2
- <%- if @pages.empty? -%>
3
- <tr><th>No pages have been created yet.</th></tr>
2
+ <tr>
3
+ <th><%= sort_link("admin/sites/#{@site.id}/pages", 'humanize_path', params) -%></th>
4
+ <th><%= sort_link("admin/sites/#{@site.id}/pages", 'page_title', params) -%></th>
5
+ <th><%= sort_link("admin/sites/#{@site.id}/pages", 'window_title', params) -%></th>
6
+ <th><%= sort_link("admin/sites/#{@site.id}/pages", 'state', params) -%></th>
7
+ <th><%= sort_link("admin/sites/#{@site.id}/pages", 'noindex', params) -%></th>
8
+ <th><%= sort_link("admin/sites/#{@site.id}/pages", 'sitemap', params) -%></th>
9
+ <th><%= sort_link("admin/sites/#{@site.id}/pages", 'updated_at', params) -%></th>
10
+ <th> </th>
11
+ </tr>
12
+ <%- if @pages.blank? -%>
13
+ <tr><th colspan="8">No pages found.</th></tr>
4
14
  <%- else -%>
5
- <tr>
6
- <th style="width: 25%;"><%= sort_link("admin/sites/#{@site.id}/pages", 'humanize_path', params) -%></th>
7
- <th style="width: 25%;"><%= sort_link("admin/sites/#{@site.id}/pages", 'page_title', params) -%></th>
8
- <th style="width: 20%;"><%= sort_link("admin/sites/#{@site.id}/pages", 'window_title', params) -%></th>
9
- <th style="width: 10%;"><%= sort_link("admin/sites/#{@site.id}/pages", 'state', params) -%></th>
10
- <th style="width: 10%;"><%= sort_link("admin/sites/#{@site.id}/pages", 'updated_at', params) -%></th>
11
- <th> </th>
12
- </tr>
13
-
14
15
  <%- @pages.each do |page| -%>
15
16
  <tr class="<%= cycle('odd', 'even') -%>">
16
17
  <td><%= link_to page.humanize_path, admin_site_page_path(@site, page) -%></td>
17
18
  <td><%= page.page_title -%></td>
18
19
  <td><%= page.window_title -%></td>
19
20
  <td><%= page.status -%></td>
21
+ <td><%= page.noindex ? '√' : '' -%></td>
22
+ <td><%= page.sitemap ? '√' : '' -%></td>
20
23
  <td><%= page.updated_at.to_s(:concise) -%></td>
21
24
  <td class="crud_links">
22
25
  <%= link_to image_tag('/images/icons/view.png'), admin_site_page_path(@site, page) -%>
@@ -26,11 +29,7 @@
26
29
  </tr>
27
30
  <%- end -%>
28
31
  <%- end -%>
29
- <tr>
30
- <td colspan="6">
31
- <div class="link_block">
32
- <%= link_to 'New Page...', new_admin_site_page_path(@site), :class => 'link_button' -%>
33
- </div>
34
- </td>
35
- </tr>
36
- </table>
32
+ </table><br />
33
+ <div class="attached link_block">
34
+ <%= link_to 'New Page...', new_admin_site_page_path(@site), :class => 'link_button' -%>
35
+ </div>
data/site_logic.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{site_logic}
8
- s.version = "1.6.7"
8
+ s.version = "1.6.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = [%q{Bantik}]
12
- s.date = %q{2011-07-27}
11
+ s.authors = ["Bantik"]
12
+ s.date = %q{2011-08-15}
13
13
  s.description = %q{An engine for search-engine-optimized content management.}
14
14
  s.email = %q{corey@seologic.com}
15
15
  s.extra_rdoc_files = [
@@ -824,8 +824,8 @@ Gem::Specification.new do |s|
824
824
  "tasks/site_logic.rake"
825
825
  ]
826
826
  s.homepage = %q{http://github.com/ivanoblomov/site_logic}
827
- s.require_paths = [%q{lib}]
828
- s.rubygems_version = %q{1.8.5}
827
+ s.require_paths = ["lib"]
828
+ s.rubygems_version = %q{1.4.2}
829
829
  s.summary = %q{An engine for search-engine-optimized content management.}
830
830
 
831
831
  if s.respond_to? :specification_version then
@@ -833,7 +833,7 @@ Gem::Specification.new do |s|
833
833
 
834
834
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
835
835
  s.add_runtime_dependency(%q<bson_ext>, [">= 0"])
836
- s.add_runtime_dependency(%q<carrierwave>, [">= 0"])
836
+ s.add_runtime_dependency(%q<carrierwave>, ["< 0.5.7"])
837
837
  s.add_runtime_dependency(%q<ckeditor>, [">= 0"])
838
838
  s.add_runtime_dependency(%q<mongoid>, [">= 2.0.0.beta.17"])
839
839
  s.add_runtime_dependency(%q<mongoid-tree>, [">= 0"])
@@ -845,7 +845,7 @@ Gem::Specification.new do |s|
845
845
  s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
846
846
  else
847
847
  s.add_dependency(%q<bson_ext>, [">= 0"])
848
- s.add_dependency(%q<carrierwave>, [">= 0"])
848
+ s.add_dependency(%q<carrierwave>, ["< 0.5.7"])
849
849
  s.add_dependency(%q<ckeditor>, [">= 0"])
850
850
  s.add_dependency(%q<mongoid>, [">= 2.0.0.beta.17"])
851
851
  s.add_dependency(%q<mongoid-tree>, [">= 0"])
@@ -858,7 +858,7 @@ Gem::Specification.new do |s|
858
858
  end
859
859
  else
860
860
  s.add_dependency(%q<bson_ext>, [">= 0"])
861
- s.add_dependency(%q<carrierwave>, [">= 0"])
861
+ s.add_dependency(%q<carrierwave>, ["< 0.5.7"])
862
862
  s.add_dependency(%q<ckeditor>, [">= 0"])
863
863
  s.add_dependency(%q<mongoid>, [">= 2.0.0.beta.17"])
864
864
  s.add_dependency(%q<mongoid-tree>, [">= 0"])
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: 1
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 6
9
- - 7
10
- version: 1.6.7
9
+ - 8
10
+ version: 1.6.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Bantik
@@ -15,7 +15,8 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-07-27 00:00:00 Z
18
+ date: 2011-08-15 00:00:00 -05:00
19
+ default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: bson_ext
@@ -37,12 +38,14 @@ dependencies:
37
38
  requirement: &id002 !ruby/object:Gem::Requirement
38
39
  none: false
39
40
  requirements:
40
- - - ">="
41
+ - - <
41
42
  - !ruby/object:Gem::Version
42
- hash: 3
43
+ hash: 5
43
44
  segments:
44
45
  - 0
45
- version: "0"
46
+ - 5
47
+ - 7
48
+ version: 0.5.7
46
49
  type: :runtime
47
50
  version_requirements: *id002
48
51
  - !ruby/object:Gem::Dependency
@@ -998,6 +1001,7 @@ files:
998
1001
  - spec/spec.opts
999
1002
  - spec/spec_helper.rb
1000
1003
  - tasks/site_logic.rake
1004
+ has_rdoc: true
1001
1005
  homepage: http://github.com/ivanoblomov/site_logic
1002
1006
  licenses: []
1003
1007
 
@@ -1027,7 +1031,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1027
1031
  requirements: []
1028
1032
 
1029
1033
  rubyforge_project:
1030
- rubygems_version: 1.8.5
1034
+ rubygems_version: 1.4.2
1031
1035
  signing_key:
1032
1036
  specification_version: 3
1033
1037
  summary: An engine for search-engine-optimized content management.