Commit f79a3004 authored by Marin Jankovski's avatar Marin Jankovski

Replace existing links to help pages with the new ones.

parent a9580a15
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
.body.form-holder .body.form-holder
%p.light %p.light
Read more about project permissions Read more about project permissions
%strong= link_to "here", help_permissions_path, class: "vlink" %strong= link_to "here", help_page_path("permissions", "permissions"), class: "vlink"
= form_tag project_teams_update_admin_group_path(@group), id: "new_team_member", class: "bulk_import", method: :put do = form_tag project_teams_update_admin_group_path(@group), id: "new_team_member", class: "bulk_import", method: :put do
%div %div
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
System hooks System hooks
%p.light %p.light
#{link_to "System hooks ", help_system_hooks_path, class: "vlink"} can be #{link_to "System hooks ", help_page_path("system_hooks", "system_hooks"), class: "vlink"} can be
used for binding events when GitLab creates a User or Project. used for binding events when GitLab creates a User or Project.
%hr %hr
......
...@@ -2,4 +2,4 @@ ...@@ -2,4 +2,4 @@
%h3.page-title Access Denied %h3.page-title Access Denied
%hr %hr
%p You are not allowed to access this page. %p You are not allowed to access this page.
%p Read more about project permissions #{link_to "here", help_permissions_path, class: "vlink"} %p Read more about project permissions #{link_to "here", help_page_path("permissions", "permissions"), class: "vlink"}
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
%p.light %p.light
Members of group have access to all group projects. Members of group have access to all group projects.
Read more about permissions Read more about permissions
%strong= link_to "here", help_permissions_path, class: "vlink" %strong= link_to "here", help_page_path("permissions", "permissions"), class: "vlink"
%hr %hr
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
SSH keys allow you to establish a secure connection between your computer and GitLab SSH keys allow you to establish a secure connection between your computer and GitLab
%br %br
Before you can add an SSH key you need to Before you can add an SSH key you need to
= link_to "generate it", help_ssh_path = link_to "generate it", help_page_path("ssh", "README")
%hr %hr
......
%h3.page-title Add an SSH Key %h3.page-title Add an SSH Key
%p.light %p.light
Paste your public key here. Read more about how to generate a key on #{link_to "the SSH help page", help_ssh_path}. Paste your public key here. Read more about how to generate a key on #{link_to "the SSH help page", help_page_path("ssh", "README")}.
%hr %hr
= render 'form' = render 'form'
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
.col-sm-10 .col-sm-10
%p.light %p.light
Paste a machine public key here. Read more about how to generate it Paste a machine public key here. Read more about how to generate it
= link_to "here", help_ssh_path = link_to "here", help_page_path("ssh", "README")
= f.text_area :key, class: "form-control thin_area", rows: 5 = f.text_area :key, class: "form-control thin_area", rows: 5
.form-actions .form-actions
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
Web hooks Web hooks
%p.light %p.light
#{link_to "Web hooks ", help_web_hooks_path, class: "vlink"} can be #{link_to "Web hooks ", help_page_path("web_hooks", "web_hooks"), class: "vlink"} can be
used for binding events when something is happening within the project. used for binding events when something is happening within the project.
%hr.clearfix %hr.clearfix
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
.col-sm-10 .col-sm-10
= f.text_area :description, class: 'form-control js-gfm-input markdown-area', rows: 14 = f.text_area :description, class: 'form-control js-gfm-input markdown-area', rows: 14
.col-sm-12.hint .col-sm-12.hint
.pull-left Issues are parsed with #{link_to "GitLab Flavored Markdown", help_markdown_path, target: '_blank'}. .pull-left Issues are parsed with #{link_to "GitLab Flavored Markdown", help_page_path("markdown", "markdown"), target: '_blank'}.
.pull-right Attach images (JPG, PNG, GIF) by dragging & dropping, #{link_to "selecting them", '#', class: 'markdown-selector' } or pasting from the clipboard. .pull-right Attach images (JPG, PNG, GIF) by dragging & dropping, #{link_to "selecting them", '#', class: 'markdown-selector' } or pasting from the clipboard.
.clearfix .clearfix
.error-alert .error-alert
......
...@@ -24,9 +24,8 @@ ...@@ -24,9 +24,8 @@
.col-sm-10 .col-sm-10
= f.text_area :description, class: "form-control js-gfm-input markdown-area", rows: 14 = f.text_area :description, class: "form-control js-gfm-input markdown-area", rows: 14
.col-sm-12.hint .col-sm-12.hint
.pull-left Description is parsed with #{link_to "GitLab Flavored Markdown", help_markdown_path, target: '_blank'}. .pull-left Description is parsed with #{link_to "GitLab Flavored Markdown", help_page_path("markdown", "markdown"), target: '_blank'}.
.pull-right Attach images (JPG, PNG, GIF) by dragging & dropping, #{link_to "selecting them", '#', class: 'markdown-selector' } or pasting from the clipboard. .pull-right Attach images (JPG, PNG, GIF) by dragging & dropping, #{link_to "selecting them", '#', class: 'markdown-selector' } or pasting from the clipboard.
.clearfix .clearfix
.error-alert .error-alert
%hr %hr
......
...@@ -25,9 +25,8 @@ ...@@ -25,9 +25,8 @@
= f.label :description, "Description" = f.label :description, "Description"
= f.text_area :description, class: "form-control js-gfm-input markdown-area", rows: 10 = f.text_area :description, class: "form-control js-gfm-input markdown-area", rows: 10
.col-sm-12.hint .col-sm-12.hint
.pull-left Description is parsed with #{link_to "GitLab Flavored Markdown", help_markdown_path, target: '_blank'}. .pull-left Description is parsed with #{link_to "GitLab Flavored Markdown", help_page_path("markdown", "markdown"), target: '_blank'}.
.pull-right Attach images (JPG, PNG, GIF) by dragging & dropping, #{link_to "selecting them", '#', class: 'markdown-selector' } or pasting from the clipboard. .pull-right Attach images (JPG, PNG, GIF) by dragging & dropping, #{link_to "selecting them", '#', class: 'markdown-selector' } or pasting from the clipboard.
.clearfix .clearfix
.error-alert .error-alert
.form-group .form-group
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
.col-sm-10 .col-sm-10
= f.text_area :description, maxlength: 2000, class: "form-control markdown-area", rows: 10 = f.text_area :description, maxlength: 2000, class: "form-control markdown-area", rows: 10
.hint .hint
.pull-left Milestones are parsed with #{link_to "GitLab Flavored Markdown", help_markdown_path, target: '_blank'}. .pull-left Milestones are parsed with #{link_to "GitLab Flavored Markdown", help_page_path("markdown", "markdown"), target: '_blank'}.
.pull-left Attach images (JPG, PNG, GIF) by dragging & dropping, #{link_to "selecting them", '#', class: 'markdown-selector' } or pasting from the clipboard. .pull-left Attach images (JPG, PNG, GIF) by dragging & dropping, #{link_to "selecting them", '#', class: 'markdown-selector' } or pasting from the clipboard.
.clearfix .clearfix
.error-alert .error-alert
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
= f.text_area :note, size: 255, class: 'note_text js-note-text js-gfm-input markdown-area' = f.text_area :note, size: 255, class: 'note_text js-note-text js-gfm-input markdown-area'
.light.clearfix.hint .light.clearfix.hint
.pull-left Comments are parsed with #{link_to "GitLab Flavored Markdown", help_markdown_path, target: '_blank'}. .pull-left Comments are parsed with #{link_to "GitLab Flavored Markdown", help_page_path("markdown", "markdown"), target: '_blank'}
.pull-right Attach images (JPG, PNG, GIF) by dragging & dropping, #{link_to "selecting them", '#', class: 'markdown-selector' } or pasting from the clipboard. .pull-right Attach images (JPG, PNG, GIF) by dragging & dropping, #{link_to "selecting them", '#', class: 'markdown-selector' } or pasting from the clipboard.
.error-alert .error-alert
.note-preview-holder.hide .note-preview-holder.hide
......
...@@ -5,10 +5,10 @@ ...@@ -5,10 +5,10 @@
.bs-callout.bs-callout-info .bs-callout.bs-callout-info
%p Protected branches designed to %p Protected branches designed to
%ul %ul
%li prevent push for all except #{link_to "masters", help_permissions_path, class: "vlink"}. %li prevent push for all except #{link_to "masters", help_page_path("permissions", "permissions"), class: "vlink"}.
%li prevent branch from force push %li prevent branch from force push
%li prevent branch from removal %li prevent branch from removal
%p Read more about project permissions #{link_to "here", help_permissions_path, class: "underlined-link"} %p Read more about project permissions #{link_to "here", help_page_path("permissions", "permissions"), class: "underlined-link"}
- if can? current_user, :admin_project, @project - if can? current_user, :admin_project, @project
= form_for [@project, @protected_branch], html: { class: 'form-horizontal' } do |f| = form_for [@project, @protected_branch], html: { class: 'form-horizontal' } do |f|
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
%p.light %p.light
Read more about project permissions Read more about project permissions
%strong= link_to "here", help_permissions_path, class: "vlink" %strong= link_to "here", help_page_path("permissions", "permissions"), class: "vlink"
= render "team", members: @users_projects = render "team", members: @users_projects
- if @group - if @group
= render "group_members" = render "group_members"
...@@ -24,9 +24,8 @@ ...@@ -24,9 +24,8 @@
.col-sm-10 .col-sm-10
= f.text_area :content, class: 'form-control js-gfm-input markdown-area', rows: 18 = f.text_area :content, class: 'form-control js-gfm-input markdown-area', rows: 18
.col-sm-12.hint .col-sm-12.hint
.pull-left Wiki content is parsed with #{link_to "GitLab Flavored Markdown", help_markdown_path, target: '_blank'}. .pull-left Wiki content is parsed with #{link_to "GitLab Flavored Markdown", help_page_path("markdown", "markdown"), target: '_blank'}
.pull-right Attach images (JPG, PNG, GIF) by dragging & dropping, #{link_to "selecting them", '#', class: 'markdown-selector' } or pasting from the clipboard. .pull-right Attach images (JPG, PNG, GIF) by dragging & dropping, #{link_to "selecting them", '#', class: 'markdown-selector' } or pasting from the clipboard.
.clearfix .clearfix
.error-alert .error-alert
.form-group .form-group
......
...@@ -8,7 +8,7 @@ class Spinach::Features::Help < Spinach::FeatureSteps ...@@ -8,7 +8,7 @@ class Spinach::Features::Help < Spinach::FeatureSteps
end end
step 'I visit the "Rake Tasks" help page' do step 'I visit the "Rake Tasks" help page' do
visit help_raketasks_path visit help_page_path("raketasks", "README")
end end
step 'I should see "Rake Tasks" page markdown rendered' do step 'I should see "Rake Tasks" page markdown rendered' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment