Sha256: 6195370272a4d5e68e42c140393aafe5ca0bc5d7cb067730908625af97ed4355

Contents?: true

Size: 975 Bytes

Versions: 9

Compression:

Stored size: 975 Bytes

Contents

<%- add_javascript_pack_tag("fluent_log") %>
<!-- vue.js -->
<% auto_reload ||= true %>
<div id="fluent-log" logUrl="<%= log_tail_daemon_agent_path(fluentd) %>" initialAutoReload="<%= auto_reload ? "true" : "" %>">
  <div class="bottom-margin form-inline">
    <button class="btn btn-primary mr-3" v-on:click="fetchLogs">
      <%= t "terms.reload_log" %>
    </button>
    <input type="text" v-model="limit" size="4" v-on:keyup.enter="fetchLogs" class="form-control"/>
    <%= t('terms.lines') %>
    <label class="ml-3">
      <input type="checkbox" v-model="autoFetch" /> <%= t "terms.auto_reload", seconds: 1 %>
    </label>
    <span v-if="processing"><%= icon('fa-spin fa-refresh') %></span>
  </div>

<pre v-if="isPresentedLogs" class="card bg-light"><!-- be careful indent -->
<div class="log card-body"><span v-for="log in logs">{{ log }}
</span></div></pre>

  <div v-if="!isPresentedLogs && !processing">
    <p>[log is empty]</p>
  </div>
</div>
<!-- /vue.js -->

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
fluentd-ui-1.2.1 app/views/shared/vue/_fluent_log.html.erb
fluentd-ui-1.2.0 app/views/shared/vue/_fluent_log.html.erb
fluentd-ui-1.1.0 app/views/shared/vue/_fluent_log.html.erb
fluentd-ui-1.0.1 app/views/shared/vue/_fluent_log.html.erb
fluentd-ui-1.0.0 app/views/shared/vue/_fluent_log.html.erb
fluentd-ui-1.0.0.beta.1 app/views/shared/vue/_fluent_log.html.erb
fluentd-ui-1.0.0.alpha.3 app/views/shared/vue/_fluent_log.html.erb
fluentd-ui-1.0.0.alpha.2 app/views/shared/vue/_fluent_log.html.erb
fluentd-ui-1.0.0.alpha.1 app/views/shared/vue/_fluent_log.html.erb