summaryrefslogtreecommitdiff
path: root/chef-server/lib/views/cookbooks/show.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'chef-server/lib/views/cookbooks/show.html.haml')
-rw-r--r--chef-server/lib/views/cookbooks/show.html.haml24
1 files changed, 24 insertions, 0 deletions
diff --git a/chef-server/lib/views/cookbooks/show.html.haml b/chef-server/lib/views/cookbooks/show.html.haml
new file mode 100644
index 0000000000..1b6557e012
--- /dev/null
+++ b/chef-server/lib/views/cookbooks/show.html.haml
@@ -0,0 +1,24 @@
+%h1= "Cookbook #{h @cookbook.name}"
+.cookbook
+- if @cookbook.attribute_files.length > 0
+ %h2 Attribute Files
+ - @cookbook.attribute_files.each do |af|
+ = partial(:attribute_file, :name => File.basename(af), :contents => File.read(af))
+
+- if @cookbook.definition_files.length > 0
+ - @cookbook.definition_files.each do |df|
+ %h2 Definition Files
+ %h3= File.basename(df)
+ = ::Uv.parse(File.read(df), "xhtml", "ruby", true, "twilight")
+
+- if @cookbook.recipe_files.length > 0
+ - @cookbook.recipe_files.each do |rf|
+ %h2 Recipe Files
+ %h3= File.basename(rf)
+ = ::Uv.parse(File.read(rf), "xhtml", "ruby", true, "twilight")
+
+- if @cookbook.template_files.length > 0
+ - @cookbook.template_files.each do |tf|
+ %h2 Template Files
+ %h3= File.basename(tf)
+ = ::Uv.parse(File.read(tf), "xhtml", "html_rails", true, "twilight")