Feature #1819
Link host classes to class browser
| Status: | New | Start: | 08/11/2012 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assigned to: | % Done: | 0% |
||
| Category: | - | |||
| Target version: | - | |||
| Backlog: | No | Difficulity: | ||
| Votes: | 0 |
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
History
Updated by Dmitry Nilsen 9 months 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) %>
