Help message for wiki, styled projects page
This commit is contained in:
parent
ce8eba8913
commit
1c22d4f50f
11 changed files with 71 additions and 32 deletions
|
@ -1,12 +1,12 @@
|
|||
%tr
|
||||
%td
|
||||
%a{:href => project_deploy_key_path(key.project, key)}
|
||||
= key.title
|
||||
%strong= key.title
|
||||
%td
|
||||
%span.update-author
|
||||
Added
|
||||
= time_ago_in_words(key.created_at)
|
||||
ago
|
||||
%td
|
||||
= link_to 'Remove', project_deploy_key_path(key.project, key), :confirm => 'Are you sure?', :method => :delete, :class => "danger btn delete-key small"
|
||||
= link_to 'Remove', project_deploy_key_path(key.project, key), :confirm => 'Are you sure?', :method => :delete, :class => "danger btn delete-key small right"
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
.widget
|
||||
You can create at least
|
||||
= current_user.projects_limit
|
||||
projects. Click on button to add a new one
|
||||
projects. Click on link below to add a new one
|
||||
.link_holder
|
||||
= link_to new_project_path, :class => "" do
|
||||
New Project »
|
||||
|
|
|
@ -1,11 +1,13 @@
|
|||
- @projects.in_groups_of(2, false) do |projects|
|
||||
.row
|
||||
- projects.each_with_index do |project, i|
|
||||
%div.span5.well.padded
|
||||
= link_to project_path(project) do
|
||||
%h3= truncate(project.name, :length => 28)
|
||||
%p
|
||||
%input{ :value => project.url_to_repo, :class => ['git-url', 'one_click_select', 'text', 'project_list_url'], :readonly => 'readonly' }
|
||||
|
||||
%a.btn.info{:href => tree_project_ref_path(project, project.root_ref)} Browse code
|
||||
%a.btn{:href => project_commits_path(project)} Commits
|
||||
%div.project_tile
|
||||
.title
|
||||
= link_to project_path(project) do
|
||||
%h3= truncate(project.name, :length => 28)
|
||||
.data
|
||||
%p
|
||||
%input{ :value => project.url_to_repo, :class => ['git-url', 'one_click_select', 'text', 'project_list_url'], :readonly => 'readonly' }
|
||||
.buttons
|
||||
%a.btn.info{:href => tree_project_ref_path(project, project.root_ref)} Browse code
|
||||
%a.btn{:href => project_commits_path(project)} Commits
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
%h1 Editing page
|
||||
|
||||
%h3 Editing page
|
||||
%hr
|
||||
= render 'form'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
%h2 Versions
|
||||
%h3 Versions
|
||||
%table
|
||||
%thead
|
||||
%tr
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue