Use card to display box lines

Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
This commit is contained in:
Kenji Okimoto 2018-05-17 18:06:54 +09:00
parent 03df006a70
commit f2dce79459
No known key found for this signature in database
GPG Key ID: F9E3E329A5C5E4A1
2 changed files with 7 additions and 4 deletions

View File

@ -12,8 +12,9 @@
= f.text_field :path, class: "form-control", disabled: true
= render partial: "shared/vue/in_tail_format", locals: { file: f.object.path, formats: @setting.known_formats, initialSelected: f.object.format || @setting.guess_format }
%pre= file_tail(@setting.path, Settings.in_tail_preview_line_count).join("\n")
.card
%pre.card-body= file_tail(@setting.path, Settings.in_tail_preview_line_count).join("\n")
%p
= f.submit t('terms.next'), class: "btn btn-lg btn-primary pull-right"
= link_to t('terms.prev'), daemon_setting_in_tail_path(@fluentd), class: "btn btn-lg btn-default"
= link_to t('terms.prev'), daemon_setting_in_tail_path(@fluentd), class: "btn btn-lg btn-secondary"

View File

@ -43,7 +43,9 @@
<pre>{{ highlightedLines }}</pre>
<div class="well well-sm">
<%= raw t('fluentd.settings.in_tail_option_guide') %>
<div class="card mb-3">
<p class="card-body pb-0">
<%= raw t('fluentd.settings.in_tail_option_guide') %>
</p>
</div>
</div>