1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-21 15:54:22 +01:00

adds licence in projects/show

This commit is contained in:
Nicolas Florentin 2015-05-18 10:23:50 +02:00
parent 4686a8c843
commit e0c721cff7
2 changed files with 24 additions and 15 deletions

View File

@ -132,9 +132,15 @@
</ul>
</section>
<section class="widget panel b-a m" ng-if="project.licence">
<div class="panel-heading b-b">
<h3>Licence</h3>
</div>
<div class="panel-body">
{{ project.licence.name }}
</div>
</section>
</div>
</div>

View File

@ -54,3 +54,6 @@ json.project_steps_attributes @project.project_steps.order('project_steps.create
json.project_step_image_url s.project_step_image.attachment_url if s.project_step_image
end
json.state @project.state
json.licence do
json.name @project.licence.name
end if @project.licence.present?