implemented javascripts for wiki pages
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<% if @wiki_page %>
|
||||
<li>|</li>
|
||||
<li><%= link_to "Posts (#{Post.fast_count(@wiki_page.title)})", posts_path(:tags => @wiki_page.title) %></li>
|
||||
<li><%= link_to "History", wiki_page_versions_path(:search => {:wiki_page_id_equals => @wiki_page.id}) %></li>
|
||||
<li><%= link_to "History", wiki_page_versions_path(:search => {:wiki_page_id_eq => @wiki_page.id}) %></li>
|
||||
<% unless @wiki_page.new_record? %>
|
||||
<li><%= link_to "Edit", edit_wiki_page_path(@wiki_page) %></li>
|
||||
<% if CurrentUser.is_moderator? %>
|
||||
|
||||
@@ -4,6 +4,10 @@
|
||||
|
||||
<section id="content">
|
||||
<h1 id="wiki-page-title"><%= @wiki_page.pretty_title %> (Editing)</h1>
|
||||
|
||||
<div id="preview" class="wiki-page-body">
|
||||
</div>
|
||||
|
||||
<%= simple_form_for(@wiki_page) do |f| %>
|
||||
<%= render :partial => "form", :locals => {:f => f} %>
|
||||
<% end %>
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
|
||||
<section id="content">
|
||||
<h1>New Wiki Page</h1>
|
||||
<div id="preview">
|
||||
|
||||
<div id="preview" class="wiki-page-body">
|
||||
</div>
|
||||
|
||||
<%= simple_form_for(@wiki_page) do |f| %>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<section id="content">
|
||||
<h1 id="wiki-page-title"><%= @wiki_page.pretty_title %></h1>
|
||||
|
||||
<div id="wiki-page-body">
|
||||
<div class="wiki-page-body">
|
||||
<%= format_text(@wiki_page.body) %>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user