Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
OHR Support
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
97
Issues
97
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
OHR Support
Commits
aced650a
Commit
aced650a
authored
May 02, 2011
by
Gregor Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Introducing help layout
parent
aeafbf3f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
31 deletions
+23
-31
help_controller.rb
app/controllers/help_controller.rb
+0
-2
wiki_syntax.html.erb
app/views/help/wiki_syntax.html.erb
+3
-13
wiki_syntax_detailed.html.erb
app/views/help/wiki_syntax_detailed.html.erb
+7
-16
help.html.erb
app/views/layouts/help.html.erb
+13
-0
No files found.
app/controllers/help_controller.rb
View file @
aced650a
class
HelpController
<
ApplicationController
def
wiki_syntax
render
:layout
=>
false
end
def
wiki_syntax_detailed
render
:layout
=>
false
end
end
app/views/help/wiki_syntax.html.erb
View file @
aced650a
<!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"
>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
<title>
Wiki Syntax Quick Reference
</title>
<style
type=
"text/css"
>
<%
content_for
:styles
do
%>
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; }
table th { padding-top: 1em; }
...
...
@@ -12,11 +7,9 @@
table td h1 { font-size: 1.8em; text-align: left; }
table td h2 { font-size: 1.4em; text-align: left; }
table td h3 { font-size: 1.2em; text-align: left; }
</style>
</head>
<body>
<%
end
%>
<h1>
Wiki Syntax Quick Reference
</h1>
<h1>
<%=
html_title
"Wiki Syntax Quick Reference"
%>
</h1>
<table
width=
"100%"
>
<tr><th
colspan=
"3"
>
Font Styles
</th></tr>
...
...
@@ -59,6 +52,3 @@
</table>
<p><a
href=
"wiki_syntax_detailed"
onclick=
"window.open('wiki_syntax_detailed', '', ''); return false;"
>
More Information
</a></p>
</body>
</html>
app/views/help/wiki_syntax_detailed.html.erb
View file @
aced650a
<!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>
Wiki Formatting
</title>
<meta
http-equiv=
"content-type"
content=
"text/html; charset=utf-8"
/>
<style
type=
"text/css"
>
<%
content_for
:styles
do
%>
body { font:80% Verdana,Tahoma,Arial,sans-serif; }
h1, h2, h3, h4 { font-family: Trebuchet MS,Georgia,"Times New Roman",serif; }
pre, code { font-size:120%; }
...
...
@@ -19,24 +14,22 @@
a.new { color: #b73535; }
.CodeRay .c { color:#666; }
.CodeRay .cl { color:#B06; font-weight:bold }
.CodeRay .dl { color:black }
.CodeRay .fu { color:#06B; font-weight:bold }
.CodeRay .il { background: #eee }
.CodeRay .il .idl { font-weight: bold; color: #888 }
.CodeRay .iv { color:#33B }
.CodeRay .r { color:#080; font-weight:bold }
.CodeRay .s { background-color:#fff0f0 }
.CodeRay .s .dl { color:#710 }
</style>
</head>
<%
end
%>
<body>
<h1><a
name=
"1"
class=
"wiki-page"
></a>
Wiki formatting
</h1>
<h1><a
name=
"1"
class=
"wiki-page"
></a>
<%=
html_title
"Wiki Formatting"
%>
</h1>
<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>
</code>
</pre>
</body>
</html>
app/views/layouts/help.html.erb
0 → 100644
View file @
aced650a
<!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>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment