Introducing help layout

This commit is contained in:
Gregor Schmidt 2011-05-02 14:32:50 +02:00
parent aeafbf3fa8
commit aced650a10
4 changed files with 23 additions and 31 deletions

View File

@ -1,9 +1,7 @@
class HelpController < ApplicationController class HelpController < ApplicationController
def wiki_syntax def wiki_syntax
render :layout => false
end end
def wiki_syntax_detailed def wiki_syntax_detailed
render :layout => false
end end
end end

View File

@ -1,9 +1,4 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <% content_for :styles do %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Wiki Syntax Quick Reference</title>
<style type="text/css">
h1 { font-family: Verdana, sans-serif; font-size: 14px; text-align: center; color: #444; } h1 { font-family: Verdana, sans-serif; font-size: 14px; text-align: center; color: #444; }
body { font-family: Verdana, sans-serif; font-size: 12px; color: #444; } body { font-family: Verdana, sans-serif; font-size: 12px; color: #444; }
table th { padding-top: 1em; } table th { padding-top: 1em; }
@ -12,11 +7,9 @@
table td h1 { font-size: 1.8em; text-align: left; } table td h1 { font-size: 1.8em; text-align: left; }
table td h2 { font-size: 1.4em; text-align: left; } table td h2 { font-size: 1.4em; text-align: left; }
table td h3 { font-size: 1.2em; text-align: left; } table td h3 { font-size: 1.2em; text-align: left; }
</style> <% end %>
</head>
<body>
<h1>Wiki Syntax Quick Reference</h1> <h1><%= html_title "Wiki Syntax Quick Reference" %></h1>
<table width="100%"> <table width="100%">
<tr><th colspan="3">Font Styles</th></tr> <tr><th colspan="3">Font Styles</th></tr>
@ -59,6 +52,3 @@
</table> </table>
<p><a href="wiki_syntax_detailed" onclick="window.open('wiki_syntax_detailed', '', ''); return false;">More Information</a></p> <p><a href="wiki_syntax_detailed" onclick="window.open('wiki_syntax_detailed', '', ''); return false;">More Information</a></p>
</body>
</html>

View File

@ -1,9 +1,4 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <% content_for :styles do %>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Wiki Formatting</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<style type="text/css">
body { font:80% Verdana,Tahoma,Arial,sans-serif; } body { font:80% Verdana,Tahoma,Arial,sans-serif; }
h1, h2, h3, h4 { font-family: Trebuchet MS,Georgia,"Times New Roman",serif; } h1, h2, h3, h4 { font-family: Trebuchet MS,Georgia,"Times New Roman",serif; }
pre, code { font-size:120%; } pre, code { font-size:120%; }
@ -32,11 +27,9 @@
.CodeRay .s { background-color:#fff0f0 } .CodeRay .s { background-color:#fff0f0 }
.CodeRay .s .dl { color:#710 } .CodeRay .s .dl { color:#710 }
</style> <% end %>
</head>
<body> <h1><a name="1" class="wiki-page"></a><%= html_title "Wiki Formatting" %></h1>
<h1><a name="1" class="wiki-page"></a>Wiki formatting</h1>
<h2><a name="2" class="wiki-page"></a>Links</h2> <h2><a name="2" class="wiki-page"></a>Links</h2>
@ -266,5 +259,3 @@ To go live, all you need to add is a database and a web server.
<span class="no"><strong>10</strong></span> <span class="r">end</span> <span class="no"><strong>10</strong></span> <span class="r">end</span>
</code> </code>
</pre> </pre>
</body>
</html>

View File

@ -0,0 +1,13 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title><%= h html_title %></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<style type="text/css">
<%= yield(:styles) %>
</style>
</head>
<body>
<%= yield %>
</body>
</html>