Fixed dashboard loader, fixed 404 for reporter on empty wiki page.

Styled Wiki edit page
This commit is contained in:
randx 2012-07-26 14:45:17 +03:00
parent 14c9723724
commit c27105f8c3
7 changed files with 28 additions and 27 deletions

View file

@ -6,19 +6,21 @@
- @wiki.errors.full_messages.each do |msg|
%li= msg
.alert-message.block-message.warning
%p
Wiki content is parsed with #{link_to "Markdown", "http://en.wikipedia.org/wiki/Markdown"}.
%br
To add link to new page you can just type
%code [Link Title](page-slug)
.clearfix
= f.label :title
.input= f.text_field :title, :class => :xxlarge
= f.hidden_field :slug
.clearfix
= f.label :content
.input= f.text_area :content, :class => :xxlarge
.main_box
.top_box_content
= f.label :title
.input= f.text_field :title, :class => 'span8'
= f.hidden_field :slug
.middle_box_content
.input
%span.cgray
Wiki content is parsed with #{link_to "Markdown", "http://en.wikipedia.org/wiki/Markdown"}.
To add link to new page you can just type
%code [Link Title](page-slug)
.bottom_box_content
= f.label :content
.input= f.text_area :content, :class => 'span8'
.actions
= f.submit 'Save', :class => "primary btn"
= link_to "Cancel", project_wiki_path(@project, :index), :class => "btn"

View file

@ -1,3 +1,3 @@
%h3 Editing page
%h3.page_title Editing page
%hr
= render 'form'

View file

@ -0,0 +1,4 @@
%h3.page_title Empty page
%hr
.alert-message.block-message.warning
%span You are not allowed to create wiki pages