Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
f3f1da5dc0d7
Unverified
Commit
f9dc3a2f
authored
Sep 16, 2015
by
Dmitriy Zaporozhets
Browse files
Add links from GitLab to CI
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
87d65b3c2feb
Changes
3
Show whitespace changes
Inline
Side-by-side
app/models/project.rb
View file @
f3f1da5d
...
@@ -119,6 +119,7 @@ def set_last_activity_at
...
@@ -119,6 +119,7 @@ def set_last_activity_at
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 @
f3f1da5d
...
@@ -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 @
f3f1da5d
...
@@ -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