Skip to content

Commit 3df0f85

Browse files
committed
Template in cookbook viewer should use basename and highlight contents raw
1 parent ecf10a6 commit 3df0f85

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

chef-server/lib/views/cookbooks/show.html.haml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
- if @cookbook.template_files.length > 0
2424
%h2 Template Files
2525
- @cookbook.template_files.each do |f|
26-
%h3= f
26+
%h3= File.basename(f)
2727
%div= syntax_highlight(contents)
28-
= partial(:syntax_highlight, :name => File.basename(f), :contents => f)
2928

0 commit comments

Comments
 (0)