@@ -1,18 +1,21 | |||||
1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
|
1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | |
2 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> |
|
2 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> | |
3 | <head> |
|
3 | <head> | |
4 | <title><%=h @page.pretty_title %></title> |
|
4 | <title><%=h @page.pretty_title %></title> | |
5 | <meta http-equiv="content-type" content="text/html; charset=utf-8" /> |
|
5 | <meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
6 | <style> |
|
6 | <style> | |
7 | body { font:80% Verdana,Tahoma,Arial,sans-serif; } |
|
7 | body { font:80% Verdana,Tahoma,Arial,sans-serif; } | |
8 | h1, h2, h3, h4 { font-family: "Trebuchet MS",Georgia,"Times New Roman",serif; } |
|
8 | h1, h2, h3, h4 { font-family: "Trebuchet MS",Georgia,"Times New Roman",serif; } | |
9 | ul.toc { padding: 4px; margin-left: 0; } |
|
9 | ul.toc { padding: 4px; margin-left: 0; } | |
10 | ul.toc li { list-style-type:none; } |
|
10 | ul.toc li { list-style-type:none; } | |
11 | ul.toc li.heading2 { margin-left: 1em; } |
|
11 | ul.toc li.heading2 { margin-left: 1em; } | |
12 | ul.toc li.heading3 { margin-left: 2em; } |
|
12 | ul.toc li.heading3 { margin-left: 2em; } | |
|
13 | a.wiki-anchor { display: none; margin-left: 6px; text-decoration: none; } | |||
|
14 | a.wiki-anchor:hover { color: #aaa !important; text-decoration: none; } | |||
|
15 | h1:hover a.wiki-anchor, h2:hover a.wiki-anchor, h3:hover a.wiki-anchor { display: inline; color: #ddd; } | |||
13 | </style> |
|
16 | </style> | |
14 | </head> |
|
17 | </head> | |
15 | <body> |
|
18 | <body> | |
16 | <%= textilizable @content, :text, :wiki_links => :local %> |
|
19 | <%= textilizable @content, :text, :wiki_links => :local %> | |
17 | </body> |
|
20 | </body> | |
18 | </html> |
|
21 | </html> |
@@ -1,27 +1,34 | |||||
1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
|
1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | |
2 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> |
|
2 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> | |
3 | <head> |
|
3 | <head> | |
4 | <title><%=h @wiki.project.name %></title> |
|
4 | <title><%=h @wiki.project.name %></title> | |
5 | <meta http-equiv="content-type" content="text/html; charset=utf-8" /> |
|
5 | <meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
6 | <style> |
|
6 | <style> | |
7 | body { font:80% Verdana,Tahoma,Arial,sans-serif; } |
|
7 | body { font:80% Verdana,Tahoma,Arial,sans-serif; } | |
8 | h1, h2, h3, h4 { font-family: "Trebuchet MS",Georgia,"Times New Roman",serif; } |
|
8 | h1, h2, h3, h4 { font-family: "Trebuchet MS",Georgia,"Times New Roman",serif; } | |
|
9 | ul.toc { padding: 4px; margin-left: 0; } | |||
|
10 | ul.toc li { list-style-type:none; } | |||
|
11 | ul.toc li.heading2 { margin-left: 1em; } | |||
|
12 | ul.toc li.heading3 { margin-left: 2em; } | |||
|
13 | a.wiki-anchor { display: none; margin-left: 6px; text-decoration: none; } | |||
|
14 | a.wiki-anchor:hover { color: #aaa !important; text-decoration: none; } | |||
|
15 | h1:hover a.wiki-anchor, h2:hover a.wiki-anchor, h3:hover a.wiki-anchor { display: inline; color: #ddd; } | |||
9 | </style> |
|
16 | </style> | |
10 | </head> |
|
17 | </head> | |
11 | <body> |
|
18 | <body> | |
12 |
|
19 | |||
13 | <strong><%= l(:label_index_by_title) %></strong> |
|
20 | <strong><%= l(:label_index_by_title) %></strong> | |
14 | <ul> |
|
21 | <ul> | |
15 | <% @pages.each do |page| %> |
|
22 | <% @pages.each do |page| %> | |
16 | <li><a href="#<%= page.title %>"><%= page.pretty_title %></a></li> |
|
23 | <li><a href="#<%= page.title %>"><%= page.pretty_title %></a></li> | |
17 | <% end %> |
|
24 | <% end %> | |
18 | </ul> |
|
25 | </ul> | |
19 |
|
26 | |||
20 | <% @pages.each do |page| %> |
|
27 | <% @pages.each do |page| %> | |
21 | <hr /> |
|
28 | <hr /> | |
22 | <a name="<%= page.title %>" /> |
|
29 | <a name="<%= page.title %>" /> | |
23 | <%= textilizable page.content ,:text, :wiki_links => :anchor %> |
|
30 | <%= textilizable page.content ,:text, :wiki_links => :anchor %> | |
24 | <% end %> |
|
31 | <% end %> | |
25 |
|
32 | |||
26 | </body> |
|
33 | </body> | |
27 | </html> |
|
34 | </html> |
General Comments 0
You need to be logged in to leave comments.
Login now