Feature #1819
open
Link host classes to class browser
Added by Dmitry Nilsen almost 13 years ago.
Updated over 10 years ago.
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
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) %>
- Assignee set to Amos Benari
- Assignee deleted (
Amos Benari)
Also available in: Atom
PDF