fluentd-ui/app/views/tutorials/chapter1.html.erb
Kenji Okimoto 009c3527bb Use bootstrap4 class instead of font-awesome class
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-05-21 15:03:23 +09:00

31 lines
827 B
Plaintext

<% # NOTE: Using .erb is for styling <pre> %>
<% page_title t(".page_title") %>
<p class="clearfix">
<%= link_to t('tutorials.chapter2.page_title') << " >>", tutorials_chapter2_path, class: "float-right" %>
</p>
<p>
<%= t ".description" %>
</p>
<!-- vue.js -->
<div id="chapter1">
<form>
<p v-repeat="payloads">
<input type="button" class="btn btn-primary" v-on="click: sendRequest($data)" value="<%= t ".send" %>" />
<code>
$ curl -X POST http://localhost:<%= @in_http["port"] %>{{ path }} -F 'json={{ data | to_json }}'
</code>
</p>
</form>
</div>
<!-- /vue.js -->
<%= render partial: "shared/vue/fluent_log", locals: { fluentd: @fluentd } %>
<p class="clearfix">
<%= link_to t('tutorials.chapter2.page_title') << " >>", tutorials_chapter2_path, class: "float-right" %>
</p>