Skip to content
This repository has been archived by the owner on Aug 15, 2018. It is now read-only.

Commit

Permalink
Required a name and title for a page. Fixed some wording on the theme…
Browse files Browse the repository at this point in the history
… installer sidebar.
  • Loading branch information
Josh Adams committed Jan 29, 2009
1 parent 78eaf0a commit 22466f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/models/page.rb
Expand Up @@ -25,6 +25,8 @@ class Page < ActiveRecord::Base
acts_as_commentable
has_settings

validates_presence_of :name, :title

named_scope :visible, :conditions => ["(expires_on > ? OR expires_on IS NULL) AND published = ? AND (publish_at <= ? OR publish_at IS NULL )", Time.now.getgm, true, Time.now.getgm]
named_scope :self_and_siblings, lambda {|page| {:conditions => ["parent_id = ?", page.parent_id], :order => 'page_order'}}
named_scope :expired, lambda {|p| { :conditions => ["expires_on < ?", Time.now.getgm] } }
Expand Down
Expand Up @@ -2,7 +2,7 @@
<% content_for :sidebar do -%>
<%= link_to "Choose the theme for your site", '/admin/site_settings/choose_theme', :class => 'button icon edit' -%>
<div class='note'>
To install a theme, just click on it.<br /><br />
To install a theme, just click on its "Install" link.<br /><br />

At the moment, the only repository available to you is the master theme repository at www.ansuzcms.com. This is hard coded in, and there's currently no interface for adding new theme repositories (but one's coming!). If you're adventurous and desperate, ansuz's main repository is the same code you've got, so you could easily change the hardcoded value to your own instance of ansuz and be off and running.<br /><br />

Expand Down

0 comments on commit 22466f0

Please sign in to comment.