/usr/share/chef-server-webui/app/views/cookbooks/index.html.haml is in chef-server-webui 10.12.0+dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | .block#block-tables
.content
%h2.title
Cookbooks
.inner
%table.table#cookbook_version_table
%thead
%tr
%th Cookbook
%th Latest Version
%th Other Versions
%tbody.cookbook_versions
- @cl.keys.sort.each do |cookbook|
- versions = @cl[cookbook]
%tr
%td= cookbook
%td
%ul.cookbook_versions{ :id => "#{cookbook}_versions" }
- versions[0..4].each_with_index do |v, i|
- klass = i > 0 ? "other_version" : "latest_version"
%li{ :class => klass }
= link_to(v["version"], v["url"])
- if versions.length > 5
= all_versions_link(cookbook)
%td.show_more
= versions.length > 1 ? more_versions_link(cookbook) : ""
= js_include_tag "cookbook_versions"
|