From d8b11c25512a70823ae2e231fc87e0b247765dc9 Mon Sep 17 00:00:00 2001 From: Zsolt Kovari Date: Mon, 22 Jul 2019 12:50:46 +0000 Subject: [PATCH] Display project id on project admin page --- app/views/admin/projects/show.html.haml | 5 +++++ .../60949-display-projectid-on-project-admin-page.yml | 5 +++++ spec/features/admin/admin_projects_spec.rb | 1 + 3 files changed, 11 insertions(+) create mode 100644 changelogs/unreleased/60949-display-projectid-on-project-admin-page.yml diff --git a/app/views/admin/projects/show.html.haml b/app/views/admin/projects/show.html.haml index 0fae8060b32..3eff0a221d7 100644 --- a/app/views/admin/projects/show.html.haml +++ b/app/views/admin/projects/show.html.haml @@ -54,6 +54,11 @@ %strong = @project.created_at.to_s(:medium) + %li + %span.light ID: + %strong + = @project.id + %li %span.light http: %strong diff --git a/changelogs/unreleased/60949-display-projectid-on-project-admin-page.yml b/changelogs/unreleased/60949-display-projectid-on-project-admin-page.yml new file mode 100644 index 00000000000..3ff83ede2fa --- /dev/null +++ b/changelogs/unreleased/60949-display-projectid-on-project-admin-page.yml @@ -0,0 +1,5 @@ +--- +title: Display project id on project admin page +merge_request: 29734 +author: Zsolt Kovari +type: added diff --git a/spec/features/admin/admin_projects_spec.rb b/spec/features/admin/admin_projects_spec.rb index 2b6bfa40beb..1c1ca41f633 100644 --- a/spec/features/admin/admin_projects_spec.rb +++ b/spec/features/admin/admin_projects_spec.rb @@ -60,6 +60,7 @@ describe "Admin::Projects" do expect(page).to have_content(project.name) expect(page).to have_content(project.full_name) expect(page).to have_content(project.creator.name) + expect(page).to have_content(project.id) end end