public
Fork of halorgium/mephisto
Description: A mirror of the mephisto code-base
Homepage: http://mephistoblog.com/
Clone URL: git://github.com/technoweenie/mephisto.git
Click here to lend your support to: mephisto and make a donation at www.pledgie.com !
allow homepage to be a paged section

git-svn-id: http://svn.techno-weenie.net/projects/mephisto/trunk@1210 
567b1171-46fb-0310-a4c9-b4bef9110e78
technoweenie (author)
Sun Jun 11 06:47:58 -0700 2006
commit  5976b5c532980f5e327fb51147eb5237775ffba0
tree    d4074590a870281aa4a83f2ddaa3e3d3e4a3f817
parent  a53fc38b750f08b39e9a28eda30fe7bb922c65ee
...
5
6
7
8
 
9
10
11
...
5
6
7
 
8
9
10
11
0
@@ -5,7 +5,7 @@ class MephistoController < ApplicationController
0
   def list
0
     if params[:sections].blank?
0
       @section = site.sections.find_by_name('home')
0
- list_section_articles_with(:main)
0
+ @section.show_paged_articles? ? show_section_page_with(nil, :main) : list_section_articles_with(:main)
0
     else
0
       @section, page_name = site.sections.find_section_and_page_name(params[:sections])
0
       @section.show_paged_articles? ? show_section_page_with(page_name, :page) : list_section_articles_with(:section)
...
34
35
36
37
 
38
39
40
...
81
82
83
84
 
85
86
87
...
34
35
36
 
37
38
39
40
...
81
82
83
 
84
85
86
87
0
@@ -34,7 +34,7 @@ class Section < ActiveRecord::Base
0
     def find_section_and_page_name(section_path)
0
       page_name = []
0
       section = nil
0
- while section.nil? and section_path.any?
0
+ while section.nil? && section_path.any?
0
         section = find_by_name(section_path.join('/'))
0
         page_name << section_path.pop if section.nil?
0
       end
0
@@ -81,7 +81,7 @@ class Section < ActiveRecord::Base
0
   end
0
 
0
   def to_url
0
- ((name.nil? or home?) ? '' : name).split('/')
0
+ ((name.nil? || home?) ? '' : name).split('/')
0
   end
0
 
0
   def to_feed_url

Comments

    No one has commented yet.