#345: Fixed JS
This commit is contained in:
parent
f04c1105d3
commit
7df3fd13d6
|
@ -13,7 +13,8 @@ RosaABF.factory('ApiCollaborator', ['$resource', function($resource) {
|
||||||
isArray : false
|
isArray : false
|
||||||
},
|
},
|
||||||
find: {
|
find: {
|
||||||
url: '/:owner/:project/collaborators/find.json',
|
url: '/:owner/:project/collaborators/find',
|
||||||
|
format: 'json',
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
isArray : true
|
isArray : true
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,27 +5,32 @@ RosaABF.factory("ApiProject", ['$resource', function($resource) {
|
||||||
{owner: '@project.owner.uname', project: '@project.name'},
|
{owner: '@project.owner.uname', project: '@project.name'},
|
||||||
{
|
{
|
||||||
tags: {
|
tags: {
|
||||||
url: '/:owner/:project/tags.json',
|
url: '/:owner/:project/tags',
|
||||||
|
format: 'json',
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
isArray : false
|
isArray : false
|
||||||
},
|
},
|
||||||
branches: {
|
branches: {
|
||||||
url: '/:owner/:project/branches.json',
|
url: '/:owner/:project/branches',
|
||||||
|
format: 'json',
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
isArray : false
|
isArray : false
|
||||||
},
|
},
|
||||||
delete_branch: {
|
delete_branch: {
|
||||||
url: '/:owner/:project/branches/:ref.json',
|
url: '/:owner/:project/branches/:ref',
|
||||||
|
format: 'json',
|
||||||
method: 'DELETE',
|
method: 'DELETE',
|
||||||
isArray : false
|
isArray : false
|
||||||
},
|
},
|
||||||
restore_branch: {
|
restore_branch: {
|
||||||
url: '/:owner/:project/branches/:ref.json', // ?sha=<sha>
|
url: '/:owner/:project/branches/:ref', // ?sha=<sha>
|
||||||
|
format: 'json',
|
||||||
method: 'PUT',
|
method: 'PUT',
|
||||||
isArray : false
|
isArray : false
|
||||||
},
|
},
|
||||||
create_branch: {
|
create_branch: {
|
||||||
url: '/:owner/:project/branches.json', // ?new_ref=<new_ref>&from_ref=<from_ref>
|
url: '/:owner/:project/branches', // ?new_ref=<new_ref>&from_ref=<from_ref>
|
||||||
|
format: 'json',
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
isArray : false
|
isArray : false
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
RosaABF.factory("ApiPullRequest", ['$resource', function($resource) {
|
RosaABF.factory("ApiPullRequest", ['$resource', function($resource) {
|
||||||
|
|
||||||
var PullRequestResource = $resource(
|
var PullRequestResource = $resource(
|
||||||
'/:owner/:project/pull_requests/:serial_id.json',
|
'/:owner/:project/pull_requests/:serial_id?format=json',
|
||||||
{
|
{
|
||||||
owner: '@pull_request.to_ref.project.owner_uname',
|
owner: '@pull_request.to_ref.project.owner_uname',
|
||||||
project: '@pull_request.to_ref.project.name',
|
project: '@pull_request.to_ref.project.name',
|
||||||
|
@ -13,7 +13,8 @@ RosaABF.factory("ApiPullRequest", ['$resource', function($resource) {
|
||||||
isArray : false
|
isArray : false
|
||||||
},
|
},
|
||||||
merge: {
|
merge: {
|
||||||
url: '/:owner/:project/pull_requests/:serial_id/merge.json',
|
url: '/:owner/:project/pull_requests/:serial_id/merge',
|
||||||
|
format: 'json',
|
||||||
method: 'PUT',
|
method: 'PUT',
|
||||||
isArray: false
|
isArray: false
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
.hr
|
.hr
|
||||||
|
|
||||||
%h3= t("layout.projects.build_schedule")
|
%h3= t("layout.projects.build_schedule")
|
||||||
%div{ 'ng-controller' => 'ProjectScheduleController', 'ng-init' => "init('#{@project.name_with_owner}')" }
|
%div{ 'ng-controller' => 'ProjectScheduleController', 'ng-init' => "name_with_owner = '#{@project.name_with_owner}'" }
|
||||||
|
|
||||||
.leftlist= t('activerecord.attributes.project.autostart_status')
|
.leftlist= t('activerecord.attributes.project.autostart_status')
|
||||||
.rightlist
|
.rightlist
|
||||||
|
|
Loading…
Reference in New Issue