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
5cfc2d0c
Commit
5cfc2d0c
authored
Nov 09, 2016
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix eslint
parent
de8a6c87
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
9 deletions
+16
-9
app/assets/javascripts/environments/components/environment_item.js.es6
...vascripts/environments/components/environment_item.js.es6
+16
-9
No files found.
app/assets/javascripts/environments/components/environment_item.js.es6
View file @
5cfc2d0c
/*= require vue_common_component/commit
/* globals Vue */
/*= require timeago
/* globals Vue, timeago */
(() => {
/**
...
...
@@ -153,8 +154,7 @@
userImageAltDescription() {
return `${this.model.last_deployment.user.username}'s avatar'`;
},
/**
* If provided, returns the commit tag.
*
...
...
@@ -164,6 +164,7 @@
if (this.model.last_deployment && this.model.last_deployment.tag) {
return this.model.last_deployment.tag;
}
return undefined;
},
/**
...
...
@@ -173,10 +174,11 @@
*/
commitRef() {
if (this.model.last_deployment && this.model.last_deployment.ref) {
return this.model.last_deployment.ref
return this.model.last_deployment.ref
;
}
return undefined;
},
/**
* If provided, returns the commit url.
*
...
...
@@ -188,6 +190,7 @@
this.model.last_deployment.commit.commit_url) {
return this.model.last_deployment.commit.commit_url;
}
return undefined;
},
/**
...
...
@@ -199,8 +202,9 @@
if (this.model.last_deployment &&
this.model.last_deployment.commit &&
this.model.last_deployment.commit.short_id) {
return this.model.last_deployment.commit.short_id
return this.model.last_deployment.commit.short_id
;
}
return undefined;
},
/**
...
...
@@ -208,12 +212,13 @@
*
* @returns {String|Undefined}
*/
commitTitle(){
commitTitle()
{
if (this.model.last_deployment &&
this.model.last_deployment.commit &&
this.model.last_deployment.commit.title) {
return this.model.last_deployment.commit.title
return this.model.last_deployment.commit.title
;
}
return undefined;
},
/**
...
...
@@ -221,12 +226,14 @@
*
* @returns {Object|Undefined}
*/
commitAuthor(){
commitAuthor()
{
if (this.model.last_deployment &&
this.model.last_deployment.commit &&
this.model.last_deployment.commit.author) {
return this.model.last_deployment.commit.author;
}
return undefined;
},
},
...
...
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