Help message for wiki, styled projects page

This commit is contained in:
Dmitriy Zaporozhets 2012-02-21 22:04:01 +02:00
parent ce8eba8913
commit 1c22d4f50f
11 changed files with 71 additions and 32 deletions

View file

@ -6,6 +6,12 @@
- @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

View file

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

View file

@ -1,4 +1,4 @@
%h2 Versions
%h3 Versions
%table
%thead
%tr

View file

@ -1,10 +1,11 @@
%h3
= @wiki.title
= link_to edit_project_wiki_path(@project, @wiki), :class => "right btn small" do
Edit
- if can? current_user, :write_wiki, @project
= link_to history_project_wiki_path(@project, @wiki), :class => "right btn small" do
History
%span.right
- if can? current_user, :write_wiki, @project
= link_to history_project_wiki_path(@project, @wiki), :class => "btn small" do
History
= link_to edit_project_wiki_path(@project, @wiki), :class => "btn small" do
Edit
%hr
= markdown_to_html @wiki.content