Skip to content
This repository has been archived by the owner on Jan 8, 2022. It is now read-only.

Commit

Permalink
extracted more twb specific items into the twb template
Browse files Browse the repository at this point in the history
  • Loading branch information
jbasdf committed May 12, 2009
1 parent 5cf93fb commit 4c1d43d
Show file tree
Hide file tree
Showing 81 changed files with 141 additions and 171 deletions.
2 changes: 1 addition & 1 deletion app/helpers/theme_helper.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module ThemeHelper

def theme_stylesheet_link_tag
stylesheet_link_tag "themes/#{current_theme}"
stylesheet_link_tag "themes/#{current_theme}/styles"
end

end
5 changes: 2 additions & 3 deletions app/views/layouts/global/_head.html.erb
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="description" content="Teachers Without Borders supports teacher-leaders, worldwide, because they play a vital role in their communities." />
<title><%= @title || _(GlobalConfig.application_name) -%></title>
<%= stylesheet_link_tag 'reset', 'ie', 'application', 'beast', 'standard', :cache=>true -%>
<%= stylesheet_link_tag "print", :media => "print" %>
<%= javascript_include_tag 'jquery', 'jquery-ui', 'jrails', 'thickbox', 'jquery.blockUI.js', 'jquery-plugins/jquery.jgrowl_minimized.js', 'application' -%>
<%= stylesheet_link_tag 'reset', 'ie', 'application', 'beast', 'standard', :cache=>true -%>
<%= javascript_include_tag 'jquery', 'jquery-ui', 'jrails', 'thickbox', 'jquery-plugins/jquery.jgrowl_minimized.js', 'application' -%>
<%= theme_stylesheet_link_tag %>
<%= javascript_tag %[const AUTH_TOKEN = #{form_authenticity_token.inspect};] if protect_against_forgery? -%>
<%= yield :head -%>
Expand Down
2 changes: 1 addition & 1 deletion lib/generators/theme/theme_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def manifest
#stylesheets
m.directory "public/stylesheets/themes"
m.directory "public/stylesheets/themes/#{file_name}"
m.file "stylesheets/styles.css", "public/stylesheets/themes/#{file_name}/#{file_name}.css"
m.file "stylesheets/styles.css", "public/stylesheets/themes/#{file_name}/styles.css"

# localization
m.file "locale/en.yml", "themes/#{file_name}/locale/en.yml"
Expand Down
Binary file removed public/images/bg.jpg
Binary file not shown.
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added public/images/twb/button_donate.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/twb/button_participate.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
54 changes: 0 additions & 54 deletions public/stylesheets/scaffold.css

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
body {
background: white;
font-size: 12pt;
}

a:link, a:visited {
color: #520;
background: transparent;
font-weight: bold;
text-decoration: underline;
}

a:link:after, #content a:visited:after {
content: " (" attr(href) ") ";
font-size: 90%;
}

a[href^="/"]:after {
content: " (http://www.teacherswithoutborders.org" attr(href) ") ";
}

#header,
#landscape,
#nav,
#subnav,
#footer dl {
display: none;
}

.content {
width: auto;
margin: 0 5%;
padding: 0;
border: 0;
float: none !important;
color: black;
background: transparent;

}
body {
background: white;
font-size: 12pt;
}

a:link, a:visited {
color: #520;
background: transparent;
font-weight: bold;
text-decoration: underline;
}

a:link:after, #content a:visited:after {
content: " (" attr(href) ") ";
font-size: 90%;
}

a[href^="/"]:after {
content: " (http://www.teacherswithoutborders.org" attr(href) ") ";
}

#header,
#landscape,
#nav,
#subnav,
#footer dl {
display: none;
}

