Introducing help layout
This commit is contained in:
parent
aeafbf3fa8
commit
aced650a10
@ -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
|
||||||
|
@ -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>
|
|
||||||
|
@ -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%; }
|
||||||
@ -19,24 +14,22 @@
|
|||||||
a.new { color: #b73535; }
|
a.new { color: #b73535; }
|
||||||
|
|
||||||
.CodeRay .c { color:#666; }
|
.CodeRay .c { color:#666; }
|
||||||
|
|
||||||
.CodeRay .cl { color:#B06; font-weight:bold }
|
.CodeRay .cl { color:#B06; font-weight:bold }
|
||||||
.CodeRay .dl { color:black }
|
.CodeRay .dl { color:black }
|
||||||
.CodeRay .fu { color:#06B; font-weight:bold }
|
.CodeRay .fu { color:#06B; font-weight:bold }
|
||||||
|
|
||||||
.CodeRay .il { background: #eee }
|
.CodeRay .il { background: #eee }
|
||||||
.CodeRay .il .idl { font-weight: bold; color: #888 }
|
.CodeRay .il .idl { font-weight: bold; color: #888 }
|
||||||
|
|
||||||
.CodeRay .iv { color:#33B }
|
.CodeRay .iv { color:#33B }
|
||||||
.CodeRay .r { color:#080; font-weight:bold }
|
.CodeRay .r { color:#080; font-weight:bold }
|
||||||
|
|
||||||
.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>
|
|
||||||
|
13
app/views/layouts/help.html.erb
Normal file
13
app/views/layouts/help.html.erb
Normal 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>
|
Loading…
x
Reference in New Issue
Block a user