Commit 861182f04a43197d3a28483a901466d163d63f18
Exists in
staging
and in
14 other branches
Merge branch 'layout_template_on_api' into 'master'
Display layout_template on api - Environments and profiles now return the layout template used. @marcosronaldo can you take a look at this? We'll use it on angular theme. See merge request !968
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
app/api/entities.rb
... | ... | @@ -124,6 +124,7 @@ module Api |
124 | 124 | expose :type |
125 | 125 | expose :custom_header |
126 | 126 | expose :custom_footer |
127 | + expose :layout_template | |
127 | 128 | expose :permissions do |profile, options| |
128 | 129 | Entities.permissions_for_entity(profile, options[:current_person], |
129 | 130 | :allow_post_content?, :allow_edit?, :allow_destroy?) |
... | ... | @@ -264,6 +265,7 @@ module Api |
264 | 265 | expose :name |
265 | 266 | expose :id |
266 | 267 | expose :description |
268 | + expose :layout_template | |
267 | 269 | expose :settings, if: lambda { |instance, options| options[:is_admin] } |
268 | 270 | end |
269 | 271 | ... | ... |