summaryrefslogtreecommitdiff
path: root/lib/chef_server/views/cookbooks/show.html.haml
blob: 1b6557e01261b15e58217888e6cb95612f7fb818 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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")