Project

General

Profile

Actions

Feature #1819

open

Link host classes to class browser

Added by Dmitry Nilsen almost 12 years ago. Updated over 9 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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

Actions #1

Updated by Dmitry Nilsen over 11 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 %>&nbsp;[<a href="/puppet/rdoc/<%= @host.environment %>/classes/<%= klass.gsub('::', '/').downcase %>.html">docu</a>]</td>
      </tr>
    <% end %>
  </table>
<%= link_to 'back', host_path(@host) %>
Actions #2

Updated by Ohad Levy over 11 years ago

  • Assignee set to Amos Benari
Actions #3

Updated by Ohad Levy over 9 years ago

  • Assignee deleted (Amos Benari)
Actions

Also available in: Atom PDF