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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
843e5642
Commit
843e5642
authored
Oct 21, 2016
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds commit links
parent
dc46dc1d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app/controllers/projects/environments_controller.rb
app/controllers/projects/environments_controller.rb
+2
-1
app/views/projects/environments/components/_commit.html.haml
app/views/projects/environments/components/_commit.html.haml
+1
-2
No files found.
app/controllers/projects/environments_controller.rb
View file @
843e5642
...
@@ -78,7 +78,8 @@ class Projects::EnvironmentsController < Projects::ApplicationController
...
@@ -78,7 +78,8 @@ class Projects::EnvironmentsController < Projects::ApplicationController
user:
{
only:
[
:id
,
:name
,
:username
],
methods:
[
:avatar_url
]
}
user:
{
only:
[
:id
,
:name
,
:username
],
methods:
[
:avatar_url
]
}
},
},
methods:
[
:short_sha
,
:commit_title
,
:deployable
,
:commit
]
methods:
[
:short_sha
,
:commit_title
,
:deployable
,
:commit
]
}
},
project:
{
methods:
[
:namespace
]}
}
}
)
)
end
end
...
...
app/views/projects/environments/components/_commit.html.haml
View file @
843e5642
...
@@ -8,8 +8,7 @@
...
@@ -8,8 +8,7 @@
.icon-container
{
"v-if"
=>
"!model.last_deployment.tag"
}
.icon-container
{
"v-if"
=>
"!model.last_deployment.tag"
}
=
icon
(
"code-fork"
)
=
icon
(
"code-fork"
)
%a
.monospace.branch-name
{
":href"
=>
""
}
%a
.monospace.branch-name
{
":href"
=>
"'/' + model.project.namespace.name + '/' + model.project.name + '/commits/' +model.last_deployment.ref"
}
-# need commits branch name url
{{model.last_deployment.ref}}
{{model.last_deployment.ref}}
.icon-container.commit-icon
.icon-container.commit-icon
...
...
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