added html export of wiki page

git-svn-id: http://redmine.rubyforge.org/svn/branches/work@297 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2007-03-04 16:28:11 +00:00
parent f14e2db66b
commit eb018727ef
6 changed files with 28 additions and 2 deletions
+12
View File
@@ -0,0 +1,12 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title><%=h @page.pretty_title %></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
</head>
<body>
<h1><%=h @page.pretty_title %></h1>
<hr />
<%= textilizable @content.text, :wiki_basename => true %>
</body>
</html>
+5
View File
@@ -23,4 +23,9 @@
<% cache :action => 'page', :id => @page.id, :ver => @content.version do %>
<%= textilizable @content.text %>
<% end %>
</div>
<div class="contextual">
<%= l(:label_export_to) %>
<%= link_to 'HTML', {:export => 'html'}, :class => 'icon icon-html' %>
</div>