Permalink
Browse files

Just simple content

  • Loading branch information...
Tomas Valent (eq8)
Tomas Valent (eq8) committed Sep 2, 2011
1 parent d8243a8 commit c810598b104bbfb19e20efa7a4d6e87a0b5ca25b
Showing with 5 additions and 5 deletions.
  1. +2 −2 config_scrapbook.rb
  2. +2 −2 scrapbook.rb
  3. +1 −1 views/layout.haml
View
@@ -1,5 +1,5 @@
-set :owner_name => "eq8"
-set :reder_w_files_patern => "/#{settings.owner_name}s_:what/on_:name" #if you are changing this line, be sure you change the patern in helper/w_path.rb helper
+set :owner_name => "Equivalent"
+set :reder_w_files_patern => "/#{settings.owner_name.downcase}s_:what/on_:name" #if you are changing this line, be sure you change the patern in helper/w_path.rb helper
set :w_files_path => "wisdom_inside/"
#if you want restrict access
View
@@ -51,14 +51,14 @@ def self.translation
get settings.reder_w_files_patern do
- @title= "#{settings.owner_name} #{params[:what]} on #{convert_to_link_name(params[:name])} "
+ @title= "#{settings.owner_name}'s #{params[:what]} on #{convert_to_link_name(params[:name])} "
@h1_name = convert_to_link_name(params[:name]).capitalize
@h1_what = params[:what]
begin
@file_content = read_w_file(nil)
haml params['what'].to_sym
rescue Errno::ENOENT
- haml :not_found
+ redirect '/'
end
end
View
@@ -20,7 +20,7 @@
-#change lines as you desire
%meta{"author" => "Equivalent (eq8.eu)"}
- %title= @title || "#{settings.owner_name} scrapbook"
+ %title= @title || "#{settings.owner_name} - scrapbook"
%body.main

0 comments on commit c810598

Please sign in to comment.