better CSS support

git-svn-id: file:///home/shish/svn/shimmie2/trunk@142 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish 2007-05-29 02:07:38 +00:00
parent ea393ca985
commit ec108c5493
2 changed files with 6 additions and 1 deletions

View File

@ -228,7 +228,7 @@ class Wiki extends Extension {
private function create_display_html($page) { private function create_display_html($page) {
$owner = $page->get_owner(); $owner = $page->get_owner();
$html = ""; $html = "<div class='wiki-page'>";
$html .= bbcode_to_html($page->body); $html .= bbcode_to_html($page->body);
$html .= "<hr>"; $html .= "<hr>";
$html .= "<p>Revision {$page->revision} by {$owner->name} at {$page->date} "; $html .= "<p>Revision {$page->revision} by {$owner->name} at {$page->date} ";
@ -238,6 +238,8 @@ class Wiki extends Extension {
$html .= "[<a href='".make_link("wiki/{$page->title}", "edit=on")."'>edit</a>] "; $html .= "[<a href='".make_link("wiki/{$page->title}", "edit=on")."'>edit</a>] ";
} }
$html .= "</div>";
return $html; return $html;
} }
// }}} // }}}

3
contrib/wiki/style.css Normal file
View File

@ -0,0 +1,3 @@
.wiki-page {
text-align: left;
}