Actions
Feature #1819
openLink host classes to class browser
Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Description
It would be great to have a linking between classes, apearing in host details (all puppet classes) to the puppetdoc docu in class browser.
Regards
Dimitri
Updated by Dmitry Nilsen over 12 years ago
so, i changed /opt/foreman/app/views/hosts/storeconfig_klasses.html.erb\
it adds a [docu] link after the class.
here are changes.
its quick and dirty, but works.
<% title "All Puppet Classes for #{@host}" %> <table class="table table-bordered table-striped"> <tr> <th class="">Class</th> </tr> <% @host.classes_from_storeconfigs.each do |klass| %> <tr> <td><%= h klass %> [<a href="/puppet/rdoc/<%= @host.environment %>/classes/<%= klass.gsub('::', '/').downcase %>.html">docu</a>]</td> </tr> <% end %> </table> <%= link_to 'back', host_path(@host) %>
Actions