summaryrefslogtreecommitdiffstats
path: root/app/views/projects
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects')
-rw-r--r--app/views/projects/index.api.rsb1
-rw-r--r--app/views/projects/show.api.rsb1
2 files changed, 2 insertions, 0 deletions
diff --git a/app/views/projects/index.api.rsb b/app/views/projects/index.api.rsb
index 1aa5fe796..a07db1b71 100644
--- a/app/views/projects/index.api.rsb
+++ b/app/views/projects/index.api.rsb
@@ -7,6 +7,7 @@ api.array :projects, api_meta(:total_count => @project_count, :offset => @offset
api.description project.description
api.parent(:id => project.parent.id, :name => project.parent.name) if project.parent && project.parent.visible?
api.status project.status
+ api.is_public project.is_public?
render_api_custom_values project.visible_custom_field_values, api
diff --git a/app/views/projects/show.api.rsb b/app/views/projects/show.api.rsb
index e84ebb073..7a1e07c02 100644
--- a/app/views/projects/show.api.rsb
+++ b/app/views/projects/show.api.rsb
@@ -6,6 +6,7 @@ api.project do
api.homepage @project.homepage
api.parent(:id => @project.parent.id, :name => @project.parent.name) if @project.parent && @project.parent.visible?
api.status @project.status
+ api.is_public @project.is_public?
render_api_custom_values @project.visible_custom_field_values, api