Commit Graph

14 Commits

Author SHA1 Message Date
uu59
368d344291 #162 in_tail multiline preview 2015-04-20 14:22:21 +09:00
uu59
fd3302f42d Fix and refactor file preview 2014-11-27 17:35:20 +09:00
Kouhei Sutou
8e8c95fce3 in_tail: Fix error on setting page for binary file
How to reproduce:

  * Create a binary file by the following command:

        "ruby -e 'puts "\u3042"' > /tmp/xxx"

  * Open /daemon/setting/in_tail
  * Select "/tmp/xxx"
  * Error page is rendered
  * log/production.log says:

        ActionView::Template::Error (undefined method `join' for nil:NilClass):
            12:     = f.text_field :path, class: "form-control", disabled: true
            13:   = render partial: "shared/vue/in_tail_format", locals: { file: f.object.path, formats: @setting.known_formats, initialSelected: f.object.format || @setting.guess_format }
            14:
            15:   %pre= file_tail(@setting.path).join("\n")
            16:
            17:   %p
            18:     = f.submit t('terms.next'), class: "btn btn-lg btn-primary pull-right"
          app/views/fluentd/settings/in_tail/after_file_choose.html.haml:15:in `block in _app_views_fluentd_settings_in_tail_after_file_choose_html_haml___1713159989942914940_40548520'
2014-08-06 17:34:23 +09:00
uu59
a923ade63e Auto fill-in time_format after selected format 2014-07-09 14:01:27 +09:00
uu59
2aa6b05f4b Some controller methods to lib/ 2014-07-08 13:26:51 +09:00
uu59
bfe5c8b721 make up in_tail file chooser 2014-06-27 17:06:59 +09:00
uu59
d22409a366 Can omit load_patterns arguments 2014-06-26 13:25:51 +09:00
uu59
4edc401e15 Fix various bug on regexp preview highlight 2014-06-26 13:18:02 +09:00
uu59
bf455797b1 Add grok preview 2014-06-25 15:10:15 +09:00
uu59
ee944a45c4 regexp format preview 2014-06-25 13:31:45 +09:00
uu59
68e25f78a8 tmp 2014-06-24 17:15:57 +09:00
uu59
8a67f00a17 Add roughly format and format options for in_tail setup pages 2014-06-17 15:08:58 +09:00
uu59
6a5ffc49bc Add primitive file chooser 2014-06-13 15:45:12 +09:00
uu59
5382bb6c0d Add treeview component (not used in anywhre yet) 2014-06-13 13:40:33 +09:00