fixes #975
This commit is contained in:
@@ -3,6 +3,12 @@ div#c-wiki-pages {
|
|||||||
color: #AAA;
|
color: #AAA;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
div.notice {
|
||||||
|
font-size: 0.8em;
|
||||||
|
padding: 1em;
|
||||||
|
margin: 1em 0;
|
||||||
|
}
|
||||||
|
|
||||||
del {
|
del {
|
||||||
background: #FCC;
|
background: #FCC;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ class WikiPagesController < ApplicationController
|
|||||||
else
|
else
|
||||||
@wiki_page = WikiPage.find_by_id(params[:id])
|
@wiki_page = WikiPage.find_by_id(params[:id])
|
||||||
end
|
end
|
||||||
|
|
||||||
respond_with(@wiki_page)
|
respond_with(@wiki_page)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,13 @@
|
|||||||
<li><%= render "wiki_pages/quick_search" %></li>
|
<li><%= render "wiki_pages/quick_search" %></li>
|
||||||
<li><%= link_to "Listing", wiki_pages_path %></li>
|
<li><%= link_to "Listing", wiki_pages_path %></li>
|
||||||
<li><%= link_to "Search", search_wiki_pages_path %></li>
|
<li><%= link_to "Search", search_wiki_pages_path %></li>
|
||||||
<li><%= link_to "New", new_wiki_page_path %></li>
|
|
||||||
|
<% if CurrentUser.is_member? %>
|
||||||
|
<li><%= link_to "New", new_wiki_page_path %></li>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
<li><%= link_to "Help", wiki_pages_path(:search => {:title => "help:wiki"}) %></li>
|
<li><%= link_to "Help", wiki_pages_path(:search => {:title => "help:wiki"}) %></li>
|
||||||
|
|
||||||
<% if @wiki_page %>
|
<% if @wiki_page %>
|
||||||
<li>|</li>
|
<li>|</li>
|
||||||
<li><%= link_to "Posts (#{Post.fast_count(@wiki_page.title)})", posts_path(:tags => @wiki_page.title) %></li>
|
<li><%= link_to "Posts (#{Post.fast_count(@wiki_page.title)})", posts_path(:tags => @wiki_page.title) %></li>
|
||||||
|
|||||||
@@ -4,6 +4,13 @@
|
|||||||
|
|
||||||
<section id="content">
|
<section id="content">
|
||||||
<h1>New Wiki Page</h1>
|
<h1>New Wiki Page</h1>
|
||||||
|
|
||||||
|
<% if @wiki_page.title.present? %>
|
||||||
|
<div class="ui-corner-all ui-state-highlight notice">
|
||||||
|
This wiki page does not yet exist. The form below will allow you to create a new page for <%= @wiki_page.title %>. It will act as an explanation on how to use the tag for other users on the site.
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
<%= render "form" %>
|
<%= render "form" %>
|
||||||
|
|
||||||
<div id="wiki-page-posts">
|
<div id="wiki-page-posts">
|
||||||
|
|||||||
Reference in New Issue
Block a user