Commit 11f7d39f1b8d6f3bde8dcd733cecd4fc2152dce7
1 parent
8e0828f3
Exists in
master
and in
1 other branch
humanize page title. git mv stylesheet.
Showing
2 changed files
with
5 additions
and
3 deletions
Show diff stats
app/views/layouts/application.html.erb
| ... | ... | @@ -3,7 +3,7 @@ |
| 3 | 3 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
| 4 | 4 | <head> |
| 5 | 5 | <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> |
| 6 | - <title>CHANGEME</title> | |
| 6 | + <title>CHANGETITLE</title> | |
| 7 | 7 | <%= stylesheet_link_tag :flutie, 'CHANGEME', :cache => true %> |
| 8 | 8 | </head> |
| 9 | 9 | <body class="<%= body_class %>"> | ... | ... |
script/create_project
| ... | ... | @@ -16,6 +16,7 @@ fail("Project directory (#{project_directory}) already exists") if project_direc |
| 16 | 16 | template_url = "git://github.com/dancroak/heroku_suspenders.git" |
| 17 | 17 | changeme = "CHANGEME" |
| 18 | 18 | changesession = "CHANGESESSION" |
| 19 | +changetitle = "CHANGETITLE" | |
| 19 | 20 | |
| 20 | 21 | def run(cmd) |
| 21 | 22 | puts "Running '#{cmd}'" |
| ... | ... | @@ -54,7 +55,8 @@ run("git remote add heroku_suspenders #{template_url}") |
| 54 | 55 | run("git pull heroku_suspenders master") |
| 55 | 56 | |
| 56 | 57 | Dir.glob("#{project_directory}/**/*").each do |file| |
| 57 | - search_and_replace(file, changeme, project_name) | |
| 58 | + search_and_replace(file, changeme, project_name) | |
| 59 | + search_and_replace(file, changetitle, project_name.humanize) | |
| 58 | 60 | end |
| 59 | 61 | |
| 60 | 62 | Dir.glob("#{project_directory}/**/session_store.rb").each do |file| |
| ... | ... | @@ -62,7 +64,7 @@ Dir.glob("#{project_directory}/**/session_store.rb").each do |file| |
| 62 | 64 | search_and_replace(file, changesession, Digest::MD5.hexdigest("#{project_name} #{datestring}")) |
| 63 | 65 | end |
| 64 | 66 | |
| 65 | -run("sudo mv public/stylesheets/screen.css public/stylesheets/#{project_name}.css") | |
| 67 | +run("git mv public/stylesheets/screen.css public/stylesheets/#{project_name}.css") | |
| 66 | 68 | run("sudo chmod 0666 public/stylesheets/#{project_name}.css") |
| 67 | 69 | |
| 68 | 70 | run("git add .") | ... | ... |