-
Notifications
You must be signed in to change notification settings - Fork 346
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 80781ac
Showing
2,371 changed files
with
254,537 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,5 @@ | |||
config/database.yml | |||
db/*.db | |||
log/*.log | |||
pkg | |||
.DS_Store |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,105 @@ | |||
|
|||
== Contributors | |||
|
|||
The following people have submitted changes which have been applied to the | |||
core: | |||
|
|||
=== Edge | |||
* Sean Cribbs | |||
* Thomas Watson Steen | |||
* Loren Johnson | |||
|
|||
=== 0.6.7 Mordant | |||
* John Long | |||
* Josh French | |||
* Sean Cribbs | |||
|
|||
=== 0.6.6 Chiseled | |||
* Josh French | |||
* Sean Cribbs | |||
|
|||
=== 0.6.5 Chisel | |||
* Adam Keyes | |||
* Marty Haught | |||
* xtoddx | |||
* skrat | |||
* Michael Klett | |||
* Matthew Elder | |||
* Nick Plante | |||
* ben | |||
* jonleighton | |||
* Josh French | |||
* abstractioneer | |||
* andreas | |||
* Keeran Hawoldar | |||
* Loren Johnson | |||
* Benny Degezelle | |||
* John Long | |||
* Andrew O'Brien | |||
* Bjørn Arild Mæland | |||
* Mislav Marohnić | |||
* Daniel Sheppard | |||
* Sean Cribbs | |||
|
|||
=== 0.6.4 Gem Shaper | |||
* Andrew Neil | |||
* zilkey | |||
* Mark Gallop | |||
* Bjørn Arild Mæland | |||
* ana | |||
* Bodhi Philpot | |||
* jay@jay.fm | |||
* Brian Skahan | |||
* Mislav Marohnić | |||
* Daniel Sheppard | |||
* John Long | |||
* Peter Berkenbosch | |||
* Sean Cribbs | |||
|
|||
=== 0.6.3 Rock Grinder | |||
* oli | |||
* Daniel Sheppard | |||
* vitali | |||
* tolbrino | |||
* Sean Cribbs | |||
* Earl Chew | |||
* John Long | |||
|
|||
=== 0.6.2 Jewel Carver | |||
* Sean Cribbs | |||
* Daniel Sheppard | |||
* Keita | |||
|
|||
=== 0.6.1 Stone Cutter | |||
* Sean Cribbs | |||
* Daniel Sheppard | |||
|
|||
=== 0.6.0 Lapidary | |||
* Alexander Horn | |||
* Adam Williams | |||
* Sean Santry | |||
* Sean Cribbs | |||
* Brian Gernhardt | |||
* Bodhi Philpot | |||
* Andrew Barnett | |||
* Jesse Newland | |||
* Josh Ferguson | |||
* Daniel Sheppard | |||
* Matte Edens | |||
* Jacob Burkhart | |||
* Chris Parrish | |||
|
|||
=== 0.5.1 Gemdust | |||
* Daniel Sheppard | |||
* Paul Smith | |||
* Bodhi Philpot | |||
|
|||
=== 0.5.0 Grindstone | |||
* Matt McCray | |||
* Paul Smith | |||
* Scott Walter | |||
* Sven Lauer | |||
* Tristan Boniver | |||
* Chris Corriveau | |||
* Ryan Platte | |||
* Luis Lavena |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,36 @@ | |||
|
|||
== Installation and Setup | |||
|
|||
Once you have extracted the files into the directory where you would like to | |||
install Radiant: | |||
|
|||
1. Create the MySQL/PostgreSQL/SQLite databases for your Web site. You only | |||
need to create the "production" database, but you may also want to create | |||
the "development" and "test" databases if you are developing extensions | |||
or running tests. | |||
|
|||
2. Edit config/database.yml to taste. | |||
|
|||
3. Run the database bootstrap rake task: | |||
|
|||
% rake production db:bootstrap | |||
|
|||
(If you would like bootstrap your development database run `rake | |||
development db:bootstrap`.) | |||
|
|||
4. Start it like a normal Rails application. To test execute: | |||
|
|||
% script/server -e production | |||
|
|||
And open your Web browser on port 3000 (http://localhost:3000). The | |||
administrative interface is available at /admin/. By default the bootstrap | |||
rake task creates a user called "admin" with a password of "radiant". | |||
|
|||
When using Radiant on a production system you may also need to set permissions | |||
on the public and cache directories so that your Web server can access those | |||
directories with the user that it runs under. | |||
|
|||
Once you've installed Radiant on your own Web site, be sure to add your name | |||
and Web site to the list of radiant users: | |||
|
|||
http://wiki.radiantcms.org/Radiant_Users |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,21 @@ | |||
== MIT License | |||
|
|||
Copyright (c) 2006-2007, John W. Long. | |||
|
|||
Permission is hereby granted, free of charge, to any person obtaining a copy | |||
of this software and associated documentation files (the "Software"), to deal | |||
in the Software without restriction, including without limitation the rights | |||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |||
copies of the Software, and to permit persons to whom the Software is | |||
furnished to do so, subject to the following conditions: | |||
|
|||
The above copyright notice and this permission notice shall be included in all | |||
copies or substantial portions of the Software. | |||
|
|||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,55 @@ | |||
== Welcome to Radiant | |||
|
|||
Radiant is a no-fluff, open source content management system designed for | |||
small teams. It is similar to Textpattern or MovableType, but is a general | |||
purpose content management system (not just a blogging engine). | |||
|
|||
Radiant features: | |||
|
|||
* An elegant user interface | |||
* The ability to arrange pages in a hierarchy | |||
* Flexible templating with layouts, snippets, page parts, and a custom tagging | |||
language (Radius: http://radius.rubyforge.org) | |||
* A simple user management/permissions system | |||
* Support for Markdown and Textile as well as traditional HTML (it's easy to | |||
create other filters) | |||
* An advanced plugin system | |||
* Operates in two modes: dev and production depending on the URL | |||
* A caching system which expires pages every 5 minutes | |||
* Built using Ruby on Rails | |||
* And much more... | |||
|
|||
|
|||
== License | |||
|
|||
Radiant is released under the MIT license and is copyright (c) 2006-2008 | |||
John W. Long and Sean Cribbs. A copy of the MIT license can be found in the | |||
LICENSE file. | |||
|
|||
|
|||
== Installation and Setup | |||
|
|||
Radiant is a traditional Ruby on Rails application, meaning that you can | |||
configure and run it the way you would a normal Rails application. | |||
|
|||
See the INSTALL file for more details. | |||
|
|||
|
|||
== Support | |||
|
|||
The best place to get support is on the mailing list: | |||
|
|||
http://radiantcms.org/mailing-list/ | |||
|
|||
There is also a Trac powered dev site available here: | |||
|
|||
http://dev.radiantcms.org/ | |||
|
|||
Please Note: Before filing a ticket on the dev site discuss your question or | |||
problem on the mailing list. This makes it much easier to manage legitimate | |||
tickets. | |||
|
|||
Enjoy! | |||
|
|||
-- | |||
John Long :: http://wiseheartdesign.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,11 @@ | |||
require File.join(File.dirname(__FILE__), 'config', 'boot') | |||
|
|||
require 'rake' | |||
require 'rake/testtask' | |||
require 'rake/rdoctask' | |||
|
|||
require 'tasks/rails' | |||
|
|||
unless Rake::Task.task_defined? "radiant:release" | |||
Dir["#{RADIANT_ROOT}/lib/tasks/**/*.rake"].sort.each { |ext| load ext } | |||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,130 @@ | |||
class Admin::AbstractModelController < ApplicationController | |||
attr_accessor :cache | |||
|
|||
def self.model_class(model_class = nil) | |||
@model_class = model_class.to_s.camelize.constantize unless model_class.nil? | |||
@model_class | |||
end | |||
|
|||
def initialize | |||
super | |||
@cache = ResponseCache.instance | |||
end | |||
|
|||
def index | |||
self.models = model_class.find(:all) | |||
end | |||
|
|||
def new | |||
self.model = model_class.new | |||
render :template => "admin/#{ model_symbol }/edit" if handle_new_or_edit_post | |||
end | |||
|
|||
def edit | |||
self.model = model_class.find_by_id(params[:id]) | |||
handle_new_or_edit_post | |||
end | |||
|
|||
def remove | |||
self.model = model_class.find(params[:id]) | |||
if request.post? | |||
model.destroy | |||
announce_removed | |||
redirect_to model_index_url | |||
end | |||
end | |||
|
|||
protected | |||
|
|||
def model_class | |||
self.class.model_class | |||
end | |||
|
|||
def model | |||
instance_variable_get("@#{model_symbol}") | |||
end | |||
def model=(object) | |||
instance_variable_set("@#{model_symbol}", object) | |||
end | |||
|
|||
def models | |||
instance_variable_get("@#{plural_model_symbol}") | |||
end | |||
def models=(objects) | |||
instance_variable_set("@#{plural_model_symbol}", objects) | |||
end | |||
|
|||
def model_name | |||
model_class.name | |||
end | |||
def plural_model_name | |||
model_name.pluralize | |||
end | |||
|
|||
def model_symbol | |||
model_name.underscore.intern | |||
end | |||
def plural_model_symbol | |||
model_name.pluralize.underscore.intern | |||
end | |||
|
|||
def humanized_model_name | |||
model_name.underscore.humanize | |||
end | |||
|
|||
def model_index_url(params = {}) | |||
send("#{ model_symbol }_index_url", params) | |||
end | |||
|
|||
def model_edit_url(params = {}) | |||
send("#{ model_symbol }_edit_url", params) | |||
end | |||
|
|||
def continue_url(options) | |||
options[:redirect_to] || (params[:continue] ? model_edit_url(:id => model.id) : model_index_url) | |||
end | |||
|
|||
def save | |||
model.save | |||
end | |||
|
|||
def announce_saved(message = nil) | |||
flash[:notice] = message || "#{humanized_model_name} saved below." | |||
end | |||
|
|||
def announce_validation_errors | |||
flash[:error] = "Validation errors occurred while processing this form. Please take a moment to review the form and correct any input errors before continuing." | |||
end | |||
|
|||
def announce_removed | |||
flash[:notice] = "#{humanized_model_name} has been deleted." | |||
end | |||
|
|||
def announce_update_conflict | |||
flash[:error] = "#{humanized_model_name} has been modified since it was last loaded. Changes cannot be saved without potentially losing data." | |||
end | |||
|
|||
def clear_model_cache | |||
cache.clear | |||
end | |||
|
|||
def handle_new_or_edit_post(options = {}) | |||
options.symbolize_keys | |||
if request.post? | |||
model.attributes = params[model_symbol] | |||
begin | |||
if save | |||
clear_model_cache | |||
announce_saved(options[:saved_message]) | |||
redirect_to continue_url(options) | |||
return false | |||
else | |||
announce_validation_errors | |||
end | |||
rescue ActiveRecord::StaleObjectError | |||
announce_update_conflict | |||
end | |||
end | |||
true | |||
end | |||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,5 @@ | |||
class Admin::ExportController < ApplicationController | |||
def yaml | |||
render :text => Radiant::Exporter.export, :content_type => "text/yaml" | |||
end | |||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,5 @@ | |||
class Admin::ExtensionController < ApplicationController | |||
def index | |||
@extensions = Radiant::Extension.descendants.sort_by { |e| e.extension_name } | |||
end | |||
end |
Oops, something went wrong.