Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
local stylesheet (problem with https directly)
Browse files Browse the repository at this point in the history
  • Loading branch information
moomerman committed Oct 29, 2008
1 parent 045335a commit e0c0700
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
8 changes: 8 additions & 0 deletions public/yui-2.5.1-reset-fonts-grids.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 7 additions & 5 deletions snail.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,20 @@
end

before do
if session[:key] and @@session_keys[session[:key]]
@ec2 = @@session_keys[session[:key]][:ec2]
@s3 = @@session_keys[session[:key]][:s3]
elsif @@config
if @@config and !session[:key]
@@session_keys[@@config['aws_key']] ||= {
:ec2 => RightAws::Ec2.new(@@config['aws_key'], @@config['aws_secret']),
:s3 => RightAws::S3.new(@@config['aws_key'], @@config['aws_secret'])
}
session[:key] = @@config['aws_key']
else
end
unless session[:key]
redirect '/setup' unless request.path_info =~ /\/setup/ or request.path_info =~ /.css/
end
if session[:key] and @@session_keys[session[:key]]
@ec2 = @@session_keys[session[:key]][:ec2]
@s3 = @@session_keys[session[:key]][:s3]
end
end

helpers do
Expand Down
4 changes: 1 addition & 3 deletions views/layout.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
<head>
<title><%= @title ? @title + ' | ' : '' %>Snail</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="http://yui.yahooapis.com/2.5.1/build/reset-fonts-grids/reset-fonts-grids.css" type="text/css">
<!--[if lt IE 7]><script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE7.js" type="text/javascript"></script><![endif]-->
<!--[if lt IE 8]><script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js" type="text/javascript"></script><![endif]-->
<link rel="stylesheet" href="/yui-2.5.1-reset-fonts-grids.css" type="text/css">
<link href="/style.css" media="screen" rel="Stylesheet" type="text/css"></link>
<script type="text/javascript" src="/jquery-1.2.6.min.js"></script>
</head>
Expand Down

0 comments on commit e0c0700

Please sign in to comment.