summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClement Ho <ClemMakesApps@gmail.com>2018-01-26 16:55:34 -0600
committerClement Ho <ClemMakesApps@gmail.com>2018-01-26 16:55:34 -0600
commit346e383b0470bbb135a598b203bde3d1b39d0aee (patch)
tree3b1d6bffeedf94b92d7f5ed2b71e8fda67e558f5
parent2fff99c9c4c6ccae7a6fa2a34b76871bb578862b (diff)
parent98dd492766e3455d75fcab47a6abfa100d5c859c (diff)
downloadgitlab-ce-axios-post-edit-blob.tar.gz
Merge branch 'master' into axios-post-edit-blobaxios-post-edit-blob
-rw-r--r--app/views/help/index.html.haml17
-rw-r--r--changelogs/unreleased/cs-fix-commercial-content-check.yml6
-rw-r--r--spec/requests/api/issues_spec.rb4
3 files changed, 17 insertions, 10 deletions
diff --git a/app/views/help/index.html.haml b/app/views/help/index.html.haml
index b8692009225..fdd72ead2cb 100644
--- a/app/views/help/index.html.haml
+++ b/app/views/help/index.html.haml
@@ -5,15 +5,16 @@
= markdown_field(current_application_settings, :help_page_text)
%hr
-- unless current_application_settings.help_page_hide_commercial_content?
- %h1
- GitLab
- Community Edition
- - if user_signed_in?
- %span= Gitlab::VERSION
- %small= link_to Gitlab::REVISION, Gitlab::COM_URL + namespace_project_commits_path('gitlab-org', 'gitlab-ce', Gitlab::REVISION)
- = version_status_badge
+%h1
+ GitLab
+ Community Edition
+ - if user_signed_in?
+ %span= Gitlab::VERSION
+ %small= link_to Gitlab::REVISION, Gitlab::COM_URL + namespace_project_commits_path('gitlab-org', 'gitlab-ce', Gitlab::REVISION)
+ = version_status_badge
+ %hr
+- unless current_application_settings.help_page_hide_commercial_content?
%p.slead
GitLab is open source software to collaborate on code.
%br
diff --git a/changelogs/unreleased/cs-fix-commercial-content-check.yml b/changelogs/unreleased/cs-fix-commercial-content-check.yml
new file mode 100644
index 00000000000..fec80e3ecd2
--- /dev/null
+++ b/changelogs/unreleased/cs-fix-commercial-content-check.yml
@@ -0,0 +1,6 @@
+---
+title: Fix version information not showing on help page if commercial content display
+ was disabled.
+merge_request: 16743
+author:
+type: fixed
diff --git a/spec/requests/api/issues_spec.rb b/spec/requests/api/issues_spec.rb
index 43218755f4f..13db40d21a5 100644
--- a/spec/requests/api/issues_spec.rb
+++ b/spec/requests/api/issues_spec.rb
@@ -1441,7 +1441,7 @@ describe API::Issues, :mailer do
context 'when source project does not exist' do
it 'returns 404 when trying to move an issue' do
- post api("/projects/123/issues/#{issue.iid}/move", user),
+ post api("/projects/12345/issues/#{issue.iid}/move", user),
to_project_id: target_project.id
expect(response).to have_gitlab_http_status(404)
@@ -1452,7 +1452,7 @@ describe API::Issues, :mailer do
context 'when target project does not exist' do
it 'returns 404 when trying to move an issue' do
post api("/projects/#{project.id}/issues/#{issue.iid}/move", user),
- to_project_id: 123
+ to_project_id: 12345
expect(response).to have_gitlab_http_status(404)
end