Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTuğçe Nur Taş <tas.tugcenur@gmail.com>2018-07-18 09:58:21 +0300
committerPhil Hughes <me@iamphill.com>2018-07-18 09:58:21 +0300
commit742cf277785eb2c0700ce0abf21bc25aee50a2c3 (patch)
tree6688f8dc61e933852a0abb5d177c5181297e90f5 /app/views/projects/_home_panel.html.haml
parent9bdc9b1ae69a62ad764d8ae59baa43a4a0be1d3a (diff)
Features/show project id on home panel
Diffstat (limited to 'app/views/projects/_home_panel.html.haml')
-rw-r--r--app/views/projects/_home_panel.html.haml3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/projects/_home_panel.html.haml b/app/views/projects/_home_panel.html.haml
index 89940512bc6..74ab8cf8250 100644
--- a/app/views/projects/_home_panel.html.haml
+++ b/app/views/projects/_home_panel.html.haml
@@ -12,6 +12,9 @@
.project-home-desc
- if @project.description.present?
= markdown_field(@project, :description)
+ - if can?(current_user, :read_project, @project)
+ .text-secondary.prepend-top-8
+ = s_('ProjectPage|Project ID: %{project_id}') % { project_id: @project.id }
- if @project.forked?
%p