Improvements for supporting UI Location (#3146)

* improvements for supporting UI Location

* improved the comment
This commit is contained in:
Lunny Xiao 2017-12-14 07:45:31 +08:00 committed by GitHub
parent b6d2243ac0
commit f94c1b3943
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 28 additions and 25 deletions

View file

@ -164,7 +164,7 @@ func ToDeployKey(apiLink string, key *models.DeployKey) *api.DeployKey {
Key: key.Content,
URL: apiLink + com.ToStr(key.ID),
Title: key.Name,
Created: key.Created,
Created: key.CreatedUnix.AsTime(),
ReadOnly: true, // All deploy keys are read-only.
}
}