Feature #1819

Link host classes to class browser

Added by Dmitry Nilsen 10 months ago. Updated 8 months ago.

Status:New Start:08/11/2012
Priority:Normal Due date:
Assigned to:Amos Benari % 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 %>&nbsp;[<a href="/puppet/rdoc/<%= @host.environment %>/classes/<%= klass.gsub('::', '/').downcase %>.html">docu</a>]</td>
      </tr>
    <% end %>
  </table>
<%= link_to 'back', host_path(@host) %>

Updated by Ohad Levy 8 months ago

  • Assigned to set to Amos Benari

Also available in: Atom PDF