mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-06 13:35:50 +01:00
fix typo
This commit is contained in:
@@ -685,7 +685,7 @@ trait RepositoryViewerControllerBase extends ControllerBase {
|
|||||||
getPathObjectId(git, path, revCommit).map {
|
getPathObjectId(git, path, revCommit).map {
|
||||||
objectId =>
|
objectId =>
|
||||||
if (raw) {
|
if (raw) {
|
||||||
// Download (This route is left for backword compatibility)
|
// Download (This route is left for backward compatibility)
|
||||||
responseRawFile(git, objectId, path, repository)
|
responseRawFile(git, objectId, path, repository)
|
||||||
} else {
|
} else {
|
||||||
val info = EditorConfigUtil.getEditorConfigInfo(git, id, path)
|
val info = EditorConfigUtil.getEditorConfigInfo(git, id, path)
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ trait ApiReleaseControllerBase extends ControllerBase {
|
|||||||
/**
|
/**
|
||||||
* vi. Edit a release
|
* vi. Edit a release
|
||||||
* https://developer.github.com/v3/repos/releases/#edit-a-release
|
* https://developer.github.com/v3/repos/releases/#edit-a-release
|
||||||
* Incompatiblity info: GitHub API requires :release_id, but GitBucket API requires :tag_name
|
* Incompatibility info: GitHub API requires :release_id, but GitBucket API requires :tag_name
|
||||||
*/
|
*/
|
||||||
patch("/api/v3/repos/:owner/:repository/releases/:tag")(writableUsersOnly { repository =>
|
patch("/api/v3/repos/:owner/:repository/releases/:tag")(writableUsersOnly { repository =>
|
||||||
(for {
|
(for {
|
||||||
@@ -103,7 +103,7 @@ trait ApiReleaseControllerBase extends ControllerBase {
|
|||||||
/**
|
/**
|
||||||
* vii. Delete a release
|
* vii. Delete a release
|
||||||
* https://developer.github.com/v3/repos/releases/#delete-a-release
|
* https://developer.github.com/v3/repos/releases/#delete-a-release
|
||||||
* Incompatiblity info: GitHub API requires :release_id, but GitBucket API requires :tag_name
|
* Incompatibility info: GitHub API requires :release_id, but GitBucket API requires :tag_name
|
||||||
*/
|
*/
|
||||||
delete("/api/v3/repos/:owner/:repository/releases/:tag")(writableUsersOnly { repository =>
|
delete("/api/v3/repos/:owner/:repository/releases/:tag")(writableUsersOnly { repository =>
|
||||||
val tag = params("tag")
|
val tag = params("tag")
|
||||||
|
|||||||
@@ -1,18 +1,18 @@
|
|||||||
@(account: gitbucket.core.model.Account,
|
@(account: gitbucket.core.model.Account,
|
||||||
personalTokens: List[gitbucket.core.model.AccessToken],
|
personalTokens: List[gitbucket.core.model.AccessToken],
|
||||||
gneratedToken: Option[(gitbucket.core.model.AccessToken, String)])(implicit context: gitbucket.core.controller.Context)
|
generatedToken: Option[(gitbucket.core.model.AccessToken, String)])(implicit context: gitbucket.core.controller.Context)
|
||||||
@gitbucket.core.html.main("Applications"){
|
@gitbucket.core.html.main("Applications"){
|
||||||
@gitbucket.core.account.html.menu("application", context.loginAccount.get.userName, false){
|
@gitbucket.core.account.html.menu("application", context.loginAccount.get.userName, false){
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading strong">Personal access tokens</div>
|
<div class="panel-heading strong">Personal access tokens</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
@if(personalTokens.isEmpty && gneratedToken.isEmpty){
|
@if(personalTokens.isEmpty && generatedToken.isEmpty){
|
||||||
No tokens.
|
No tokens.
|
||||||
} else {
|
} else {
|
||||||
Tokens you have generated which can be used to access the GitBucket API.
|
Tokens you have generated which can be used to access the GitBucket API.
|
||||||
<hr style="margin-top: 10px;">
|
<hr style="margin-top: 10px;">
|
||||||
}
|
}
|
||||||
@gneratedToken.map { case (token, tokenString) =>
|
@generatedToken.map { case (token, tokenString) =>
|
||||||
<div class="alert alert-info">
|
<div class="alert alert-info">
|
||||||
Make sure to copy your new personal access token now. You won't be able to see it again!
|
Make sure to copy your new personal access token now. You won't be able to see it again!
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user