-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from aleksey-hariton/COD-1958_tags_in_attributes
tags in attributes
- Loading branch information
Showing
7 changed files
with
75 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<%= | ||
if object.type == :cookbook | ||
erb(:cookbook_attribute) | ||
else | ||
erb(:resource_attribute) | ||
end | ||
%> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<% @attributes.each do |attribute| %> | ||
<h3><strong><%= attribute.name %></strong></h3> | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
<p> | ||
<strong>Description</strong><br /> | ||
</p> | ||
<%= htmlify attribute.docstring %> | ||
<%= yieldall :object => attribute, :owner => object %> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
<p> | ||
<strong>JSON and default value</strong> | ||
</p> | ||
<table class="table table-hover"> | ||
<tr> | ||
<th>JSON</th> | ||
<th>Default value</th> | ||
</tr> | ||
<tr> | ||
<td> | ||
<% if object.type == :cookbook %> | ||
<%= htmlify attribute.to_json %> | ||
<% end %> | ||
</td> | ||
<td><%= htmlify attribute.default %></td> | ||
</tr> | ||
</table> | ||
</div> | ||
</div> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters