BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
environment_item.js.es6
...vascripts/environments/components/environment_item.js.es6
+14
-7
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 */
(() => {
/**
...
...
@@ -154,7 +155,6 @@
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,8 +174,9 @@
*/
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;
},
/**
...
...
@@ -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