Remove files which should be deleted in previous commit

This commit is contained in:
ihower committed 2011-04-13 18:53:47 +08:00
1 parent 2f9dcf7791
commit 8a4cffae8f
100 files changed
-5991

No files matched your search

-29
View File
@@ -1,29 +0,0 @@
class RerouteMiddleware
def initialize(app)
@app = app
end
def call(env)
#Rails.logger.debug env.to_yaml
return @app.call(env) if env['REQUEST_URI'] =~ /^\/admin/
env['REQUEST_URI'] =~ /^\/([0-9a-zA-Z\-_\/]*)/
parsed_entry_name = $1
entry = Item.first(:conditions => {:full_name => parsed_entry_name} )
if entry
case entry.type.to_s
when 'Component'
env['REQUEST_URI'] = env['REQUEST_URI'].sub!(parsed_entry_name, entry.engine_name)
env['QUERY_STRING'] = (env['QUERY_STRING'].blank?)? "entry_name=#{parsed_entry_name}" : "entry_name=#{parsed_entry_name}&#{env['QUERY_STRING']}"
when 'Link'
return [301, {'Location' => entry.url }, ['See Ya!']]
end
end
@app.call(env)
end
end
-1
View File
@@ -1 +0,0 @@
<h2>About us</h2>
-1
View File
@@ -1 +0,0 @@
<h2>關於我們</h2>
-1
View File
@@ -1 +0,0 @@
<p>Footer</p>
-1
View File
@@ -1 +0,0 @@
<p>頁尾</p>
-4
View File
@@ -1,4 +0,0 @@
<ul>
<li><a href="?locale=en">English</a></li>
<li><a href="?locale=zh_tw">中文版</a></li>
</ul>
-4
View File
@@ -1,4 +0,0 @@
<ul>
<li><a href="?locale=en">English</a></li>
<li><a href="?locale=zh_tw">中文版</a></li>
</ul>
-4
View File
@@ -1,4 +0,0 @@
<ul>
<li><a href="/">Homepage</a></li>
<li><a href="/about">About us</a></li>
<ul>
-4
View File
@@ -1,4 +0,0 @@
<ul>
<li><a href="/">首頁</a></li>
<li><a href="/about">關於我們</a></li>
<ul>
-25
View File
@@ -1,25 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>RulingSite</title>
</head>
<body>
<div id="header">
{{ 'nav' | render_snippet }}
</div>
<div id="container">
{{page_content}}
</div>
<div id="footer">
{{ 'locale' | render_snippet }}
{{ 'footer' | render_snippet }}
</div>
</body>
</html>
-25
View File
@@ -1,25 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>RulingSite</title>
</head>
<body>
<div id="header">
{{ 'nav' | render_snippet }}
</div>
<div id="container">
{{page_content}}
</div>
<div id="footer">
{{ 'locale' | render_snippet }}
{{ 'footer' | render_snippet }}
</div>
</body>
</html>
-1
View File
@@ -1 +0,0 @@
<p>This is homepage</p>
-1
View File
@@ -1 +0,0 @@
homepage<p>這是首頁</p>