Sha256: 1f970350f27acc666e18e217d8d326ed31fa58965933f57fa3066294c45bd014

Contents?: true

Size: 1.6 KB

Versions: 6

Compression:

Stored size: 1.6 KB

Contents

<% title _('Detail of %s run') % @template_invocation.job_invocation.job_category %>
<% stylesheet 'template_invocation' %>
<% javascript 'template_invocation' %>

<div id="title_action">
  <div class="btn-toolbar pull-right">
    <%= link_to(_('Back to Job'), job_invocation_path(@template_invocation.job_invocation)) %>
    <%= button_group(link_to_function(_('Toggle command'), '$("div.preview").toggle()'),
                     link_to_function(_('Toggle STDERR'), '$("div.line.stderr").toggle()'),
                     link_to_function(_('Toggle STDOUT'), '$("div.line.stdout").toggle()'),
                     link_to_function(_('Toggle DEBUG'), '$("div.line.debug").toggle()')) %>
    <%= button_group(template_invocation_task_buttons(@template_invocation_task)) %>
  </div>
</div>

<h3><%= _('Target: ') %><%= link_to(@host.name, host_path(@host)) %></h3>

<div class="preview hidden">
  <%= preview_box(@template_invocation, @host) %>
</div>

<div class="terminal" data-refresh-url="<%= template_invocation_path(@template_invocation) %>">
  <% if @error %>
    <div class="line error"><%= @error %></div>
  <% else %>
    <%= link_to_function(_('Scroll to bottom'), '$("html, body").animate({ scrollTop: $(document).height() }, "slow");', :class => 'pull-right scroll-link-bottom') %>

    <div class="printable">
      <%= render :partial => 'output_line_set', :collection => @line_sets %>
    </div>

    <%= link_to_function(_('Scroll to top'), '$("html, body").animate({ scrollTop: 0 }, "slow");', :class => 'pull-right scroll-link-top') %>
  <% end %>
</div>

<script>
  <%= render :partial => 'refresh.js' %>
</script>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
foreman_remote_execution-0.3.2 app/views/template_invocations/show.html.erb
foreman_remote_execution-0.3.1 app/views/template_invocations/show.html.erb
foreman_remote_execution-0.3.0 app/views/template_invocations/show.html.erb
foreman_remote_execution-0.2.3 app/views/template_invocations/show.html.erb
foreman_remote_execution-0.2.2 app/views/template_invocations/show.html.erb
foreman_remote_execution-0.2.1 app/views/template_invocations/show.html.erb