.content {
width: auto;
margin: 0 5%;
padding: 0;
border: 0;
float: none !important;
color: black;
background: transparent;

}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#splash{margin:10px auto; width:994px; height:621px; background-image:url(../images/splash.jpg)}
#btn1 {height:65px;left:290px;position:relative;top:183px;width:355px;}
#btn1:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
#btn2 {float:left;height:130px;left:32px;position:relative;top:185px;width:270px;}
#btn2:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
#btn3 {float:left;height:125px;left:58px;position:relative;top:190px;width:270px;}
#btn3:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
#btn4 {float:left;height:130px;left:86px;position:relative;top:185px;width:270px;}
#btn4:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
#splash{margin:10px auto; width:994px; height:621px; background-image:url(../images/splash.jpg)}
#btn1 {height:65px;left:290px;position:relative;top:183px;width:355px;}
#btn1:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
#btn2 {float:left;height:130px;left:32px;position:relative;top:185px;width:270px;}
#btn2:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
#btn3 {float:left;height:125px;left:58px;position:relative;top:190px;width:270px;}
#btn3:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
#btn4 {float:left;height:130px;left:86px;position:relative;top:185px;width:270px;}
#btn4:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#splash{margin:10px auto; width:1250px; height:781px; background-image:url(../images/splash1280.jpg)}
#btn1 {height:81px;left:365px;position:relative;top:230px;width:440px;position:relative;}
#btn1:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
#btn2 {float:left;height:160px;left:45px;position:relative;top:237px;width:330px;}
#btn2:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
#btn3 {float:left;height:155px;position:relative;top:240px;width:330px;left:90px;}
#btn3:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
#btn4 {float:left;height:160px;position:relative;top:237px;width:330px;left:133px;}
#btn4:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
#splash{margin:10px auto; width:1250px; height:781px; background-image:url(../images/splash1280.jpg)}
#btn1 {height:81px;left:365px;position:relative;top:230px;width:440px;position:relative;}
#btn1:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
#btn2 {float:left;height:160px;left:45px;position:relative;top:237px;width:330px;}
#btn2:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
#btn3 {float:left;height:155px;position:relative;top:240px;width:330px;left:90px;}
#btn3:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
#btn4 {float:left;height:160px;position:relative;top:237px;width:330px;left:133px;}
#btn4:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#splash{margin:10px auto; width:1410px; height:881px; background-image:url(../images/splash1440.jpg)}
#btn1 {left: 418px; top: 260px; height: 93px; width: 489px; position:relative;}
#btn1:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
#btn2 {float:left; left: 52px; top: 263px; height: 184px; width: 369px; position:relative;}
#btn2:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
#btn3 {float:left; left: 105px; top: 271px; height: 176px; width: 369px; position:relative;}
#btn3:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
#btn4 {float:left; left: 160px; top: 263px; height: 184px; width: 369px; position:relative;}
#btn4:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
#splash{margin:10px auto; width:1410px; height:881px; background-image:url(../images/splash1440.jpg)}
#btn1 {left: 418px; top: 260px; height: 93px; width: 489px; position:relative;}
#btn1:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
#btn2 {float:left; left: 52px; top: 263px; height: 184px; width: 369px; position:relative;}
#btn2:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
#btn3 {float:left; left: 105px; top: 271px; height: 176px; width: 369px; position:relative;}
#btn3:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
#btn4 {float:left; left: 160px; top: 263px; height: 184px; width: 369px; position:relative;}
#btn4:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#splash{margin:10px auto; width:770px; height:481px; background-image:url(../images/splash800.jpg)}
#btn1 {height:48px;left:220px;position:relative;top:143px;width:280px;}
#btn1:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
#btn2 {float:left;height:102px;left:27px;position:relative;top:144px;width:204px;}
#btn2:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
#btn3 {float:left;height:95px;left:52px;position:relative;top:150px;width:204px;}
#btn3:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
#btn4 {float:left;height:102px;left:78px;position:relative;top:144px;width:204px;}
#btn4:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
#splash{margin:10px auto; width:770px; height:481px; background-image:url(../images/splash800.jpg)}
#btn1 {height:48px;left:220px;position:relative;top:143px;width:280px;}
#btn1:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
#btn2 {float:left;height:102px;left:27px;position:relative;top:144px;width:204px;}
#btn2:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
#btn3 {float:left;height:95px;left:52px;position:relative;top:150px;width:204px;}
#btn3:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
#btn4 {float:left;height:102px;left:78px;position:relative;top:144px;width:204px;}
#btn4:hover{border:solid 2px #FFF; background-color:#BBB; opacity:0.1; filter: alpha (opacity=10);}
Loading

0 comments on commit 4c1d43d

Please sign in to comment.