Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
gitlab-ce
Commits
f9dc3a2f
Commit
f9dc3a2f
authored
Sep 16, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add links from GitLab to CI
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
421d0553
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
0 deletions
+10
-0
app/models/project.rb
app/models/project.rb
+1
-0
app/views/layouts/nav/_dashboard.html.haml
app/views/layouts/nav/_dashboard.html.haml
+5
-0
app/views/projects/_home_panel.html.haml
app/views/projects/_home_panel.html.haml
+4
-0
No files found.
app/models/project.rb
View file @
f9dc3a2f
...
@@ -119,6 +119,7 @@ class Project < ActiveRecord::Base
...
@@ -119,6 +119,7 @@ class Project < ActiveRecord::Base
has_many
:starrers
,
through: :users_star_projects
,
source: :user
has_many
:starrers
,
through: :users_star_projects
,
source: :user
has_one
:import_data
,
dependent: :destroy
,
class_name:
"ProjectImportData"
has_one
:import_data
,
dependent: :destroy
,
class_name:
"ProjectImportData"
has_one
:gitlab_ci_project
,
dependent: :destroy
,
class_name:
"Ci::Project"
,
foreign_key: :gitlab_id
delegate
:name
,
to: :owner
,
allow_nil:
true
,
prefix:
true
delegate
:name
,
to: :owner
,
allow_nil:
true
,
prefix:
true
delegate
:members
,
to: :team
,
prefix:
true
delegate
:members
,
to: :team
,
prefix:
true
...
...
app/views/layouts/nav/_dashboard.html.haml
View file @
f9dc3a2f
...
@@ -46,3 +46,8 @@
...
@@ -46,3 +46,8 @@
=
icon
(
'user fw'
)
=
icon
(
'user fw'
)
%span
%span
Profile Settings
Profile Settings
=
nav_link
(
controller: :ci
)
do
=
link_to
ci_root_path
,
title:
'Continuous Integration'
,
data:
{
placement:
'right'
}
do
=
icon
(
'building fw'
)
%span
CI
app/views/projects/_home_panel.html.haml
View file @
f9dc3a2f
...
@@ -28,4 +28,8 @@
...
@@ -28,4 +28,8 @@
=
render
'projects/buttons/dropdown'
=
render
'projects/buttons/dropdown'
-
if
@project
.
gitlab_ci?
=
link_to
ci_project_path
(
@project
.
gitlab_ci_project
),
class:
'btn btn-default'
do
CI
=
render
"shared/clone_panel"
=
render
"shared/clone_panel"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment