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