mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-13 09:47:07 +02:00
commit
a8f0c18392
@ -137,3 +137,10 @@ label {
|
|||||||
padding-top: 64px;
|
padding-top: 64px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.fluentd-ui-logo {
|
||||||
|
padding: 0;
|
||||||
|
img {
|
||||||
|
height: 50px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -5,6 +5,7 @@ class ApplicationController < ActionController::Base
|
|||||||
helper_method :current_user
|
helper_method :current_user
|
||||||
helper_method :current_locale
|
helper_method :current_locale
|
||||||
helper_method :installing_gem?, :installing_gems, :uninstalling_gem?, :uninstalling_gems
|
helper_method :installing_gem?, :installing_gems, :uninstalling_gem?, :uninstalling_gems
|
||||||
|
helper_method :fluentd_ui_title, :fluentd_ui_brand
|
||||||
helper_method :file_tail
|
helper_method :file_tail
|
||||||
helper_method :fluentd_exists?
|
helper_method :fluentd_exists?
|
||||||
before_action :login_required
|
before_action :login_required
|
||||||
@ -29,6 +30,14 @@ class ApplicationController < ActionController::Base
|
|||||||
I18n.locale
|
I18n.locale
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def fluentd_ui_title
|
||||||
|
ENV["FLUENTD_UI_TITLE"] || "Fluentd UI"
|
||||||
|
end
|
||||||
|
|
||||||
|
def fluentd_ui_brand
|
||||||
|
ENV["FLUENTD_UI_BRAND"] || "fluentd"
|
||||||
|
end
|
||||||
|
|
||||||
def installing_gem?
|
def installing_gem?
|
||||||
installing_gems.present?
|
installing_gems.present?
|
||||||
end
|
end
|
||||||
@ -53,7 +62,7 @@ class ApplicationController < ActionController::Base
|
|||||||
|
|
||||||
def notice_new_fluentd_ui_available
|
def notice_new_fluentd_ui_available
|
||||||
if FluentdUI.update_available?
|
if FluentdUI.update_available?
|
||||||
flash[:info] = I18n.t("messages.available_new_fluentd_ui", version: FluentdUI.latest_version, update_url: misc_information_path)
|
flash[:info] = I18n.t("messages.available_new_fluentd_ui", version: FluentdUI.latest_version, update_url: misc_information_path, title: fluentd_ui_title)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -3,23 +3,23 @@ class Fluentd::AgentsController < ApplicationController
|
|||||||
|
|
||||||
def start
|
def start
|
||||||
unless @fluentd.agent.start
|
unless @fluentd.agent.start
|
||||||
flash[:error] = t("error.fluentd_start_failed") + @fluentd.agent.log_tail(1).first
|
flash[:error] = t("error.fluentd_start_failed", brand: fluentd_ui_title) + @fluentd.agent.log_tail(1).first
|
||||||
end
|
end
|
||||||
redirect_to fluentd_path(@fluentd), status: 303 # 303 is change HTTP Verb GET
|
redirect_to daemon_path(@fluentd), status: 303 # 303 is change HTTP Verb GET
|
||||||
end
|
end
|
||||||
|
|
||||||
def stop
|
def stop
|
||||||
unless @fluentd.agent.stop
|
unless @fluentd.agent.stop
|
||||||
flash[:error] = t("error.fluentd_stop_failed")
|
flash[:error] = t("error.fluentd_stop_failed", brand: fluentd_ui_title)
|
||||||
end
|
end
|
||||||
redirect_to fluentd_path(@fluentd), status: 303 # 303 is change HTTP Verb GET
|
redirect_to daemon_path(@fluentd), status: 303 # 303 is change HTTP Verb GET
|
||||||
end
|
end
|
||||||
|
|
||||||
def restart
|
def restart
|
||||||
unless @fluentd.agent.restart
|
unless @fluentd.agent.restart
|
||||||
flash[:error] = t("error.fluentd_restart_failed") + @fluentd.agent.log_tail(1).first
|
flash[:error] = t("error.fluentd_restart_failed", brand: fluentd_ui_title) + @fluentd.agent.log_tail(1).first
|
||||||
end
|
end
|
||||||
redirect_to fluentd_path(@fluentd), status: 303 # 303 is change HTTP Verb GET
|
redirect_to daemon_path(@fluentd), status: 303 # 303 is change HTTP Verb GET
|
||||||
end
|
end
|
||||||
|
|
||||||
def log_tail
|
def log_tail
|
||||||
|
@ -22,7 +22,7 @@ class Fluentd::Settings::InSyslogController < ApplicationController
|
|||||||
return render "show"
|
return render "show"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
redirect_to fluentd_setting_path(@fluentd)
|
redirect_to daemon_setting_path(@fluentd)
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
@ -40,7 +40,7 @@ class Fluentd::Settings::InTailController < ApplicationController
|
|||||||
|
|
||||||
@fluentd.agent.config_append @setting.to_conf
|
@fluentd.agent.config_append @setting.to_conf
|
||||||
@fluentd.agent.restart if @fluentd.agent.running?
|
@fluentd.agent.restart if @fluentd.agent.running?
|
||||||
redirect_to fluentd_setting_path(@fluentd)
|
redirect_to daemon_setting_path(@fluentd)
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
@ -25,7 +25,7 @@ class Fluentd::Settings::OutForwardController < ApplicationController
|
|||||||
return render "show"
|
return render "show"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
redirect_to fluentd_setting_path(@fluentd)
|
redirect_to daemon_setting_path(@fluentd)
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
@ -24,7 +24,7 @@ class Fluentd::Settings::OutMongoController < ApplicationController
|
|||||||
return render "show"
|
return render "show"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
redirect_to fluentd_setting_path(@fluentd)
|
redirect_to daemon_setting_path(@fluentd)
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
@ -24,7 +24,7 @@ class Fluentd::Settings::OutS3Controller < ApplicationController
|
|||||||
return render "show"
|
return render "show"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
redirect_to fluentd_setting_path(@fluentd)
|
redirect_to daemon_setting_path(@fluentd)
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
@ -24,7 +24,7 @@ class Fluentd::Settings::OutTdController < ApplicationController
|
|||||||
return render "show"
|
return render "show"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
redirect_to fluentd_setting_path(@fluentd)
|
redirect_to daemon_setting_path(@fluentd)
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
@ -13,7 +13,7 @@ class Fluentd::SettingsController < ApplicationController
|
|||||||
def update
|
def update
|
||||||
@fluentd.agent.config_write params[:config]
|
@fluentd.agent.config_write params[:config]
|
||||||
@fluentd.agent.restart if @fluentd.agent.running?
|
@fluentd.agent.restart if @fluentd.agent.running?
|
||||||
redirect_to fluentd_setting_path(@fluentd)
|
redirect_to daemon_setting_path(@fluentd)
|
||||||
end
|
end
|
||||||
|
|
||||||
def in_tail_after_file_choose
|
def in_tail_after_file_choose
|
||||||
@ -54,7 +54,7 @@ class Fluentd::SettingsController < ApplicationController
|
|||||||
|
|
||||||
@fluentd.agent.config_append @setting.to_conf
|
@fluentd.agent.config_append @setting.to_conf
|
||||||
@fluentd.agent.restart if @fluentd.agent.running?
|
@fluentd.agent.restart if @fluentd.agent.running?
|
||||||
redirect_to fluentd_setting_path(@fluentd)
|
redirect_to daemon_setting_path(@fluentd)
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
class FluentdController < ApplicationController
|
class FluentdController < ApplicationController
|
||||||
before_action :find_fluentd, only: [:show, :edit, :update, :destroy, :log, :raw_log]
|
before_action :find_fluentd, only: [:show, :edit, :update, :destroy, :log, :raw_log, :errors]
|
||||||
before_action :check_fluentd_exists, only: [:edit, :log, :raw_log]
|
before_action :check_fluentd_exists, only: [:edit, :log, :raw_log, :errors]
|
||||||
|
|
||||||
def show
|
def show
|
||||||
end
|
end
|
||||||
@ -15,7 +15,7 @@ class FluentdController < ApplicationController
|
|||||||
unless @fluentd.save
|
unless @fluentd.save
|
||||||
return render :new
|
return render :new
|
||||||
end
|
end
|
||||||
redirect_to fluentd_path
|
redirect_to daemon_path
|
||||||
end
|
end
|
||||||
|
|
||||||
def edit
|
def edit
|
||||||
@ -27,16 +27,19 @@ class FluentdController < ApplicationController
|
|||||||
unless @fluentd.save
|
unless @fluentd.save
|
||||||
return render :edit
|
return render :edit
|
||||||
end
|
end
|
||||||
redirect_to fluentd_path
|
redirect_to daemon_path
|
||||||
end
|
end
|
||||||
|
|
||||||
def destroy
|
def destroy
|
||||||
@fluentd.agent.stop if @fluentd.agent.running?
|
@fluentd.agent.stop if @fluentd.agent.running?
|
||||||
@fluentd.destroy
|
@fluentd.destroy
|
||||||
redirect_to root_path, flash: {success: t('messages.destroy_succeed_fluentd_setting')}
|
redirect_to root_path, flash: {success: t('messages.destroy_succeed_fluentd_setting', brand: fluentd_ui_brand)}
|
||||||
end
|
end
|
||||||
|
|
||||||
def log
|
def log
|
||||||
|
end
|
||||||
|
|
||||||
|
def errors
|
||||||
@error_duration_days = 5
|
@error_duration_days = 5
|
||||||
@errors = @fluentd.agent.errors_since(@error_duration_days.days.ago)
|
@errors = @fluentd.agent.errors_since(@error_duration_days.days.ago)
|
||||||
end
|
end
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
class WelcomeController < ApplicationController
|
class WelcomeController < ApplicationController
|
||||||
def home
|
def home
|
||||||
redirect_to fluentd_path
|
redirect_to daemon_path
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -5,8 +5,8 @@ module ApplicationHelper
|
|||||||
File.exist?("/etc/init.d/td-agent")
|
File.exist?("/etc/init.d/td-agent")
|
||||||
end
|
end
|
||||||
|
|
||||||
def fluentd_ui_title
|
def fluentd_ui_logo
|
||||||
ENV["FLUENTD_UI_TITLE"] || "Fluentd UI"
|
image_tag(ENV["FLUENTD_UI_LOGO"] || "/fluentd-logo-right-text.png")
|
||||||
end
|
end
|
||||||
|
|
||||||
def language_name(locale)
|
def language_name(locale)
|
||||||
@ -40,12 +40,16 @@ module ApplicationHelper
|
|||||||
%Q!<i class="fa #{classes}">#{inner}</i> !.html_safe
|
%Q!<i class="fa #{classes}">#{inner}</i> !.html_safe
|
||||||
end
|
end
|
||||||
|
|
||||||
def page_title(title)
|
def page_title(title, &block)
|
||||||
content_for(:page_title) { title }
|
content_for(:page_title) do
|
||||||
page_head(title) unless content_for?(:page_head)
|
title
|
||||||
|
end
|
||||||
|
page_head(title, &block) unless content_for?(:page_head)
|
||||||
end
|
end
|
||||||
|
|
||||||
def page_head(head)
|
def page_head(head, &block)
|
||||||
content_for(:page_head) { head }
|
content_for(:page_head) do
|
||||||
|
head.html_safe + block.try(:call).to_s
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
- page_title t('.page_title')
|
- page_title t('.page_title')
|
||||||
|
|
||||||
= render partial: "form", locals: { btn: t(".update"), url: fluentd_path(@fluentd), method: :patch }
|
= render partial: "form", locals: { btn: t(".update"), url: daemon_path(@fluentd), method: :patch }
|
||||||
|
19
app/views/fluentd/errors.html.haml
Normal file
19
app/views/fluentd/errors.html.haml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
- page_title t('fluentd.common.recent_errors', days: @error_duration_days) do
|
||||||
|
- link_to raw_log_daemon_path(@fluentd), class: "btn btn-primary pull-right" do
|
||||||
|
= icon('fa-download')
|
||||||
|
= t('fluentd.common.raw_log_link')
|
||||||
|
|
||||||
|
%div.row
|
||||||
|
%div.col-lg-12
|
||||||
|
- @errors.each do |error|
|
||||||
|
%div.panel.panel-default
|
||||||
|
%div.panel-heading
|
||||||
|
%h4= error[:subject]
|
||||||
|
- if error[:notes].present?
|
||||||
|
%div.panel-body
|
||||||
|
%ul
|
||||||
|
- error[:notes].each do |stack|
|
||||||
|
%li= stack
|
||||||
|
- if @errors.empty?
|
||||||
|
%p= t('.error_is_empty')
|
||||||
|
|
@ -1,21 +1,9 @@
|
|||||||
|
- page_title t('.page_title', label: @fluentd.label) do
|
||||||
|
- link_to raw_log_daemon_path(@fluentd), class: "btn btn-primary pull-right" do
|
||||||
|
= icon('fa-download')
|
||||||
|
= t('fluentd.common.raw_log_link')
|
||||||
|
|
||||||
- page_title t('.page_title', label: @fluentd.label)
|
.row
|
||||||
|
.col-lg-12
|
||||||
= link_to t('.raw_log_link'), raw_log_fluentd_path(@fluentd), class: "btn btn-primary"
|
= preserve do # partial containing <pre>, so shouldn't break indent
|
||||||
|
= render partial: "shared/vue/fluent_log", locals: { fluentd: @fluentd }
|
||||||
|
|
||||||
%h3= t('.recent_errors', days: @error_duration_days)
|
|
||||||
|
|
||||||
%div.row
|
|
||||||
%div.col-lg-12
|
|
||||||
- @errors.each do |error|
|
|
||||||
%div.panel.panel-default
|
|
||||||
%div.panel-heading
|
|
||||||
%h4= error[:subject]
|
|
||||||
- if error[:notes].present?
|
|
||||||
%div.panel-body
|
|
||||||
%ul
|
|
||||||
- error[:notes].each do |stack|
|
|
||||||
%li= stack
|
|
||||||
- if @errors.empty?
|
|
||||||
%p= t('.error_is_empty')
|
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
- page_title t('.page_title')
|
- page_title t('.page_title')
|
||||||
|
|
||||||
= render partial: "form", locals: { btn: t(".create"), url: fluentd_path, method: :post }
|
= render partial: "form", locals: { btn: t(".create"), url: daemon_path, method: :post }
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
- page_title t('.page_title', label: @fluentd.label)
|
- page_title t('.page_title', label: @fluentd.label)
|
||||||
|
|
||||||
= form_tag(fluentd_setting_path(@fluentd), method: :patch) do
|
= form_tag(daemon_setting_path(@fluentd), method: :patch) do
|
||||||
%div.form-group
|
%div.form-group
|
||||||
= text_area_tag "config", @config, class: "form-control", rows: 40
|
= text_area_tag "config", @config, class: "form-control", rows: 40
|
||||||
%p.text.text-danger= t('plugins.notice_restart_for_config_edit')
|
%p.text.text-danger= t('terms.notice_restart_for_config_edit', brand: fluentd_ui_brand)
|
||||||
= submit_tag t(".update"), class: "btn btn-primary"
|
= submit_tag t(".update"), class: "btn btn-primary"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
= render "shared/setting_errors"
|
= render "shared/setting_errors"
|
||||||
|
|
||||||
= form_for(@setting, url: finish_fluentd_setting_in_syslog_path(@fluentd), html: {class: "ignore-rails-error-div"}) do |f|
|
= form_for(@setting, url: finish_daemon_setting_in_syslog_path(@fluentd), html: {class: "ignore-rails-error-div"}) do |f|
|
||||||
= field(f, :tag)
|
= field(f, :tag)
|
||||||
= field(f, :bind)
|
= field(f, :bind)
|
||||||
= field(f, :port)
|
= field(f, :port)
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
- page_title t(".page_title")
|
- page_title t(".page_title")
|
||||||
|
|
||||||
= link_to t('fluentd.settings.in_tail.restart_from_first'), fluentd_setting_in_tail_path(@fluentd)
|
= link_to t('fluentd.settings.in_tail.restart_from_first'), daemon_setting_in_tail_path(@fluentd)
|
||||||
|
|
||||||
= form_for(@setting, as: "setting", url: after_format_fluentd_setting_in_tail_path(@fluentd)) do |f|
|
= form_for(@setting, as: "setting", url: after_format_daemon_setting_in_tail_path(@fluentd)) do |f|
|
||||||
- @setting.errors.full_messages.each do |e|
|
- @setting.errors.full_messages.each do |e|
|
||||||
%div.alert.alert-danger= e
|
%div.alert.alert-danger= e
|
||||||
|
|
||||||
@ -16,4 +16,4 @@
|
|||||||
|
|
||||||
%p
|
%p
|
||||||
= f.submit t('terms.next'), class: "btn btn-lg btn-primary pull-right"
|
= f.submit t('terms.next'), class: "btn btn-lg btn-primary pull-right"
|
||||||
= link_to t('terms.prev'), fluentd_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-default"
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
- page_title t(".page_title")
|
- page_title t(".page_title")
|
||||||
|
|
||||||
= link_to t('fluentd.settings.in_tail.restart_from_first'), fluentd_setting_in_tail_path(@fluentds)
|
= link_to t('fluentd.settings.in_tail.restart_from_first'), daemon_setting_in_tail_path(@fluentds)
|
||||||
|
|
||||||
= form_for(@setting, as: "setting", url: confirm_fluentd_setting_in_tail_path(@fluentd)) do |f|
|
= form_for(@setting, as: "setting", url: confirm_daemon_setting_in_tail_path(@fluentd)) do |f|
|
||||||
= render partial: "form", locals: { f: f }
|
= render partial: "form", locals: { f: f }
|
||||||
|
|
||||||
%p
|
%p
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
- page_title t(".page_title")
|
- page_title t(".page_title")
|
||||||
|
|
||||||
= link_to t('fluentd.settings.in_tail.restart_from_first'), fluentd_setting_in_tail_path(@fluentd)
|
= link_to t('fluentd.settings.in_tail.restart_from_first'), daemon_setting_in_tail_path(@fluentd)
|
||||||
|
|
||||||
= form_for(@setting, as: "setting", url: finish_fluentd_setting_in_tail_path(@fluentd)) do |f|
|
= form_for(@setting, as: "setting", url: finish_daemon_setting_in_tail_path(@fluentd)) do |f|
|
||||||
= render partial: "form", locals: { f: f }
|
= render partial: "form", locals: { f: f }
|
||||||
|
|
||||||
%pre= @setting.to_conf
|
%pre= @setting.to_conf
|
||||||
@ -10,4 +10,4 @@
|
|||||||
%p
|
%p
|
||||||
= f.submit t('fluentd.common.finish') , class: "btn btn-lg btn-primary pull-right"
|
= f.submit t('fluentd.common.finish') , class: "btn btn-lg btn-primary pull-right"
|
||||||
= f.submit t('terms.prev'), class: "btn btn-lg btn-default", name: "back"
|
= f.submit t('terms.prev'), class: "btn btn-lg btn-default", name: "back"
|
||||||
.clearfix.pull-right= t('terms.notice_restart_for_config_edit')
|
.clearfix.pull-right= t('terms.notice_restart_for_config_edit', brand: fluentd_ui_brand)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
- page_title t(".page_title")
|
- page_title t(".page_title")
|
||||||
|
|
||||||
= render partial: "shared/vue/treeview", locals: {name: "path", action: after_file_choose_fluentd_setting_in_tail_path(@fluentd), submit_button: t('terms.next')}
|
= render partial: "shared/vue/treeview", locals: {name: "path", action: after_file_choose_daemon_setting_in_tail_path(@fluentd), submit_button: t('terms.next')}
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
= render "shared/setting_errors"
|
= render "shared/setting_errors"
|
||||||
|
|
||||||
= form_for(@setting, url: finish_fluentd_setting_out_forward_path(@fluentd), html: {class: "ignore-rails-error-div"}) do |f|
|
= form_for(@setting, url: finish_daemon_setting_out_forward_path(@fluentd), html: {class: "ignore-rails-error-div"}) do |f|
|
||||||
= field(f, :match)
|
= field(f, :match)
|
||||||
= field(f, :server)
|
= field(f, :server)
|
||||||
= field(f, :secondary)
|
= field(f, :secondary)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
= render "shared/setting_errors"
|
= render "shared/setting_errors"
|
||||||
|
|
||||||
= form_for(@setting, url: finish_fluentd_setting_out_mongo_path(@fluentd), html: {class: "ignore-rails-error-div"}) do |f|
|
= form_for(@setting, url: finish_daemon_setting_out_mongo_path(@fluentd), html: {class: "ignore-rails-error-div"}) do |f|
|
||||||
= field(f, :match)
|
= field(f, :match)
|
||||||
= field(f, :host)
|
= field(f, :host)
|
||||||
= field(f, :port)
|
= field(f, :port)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
= render "shared/setting_errors"
|
= render "shared/setting_errors"
|
||||||
|
|
||||||
= form_for(@setting, url: finish_fluentd_setting_out_s3_path(@fluentd), html: {class: "ignore-rails-error-div"}) do |f|
|
= form_for(@setting, url: finish_daemon_setting_out_s3_path(@fluentd), html: {class: "ignore-rails-error-div"}) do |f|
|
||||||
= field(f, :match)
|
= field(f, :match)
|
||||||
= field(f, :aws_key_id)
|
= field(f, :aws_key_id)
|
||||||
= field(f, :aws_sec_key)
|
= field(f, :aws_sec_key)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
= render "shared/setting_errors"
|
= render "shared/setting_errors"
|
||||||
|
|
||||||
= form_for(@setting, url: finish_fluentd_setting_out_td_path(@fluentd), html: {class: "ignore-rails-error-div"}) do |f|
|
= form_for(@setting, url: finish_daemon_setting_out_td_path(@fluentd), html: {class: "ignore-rails-error-div"}) do |f|
|
||||||
= field(f, :match)
|
= field(f, :match)
|
||||||
= field(f, :apikey)
|
= field(f, :apikey)
|
||||||
= field(f, :auto_create_table)
|
= field(f, :auto_create_table)
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
- page_title t('.page_title')
|
- page_title t('.page_title') do
|
||||||
|
- link_to edit_daemon_setting_path(@fluentd), class: "btn btn-primary pull-right" do
|
||||||
|
= icon('fa-pencil')
|
||||||
|
= t("terms.edit")
|
||||||
|
|
||||||
.row
|
.row
|
||||||
.col-lg-12
|
.col-lg-12
|
||||||
%p
|
|
||||||
= link_to t("terms.edit"), edit_fluentd_setting_path(@fluentd), class: "btn btn-primary"
|
|
||||||
%pre
|
%pre
|
||||||
= preserve do
|
= preserve do
|
||||||
= @config
|
= @config
|
||||||
|
@ -3,17 +3,17 @@
|
|||||||
%h2
|
%h2
|
||||||
|
|
||||||
.row.fluentd-setting-inout
|
.row.fluentd-setting-inout
|
||||||
.col-lg-2
|
.col-lg-4
|
||||||
.panel.panel-default
|
.panel.panel-default
|
||||||
.panel-heading
|
.panel-heading
|
||||||
%h4= t('.in')
|
%h4= t('.in')
|
||||||
.panel-body
|
.panel-body
|
||||||
%p
|
%p
|
||||||
= link_to(fluentd_setting_in_tail_path(@fluentd)) do
|
= link_to(daemon_setting_in_tail_path(@fluentd)) do
|
||||||
= icon('fa-file-text-o fa-lg')
|
= icon('fa-file-text-o fa-lg')
|
||||||
= t("fluentd.common.setup_in_tail")
|
= t("fluentd.common.setup_in_tail")
|
||||||
%p
|
%p
|
||||||
= link_to(fluentd_setting_in_syslog_path(@fluentd)) do
|
= link_to(daemon_setting_in_syslog_path(@fluentd)) do
|
||||||
= icon('fa-file-text-o fa-lg')
|
= icon('fa-file-text-o fa-lg')
|
||||||
= t("fluentd.common.setup_in_syslog")
|
= t("fluentd.common.setup_in_syslog")
|
||||||
.col-lg-1.arrow-right
|
.col-lg-1.arrow-right
|
||||||
@ -22,24 +22,24 @@
|
|||||||
= image_tag "/fluentd-logo.png", style: "max-width: 100%"
|
= image_tag "/fluentd-logo.png", style: "max-width: 100%"
|
||||||
.col-lg-1.arrow-right
|
.col-lg-1.arrow-right
|
||||||
= icon "fa-arrow-circle-right"
|
= icon "fa-arrow-circle-right"
|
||||||
.col-lg-2
|
.col-lg-4
|
||||||
.panel.panel-default
|
.panel.panel-default
|
||||||
.panel-heading
|
.panel-heading
|
||||||
%h4= t('.out')
|
%h4= t('.out')
|
||||||
.panel-body
|
.panel-body
|
||||||
%p
|
%p
|
||||||
= link_to(fluentd_setting_out_td_path(@fluentd)) do
|
= link_to(daemon_setting_out_td_path(@fluentd)) do
|
||||||
= icon('fa-file-text-o fa-lg')
|
= icon('fa-file-text-o fa-lg')
|
||||||
= t("fluentd.common.setup_out_td")
|
= t("fluentd.common.setup_out_td")
|
||||||
%p
|
%p
|
||||||
= link_to(fluentd_setting_out_s3_path(@fluentd)) do
|
= link_to(daemon_setting_out_s3_path(@fluentd)) do
|
||||||
= icon('fa-file-text-o fa-lg')
|
= icon('fa-file-text-o fa-lg')
|
||||||
= t("fluentd.common.setup_out_s3")
|
= t("fluentd.common.setup_out_s3")
|
||||||
%p
|
%p
|
||||||
= link_to(fluentd_setting_out_mongo_path(@fluentd)) do
|
= link_to(daemon_setting_out_mongo_path(@fluentd)) do
|
||||||
= icon('fa-file-text-o fa-lg')
|
= icon('fa-file-text-o fa-lg')
|
||||||
= t("fluentd.common.setup_out_mongo")
|
= t("fluentd.common.setup_out_mongo")
|
||||||
%p
|
%p
|
||||||
= link_to(fluentd_setting_out_forward_path(@fluentd)) do
|
= link_to(daemon_setting_out_forward_path(@fluentd)) do
|
||||||
= icon('fa-file-text-o fa-lg')
|
= icon('fa-file-text-o fa-lg')
|
||||||
= t("fluentd.common.setup_out_forward")
|
= t("fluentd.common.setup_out_forward")
|
||||||
|
@ -14,14 +14,14 @@
|
|||||||
.panel-body
|
.panel-body
|
||||||
- if flash[:error]
|
- if flash[:error]
|
||||||
%div.alert.alert-danger= flash[:error]
|
%div.alert.alert-danger= flash[:error]
|
||||||
= link_to icon("fa-play") << t("fluentd.common.start"), start_fluentd_agent_path(@fluentd), method: :put, class: "btn #{@fluentd.agent.running? ? "disabled btn-default" : "btn-primary"}"
|
= link_to icon("fa-play") << t("fluentd.common.start"), start_daemon_agent_path(@fluentd), method: :put, class: "btn #{@fluentd.agent.running? ? "disabled btn-default" : "btn-primary"}"
|
||||||
= link_to icon("fa-pause") << t("fluentd.common.stop"), stop_fluentd_agent_path(@fluentd), method: :put, class: "btn #{@fluentd.agent.running? ? "btn-danger" : "disabled btn-default"}"
|
= link_to icon("fa-pause") << t("fluentd.common.stop"), stop_daemon_agent_path(@fluentd), method: :put, class: "btn #{@fluentd.agent.running? ? "btn-danger" : "disabled btn-default"}"
|
||||||
= link_to icon("fa-refresh") << t("fluentd.common.restart"), restart_fluentd_agent_path(@fluentd), method: :put, class: "btn #{@fluentd.agent.running? ? "btn-warning" : "disabled btn-default"}"
|
= link_to icon("fa-refresh") << t("fluentd.common.restart"), restart_daemon_agent_path(@fluentd), method: :put, class: "btn #{@fluentd.agent.running? ? "btn-warning" : "disabled btn-default"}"
|
||||||
.col-lg-6
|
.col-lg-6
|
||||||
.panel.panel-default
|
.panel.panel-default
|
||||||
.panel-heading
|
.panel-heading
|
||||||
.pull-right
|
.pull-right
|
||||||
= link_to t('terms.edit'), edit_fluentd_path, class: "btn btn-default"
|
= link_to t('terms.edit'), edit_daemon_path, class: "btn btn-default"
|
||||||
= link_to t('terms.destroy'), "#", class: "btn btn-danger", data: { toggle: "modal", target: "#setting-destroy-modal" }
|
= link_to t('terms.destroy'), "#", class: "btn btn-danger", data: { toggle: "modal", target: "#setting-destroy-modal" }
|
||||||
%h4= t('fluentd.common.fluentd_info')
|
%h4= t('fluentd.common.fluentd_info')
|
||||||
.modal.fade{id: "setting-destroy-modal"}
|
.modal.fade{id: "setting-destroy-modal"}
|
||||||
@ -31,11 +31,11 @@
|
|||||||
%button.close{"data-dismiss" => "modal"}
|
%button.close{"data-dismiss" => "modal"}
|
||||||
= raw "×"
|
= raw "×"
|
||||||
%h4.modal-title
|
%h4.modal-title
|
||||||
= t('fluentd.common.destroy_fluentd_setting')
|
= t('fluentd.common.destroy_fluentd_setting', brand: fluentd_ui_brand)
|
||||||
.modal-body
|
.modal-body
|
||||||
= raw t('fluentd.common.destroy_fluentd_setting_warning')
|
= raw t('fluentd.common.destroy_fluentd_setting_warning', brand: fluentd_ui_brand)
|
||||||
.modal-footer
|
.modal-footer
|
||||||
= form_tag(fluentd_path(@fluentd), method: :delete) do
|
= form_tag(daemon_path(@fluentd), method: :delete) do
|
||||||
%button.btn.btn-default{"data-dismiss" => "modal"}
|
%button.btn.btn-default{"data-dismiss" => "modal"}
|
||||||
Close
|
Close
|
||||||
= submit_tag t('terms.destroy'), class: "btn btn-danger"
|
= submit_tag t('terms.destroy'), class: "btn btn-danger"
|
||||||
|
@ -7,11 +7,11 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
||||||
<title>
|
<title>
|
||||||
<% fluentd_ui_title %>
|
|
||||||
<% if content_for?(:page_title) %>
|
<% if content_for?(:page_title) %>
|
||||||
|
|
|
||||||
<%= content_for(:page_title) %>
|
<%= content_for(:page_title) %>
|
||||||
|
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<%= fluentd_ui_title %>
|
||||||
</title>
|
</title>
|
||||||
<%= stylesheet_link_tag 'application', media: 'all'%>
|
<%= stylesheet_link_tag 'application', media: 'all'%>
|
||||||
<%= javascript_include_tag 'application' %>
|
<%= javascript_include_tag 'application' %>
|
||||||
@ -32,7 +32,7 @@
|
|||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
</button>
|
</button>
|
||||||
<%= link_to fluentd_ui_title, root_path, class: "navbar-brand" %>
|
<%= link_to fluentd_ui_logo, root_path, class: "navbar-brand fluentd-ui-logo" %>
|
||||||
</div>
|
</div>
|
||||||
<!-- /.navbar-header -->
|
<!-- /.navbar-header -->
|
||||||
|
|
||||||
|
@ -1,18 +1,15 @@
|
|||||||
- page_title t('.page_title')
|
- page_title t('.page_title') do
|
||||||
|
- link_to misc_download_info_path, class: "btn btn-primary pull-right" do
|
||||||
|
= icon('fa-download')
|
||||||
|
= t('.download_system_information')
|
||||||
|
|
||||||
- if FluentdUI.update_available?
|
- if FluentdUI.update_available?
|
||||||
.row
|
.row
|
||||||
.col-lg-12
|
.col-lg-12
|
||||||
%p
|
%p
|
||||||
= link_to misc_update_fluentd_ui_path, class: "btn btn-primary btn-lg", method: :post do
|
= link_to misc_update_daemon_ui_path, class: "btn btn-primary btn-lg", method: :post do
|
||||||
= t('.update_fluentd_ui', version: FluentdUI.latest_version)
|
= t('.update_fluentd_ui', version: FluentdUI.latest_version, title: fluentd_ui_title)
|
||||||
= t('.update_fluentd_ui_caution')
|
= t('.update_fluentd_ui_caution', brand: fluentd_ui_brand)
|
||||||
|
|
||||||
.row
|
|
||||||
.col-lg-12
|
|
||||||
%p
|
|
||||||
=link_to misc_download_info_path, class: "btn btn-primary" do
|
|
||||||
= t('.download_system_information')
|
|
||||||
|
|
||||||
.row
|
.row
|
||||||
%div.col-lg-6
|
%div.col-lg-6
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
.panel.panel-default
|
.panel.panel-default
|
||||||
.panel-heading
|
.panel-heading
|
||||||
= t('.update_title')
|
= t('.update_title', title: fluentd_ui_title)
|
||||||
.panel-body
|
.panel-body
|
||||||
#processing
|
#processing
|
||||||
= icon('fa-lg fa-gear fa-spin')
|
= icon('fa-lg fa-gear fa-spin')
|
||||||
@ -11,7 +11,7 @@
|
|||||||
%p= link_to t('misc.information.page_title'), misc_information_path
|
%p= link_to t('misc.information.page_title'), misc_information_path
|
||||||
#failed{style: "display: none"}
|
#failed{style: "display: none"}
|
||||||
= icon('fa-lg fa-exclamation-circle')
|
= icon('fa-lg fa-exclamation-circle')
|
||||||
= t('.failed')
|
= t('.failed', title: fluentd_ui_title)
|
||||||
%p= link_to t('misc.information.page_title'), misc_information_path
|
%p= link_to t('misc.information.page_title'), misc_information_path
|
||||||
|
|
||||||
:javascript
|
:javascript
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
- if flash[:error]
|
- if flash[:error]
|
||||||
%div.alert.alert-danger= flash[:error]
|
%div.alert.alert-danger= flash[:error]
|
||||||
|
|
||||||
= link_to t("fluentd.common.detail"), fluentd_path(@fluentd)
|
= link_to t("fluentd.common.detail"), daemon_path(@fluentd)
|
||||||
= link_to t("fluentd.common.start"), start_fluentd_agent_path(@fluentd), method: :put
|
= link_to t("fluentd.common.start"), start_daemon_agent_path(@fluentd), method: :put
|
||||||
= link_to t("fluentd.common.stop"), stop_fluentd_agent_path(@fluentd), method: :put
|
= link_to t("fluentd.common.stop"), stop_daemon_agent_path(@fluentd), method: :put
|
||||||
= link_to t("fluentd.common.restart"), restart_fluentd_agent_path(@fluentd), method: :put
|
= link_to t("fluentd.common.restart"), restart_daemon_agent_path(@fluentd), method: :put
|
||||||
= link_to t("fluentd.common.log"), log_fluentd_agent_path(@fluentd)
|
= link_to t("fluentd.common.log"), log_daemon_agent_path(@fluentd)
|
||||||
= link_to t("fluentd.common.config_file"), fluentd_setting_path(@fluentd)
|
= link_to t("fluentd.common.config_file"), daemon_setting_path(@fluentd)
|
||||||
|
@ -6,16 +6,19 @@
|
|||||||
<% if fluentd_exists? %>
|
<% if fluentd_exists? %>
|
||||||
<ul class="nav nav-second-level">
|
<ul class="nav nav-second-level">
|
||||||
<li>
|
<li>
|
||||||
<%= link_to_other t('fluentd.show.page_title'), fluentd_path %>
|
<%= link_to_other t('fluentd.show.page_title'), daemon_path %>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<%= link_to_other t('fluentd.settings.source_and_output.page_title'), source_and_output_fluentd_setting_path %>
|
<%= link_to_other t('fluentd.settings.source_and_output.page_title'), source_and_output_daemon_setting_path %>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<%= link_to_other t('fluentd.settings.show.page_title'), fluentd_setting_path %>
|
<%= link_to_other t('fluentd.settings.show.page_title'), daemon_setting_path %>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<%= link_to_other t('fluentd.common.log'), log_fluentd_path %>
|
<%= link_to_other t('fluentd.common.log'), log_daemon_path %>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<%= link_to_other t('fluentd.errors.page_title'), errors_daemon_path %>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<% end %>
|
<% end %>
|
||||||
@ -51,9 +54,12 @@
|
|||||||
<li>
|
<li>
|
||||||
<%= link_to_other t('users.show.page_title'), user_path %>
|
<%= link_to_other t('users.show.page_title'), user_path %>
|
||||||
</li>
|
</li>
|
||||||
|
<!--
|
||||||
|
Not used for now (0.0.1 pre)
|
||||||
<li>
|
<li>
|
||||||
<%= link_to_other t('tutorials.index.page_title'), tutorials_path %>
|
<%= link_to_other t('tutorials.index.page_title'), tutorials_path %>
|
||||||
</li>
|
</li>
|
||||||
|
-->
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
@ -3,11 +3,11 @@
|
|||||||
%div.row
|
%div.row
|
||||||
%div.col-lg-6
|
%div.col-lg-6
|
||||||
%div.well
|
%div.well
|
||||||
%span= link_to icon("fa-cog") << t("terms.setup", target: "fluentd"), new_fluentd_path(variant: "fluentd_gem"), class: "btn btn-primary btn-lg"
|
%span= link_to icon("fa-cog") << t("terms.setup", target: "fluentd"), new_daemon_path(variant: "fluentd_gem"), class: "btn btn-primary btn-lg"
|
||||||
%div.col-lg-6
|
%div.col-lg-6
|
||||||
%div.well
|
%div.well
|
||||||
%span
|
%span
|
||||||
= link_to icon("fa-cog") << t("terms.setup", target: "td-agent"), new_fluentd_path(variant: "td-agent"), class: "btn btn-lg #{has_td_agent_system? ? "btn-primary" : "btn-default disabled"}"
|
= link_to icon("fa-cog") << t("terms.setup", target: "td-agent"), new_daemon_path(variant: "td-agent"), class: "btn btn-lg #{has_td_agent_system? ? "btn-primary" : "btn-default disabled"}"
|
||||||
- unless has_td_agent_system?
|
- unless has_td_agent_system?
|
||||||
= link_to t('terms.install_it', target: "td-agent"), "http://docs.treasuredata.com/articles/td-agent"
|
= link_to t('terms.install_it', target: "td-agent"), "http://docs.treasuredata.com/articles/td-agent"
|
||||||
|
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
- if need_restart?
|
|
||||||
%p.alert
|
|
||||||
= t("messages.need_restart")
|
|
@ -1,6 +1,6 @@
|
|||||||
<!-- vue.js -->
|
<!-- vue.js -->
|
||||||
<% auto_reload ||= false %>
|
<% auto_reload ||= true %>
|
||||||
<div id="fluent-log" logUrl="<%= log_tail_fluentd_agent_path(fluentd) %>" initialAutoReload="<%= auto_reload ? "true" : "" %>">
|
<div id="fluent-log" logUrl="<%= log_tail_daemon_agent_path(fluentd) %>" initialAutoReload="<%= auto_reload ? "true" : "" %>">
|
||||||
<p>
|
<p>
|
||||||
<button class="btn btn-primary" v-on="click: fetchLogs">
|
<button class="btn btn-primary" v-on="click: fetchLogs">
|
||||||
<%= t "terms.reload_log" %>
|
<%= t "terms.reload_log" %>
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
= link_to t('tutorials.chapter4.page_title') << " >>", tutorials_chapter4_path, class: "pull-right"
|
= link_to t('tutorials.chapter4.page_title') << " >>", tutorials_chapter4_path, class: "pull-right"
|
||||||
|
|
||||||
:markdown
|
:markdown
|
||||||
#{t(".lesson_markdown", edit_config_url: edit_fluentd_setting_path(@fluentd))}
|
#{t(".lesson_markdown", edit_config_url: edit_daemon_setting_path(@fluentd))}
|
||||||
|
|
||||||
%p.clearfix
|
%p.clearfix
|
||||||
= link_to "<< " << t('tutorials.chapter2.page_title'), tutorials_chapter2_path, class: "pull-left"
|
= link_to "<< " << t('tutorials.chapter2.page_title'), tutorials_chapter2_path, class: "pull-left"
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
= t('.step1')
|
= t('.step1')
|
||||||
- else
|
- else
|
||||||
= icon('fa-warning text text-danger')
|
= icon('fa-warning text text-danger')
|
||||||
= link_to t('.step1'), fluentd_path
|
= link_to t('.step1'), daemon_path
|
||||||
%li
|
%li
|
||||||
- if @fluentd && @fluentd.agent.running?
|
- if @fluentd && @fluentd.agent.running?
|
||||||
= icon('fa-check text text-success')
|
= icon('fa-check text text-success')
|
||||||
@ -18,7 +18,7 @@
|
|||||||
- else
|
- else
|
||||||
= icon('fa-warning text text-danger')
|
= icon('fa-warning text text-danger')
|
||||||
- if @fluentd
|
- if @fluentd
|
||||||
= link_to t('.step2'), fluentd_path(@fluentd)
|
= link_to t('.step2'), daemon_path(@fluentd)
|
||||||
- else
|
- else
|
||||||
= t('.step2')
|
= t('.step2')
|
||||||
|
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
en:
|
en:
|
||||||
messages:
|
messages:
|
||||||
need_restart: need to restart fluentd-ui
|
|
||||||
please_sign_in: Sign in
|
please_sign_in: Sign in
|
||||||
destroy_succeed_fluentd_setting: Deleted fluentd setting
|
destroy_succeed_fluentd_setting: "Deleted %{brand} setting"
|
||||||
available_new_fluentd_ui: 'fluentd-ui %{version} is available. <a href="%{update_url}">Go to system information page</a>'
|
available_new_fluentd_ui: 'fluentd-ui %{version} is available. <a href="%{update_url}">Go to system information page</a>'
|
||||||
|
|
||||||
terms: &terms
|
terms: &terms
|
||||||
@ -42,12 +41,11 @@ en:
|
|||||||
next: Next
|
next: Next
|
||||||
prev: Prev
|
prev: Prev
|
||||||
advanced_setting: Advanced Settings
|
advanced_setting: Advanced Settings
|
||||||
notice_restart_for_config_edit: "NOTICE: fluentd will restart after update config"
|
notice_restart_for_config_edit: "NOTICE: running %{brand} will restart after update config"
|
||||||
lines: Lines
|
lines: Lines
|
||||||
languages: Language
|
languages: Language
|
||||||
|
|
||||||
plugins:
|
plugins:
|
||||||
notice_restart_for_config_edit: "NOTICE: fluentd will restart after update config"
|
|
||||||
view_on_rubygems_org: View on rubygems.org
|
view_on_rubygems_org: View on rubygems.org
|
||||||
common: &plugin_common
|
common: &plugin_common
|
||||||
<<: *terms
|
<<: *terms
|
||||||
@ -104,24 +102,25 @@ en:
|
|||||||
fluentd_info: Setting info
|
fluentd_info: Setting info
|
||||||
recent_errors: "Errors within recent %{days} days"
|
recent_errors: "Errors within recent %{days} days"
|
||||||
raw_log_link: Download
|
raw_log_link: Download
|
||||||
destroy_fluentd_setting: Delete fluentd setting
|
destroy_fluentd_setting: "Delete %{brand} setting"
|
||||||
destroy_fluentd_setting_warning: |
|
destroy_fluentd_setting_warning: |
|
||||||
Delete fluentd setting.
|
Delete %{brand} setting.
|
||||||
|
|
||||||
<p>Running fluentd will be stopped, but log and config file are still exists.</p>
|
<p>Running %{brand} will be stopped, but log and config file are still exists.</p>
|
||||||
form:
|
form:
|
||||||
<<: *fluentd_common
|
<<: *fluentd_common
|
||||||
show:
|
show:
|
||||||
page_title: Dashboard
|
page_title: Dashboard
|
||||||
new:
|
new:
|
||||||
<<: *fluentd_common
|
<<: *fluentd_common
|
||||||
page_title: fluentd | New
|
page_title: New
|
||||||
edit:
|
edit:
|
||||||
<<: *fluentd_common
|
<<: *fluentd_common
|
||||||
page_title: fluentd | Edit
|
page_title: Edit
|
||||||
log:
|
log:
|
||||||
<<: *fluentd_common
|
page_title: log
|
||||||
page_title: fluentd log
|
errors:
|
||||||
|
page_title: エラーログ
|
||||||
error_is_empty: No errors
|
error_is_empty: No errors
|
||||||
settings:
|
settings:
|
||||||
source_and_output:
|
source_and_output:
|
||||||
@ -223,15 +222,15 @@ en:
|
|||||||
env_key: Key
|
env_key: Key
|
||||||
env_value: Value
|
env_value: Value
|
||||||
page_title: System Information
|
page_title: System Information
|
||||||
update_fluentd_ui: Update fluentd-ui
|
update_fluentd_ui: "Update %{title}"
|
||||||
update_fluentd_ui_caution: "Note: fluentd will not restart"
|
update_fluentd_ui_caution: "Note: %{brand} will not restart"
|
||||||
download_system_information: Download System Information
|
download_system_information: Download System Information
|
||||||
update_fluentd_ui:
|
update_fluentd_ui:
|
||||||
<<: *misc_common
|
<<: *misc_common
|
||||||
update_title: Updating fluentd-ui
|
update_title: "Updating %{title}"
|
||||||
updating: Updating..
|
updating: Updating..
|
||||||
update_finish: Update finished!
|
update_finish: Update finished!
|
||||||
failed: Failed to update. Please see fluentd-ui log
|
failed: "Failed to update. Please see %{title} log"
|
||||||
|
|
||||||
tutorials:
|
tutorials:
|
||||||
common: &tutorials_common
|
common: &tutorials_common
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
ja:
|
ja:
|
||||||
messages:
|
messages:
|
||||||
need_restart: fluentd-uiの再起動が必要です
|
|
||||||
please_sign_in: ログイン
|
please_sign_in: ログイン
|
||||||
destroy_succeed_fluentd_setting: fluentdの設定を削除しました
|
destroy_succeed_fluentd_setting: "%{brand}の設定を削除しました"
|
||||||
available_new_fluentd_ui: 'fluentd-ui %{version}にアップデートできます。<a href="%{update_url}">システム情報ページへ</a>'
|
available_new_fluentd_ui: '%{title} %{version}にアップデートできます。<a href="%{update_url}">システム情報ページへ</a>'
|
||||||
|
|
||||||
terms: &terms
|
terms: &terms
|
||||||
sign_in: ログイン
|
sign_in: ログイン
|
||||||
@ -42,12 +41,11 @@ ja:
|
|||||||
next: 次へ
|
next: 次へ
|
||||||
prev: 前へ
|
prev: 前へ
|
||||||
advanced_setting: 高度な設定
|
advanced_setting: 高度な設定
|
||||||
notice_restart_for_config_edit: ※更新するとfluentdが再起動されます
|
notice_restart_for_config_edit: "※更新すると稼働中の%{brand}が再起動されます"
|
||||||
lines: 行
|
lines: 行
|
||||||
languages: 言語
|
languages: 言語
|
||||||
|
|
||||||
plugins:
|
plugins:
|
||||||
notice_restart_for_config_edit: ※更新するとfluentdが再起動されます
|
|
||||||
view_on_rubygems_org: rubygems.orgで見る
|
view_on_rubygems_org: rubygems.orgで見る
|
||||||
common: &plugin_common
|
common: &plugin_common
|
||||||
<<: *terms
|
<<: *terms
|
||||||
@ -103,24 +101,25 @@ ja:
|
|||||||
fluentd_info: 設定情報
|
fluentd_info: 設定情報
|
||||||
recent_errors: "直近 %{days} 日内のエラー"
|
recent_errors: "直近 %{days} 日内のエラー"
|
||||||
raw_log_link: ログファイルをダウンロード
|
raw_log_link: ログファイルをダウンロード
|
||||||
destroy_fluentd_setting: fluentdの設定情報を削除
|
destroy_fluentd_setting: "%{brand}の設定情報を削除"
|
||||||
destroy_fluentd_setting_warning: |
|
destroy_fluentd_setting_warning: |
|
||||||
fluentdの設定を削除します。
|
%{brand}の設定を削除します。
|
||||||
|
|
||||||
<p>起動中のfluentdは停止し、ログや設定ファイルはそのまま残存します。</p>
|
<p>起動中の%{brand}は停止し、ログや設定ファイルはそのまま残存します。</p>
|
||||||
form:
|
form:
|
||||||
<<: *fluentd_common
|
<<: *fluentd_common
|
||||||
show:
|
show:
|
||||||
page_title: "ダッシュボード"
|
page_title: "ダッシュボード"
|
||||||
new:
|
new:
|
||||||
<<: *fluentd_common
|
<<: *fluentd_common
|
||||||
page_title: fluentd | 追加
|
page_title: 追加
|
||||||
edit:
|
edit:
|
||||||
<<: *fluentd_common
|
<<: *fluentd_common
|
||||||
page_title: fluentd | 編集
|
page_title: 編集
|
||||||
log:
|
log:
|
||||||
<<: *fluentd_common
|
page_title: ログ
|
||||||
page_title: fluentd ログ
|
errors:
|
||||||
|
page_title: エラーログ
|
||||||
error_is_empty: エラーはありません
|
error_is_empty: エラーはありません
|
||||||
settings:
|
settings:
|
||||||
<<: *fluentd_common
|
<<: *fluentd_common
|
||||||
@ -220,15 +219,14 @@ ja:
|
|||||||
env_key: キー
|
env_key: キー
|
||||||
env_value: 値
|
env_value: 値
|
||||||
page_title: システム情報
|
page_title: システム情報
|
||||||
update_fluentd_ui: fluentd-uiを更新
|
update_fluentd_ui: "%{title}を更新"
|
||||||
update_fluentd_ui_caution: ※fluentdは再起動されません
|
update_fluentd_ui_caution: "※%{brand}は再起動されません"
|
||||||
download_system_information: システム情報をダウンロード
|
download_system_information: システム情報をダウンロード
|
||||||
update_fluentd_ui:
|
update_fluentd_ui:
|
||||||
<<: *misc_common
|
update_title: "%{title} 更新"
|
||||||
update_title: fluentd-ui 更新
|
|
||||||
updating: 更新中
|
updating: 更新中
|
||||||
update_finish: 更新が完了しました
|
update_finish: 更新が完了しました
|
||||||
failed: 更新に失敗しました。fluentd-uiのログをご確認ください
|
failed: "更新に失敗しました。%{title}のログをご確認ください"
|
||||||
|
|
||||||
tutorials:
|
tutorials:
|
||||||
common: &tutorials_common
|
common: &tutorials_common
|
||||||
@ -359,9 +357,9 @@ ja:
|
|||||||
|
|
||||||
error:
|
error:
|
||||||
login_failed: ログインに失敗しました。
|
login_failed: ログインに失敗しました。
|
||||||
fluentd_start_failed: fluentdの起動に失敗しました。
|
fluentd_start_failed: "%{brand}の起動に失敗しました。"
|
||||||
fluentd_stop_failed: fluentdの停止に失敗しました。
|
fluentd_stop_failed: "%{brand}の停止に失敗しました。"
|
||||||
fluentd_restart_failed: fluentdの再起動に失敗しました。
|
fluentd_restart_failed: "%{brand}の再起動に失敗しました。"
|
||||||
|
|
||||||
errors:
|
errors:
|
||||||
messages: &error_messages
|
messages: &error_messages
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
Rails.application.routes.draw do
|
Rails.application.routes.draw do
|
||||||
root "welcome#home"
|
root "welcome#home"
|
||||||
|
|
||||||
resource :fluentd, controller: :fluentd do
|
resource :daemon, controller: :fluentd do
|
||||||
get "log"
|
get "log"
|
||||||
get "raw_log"
|
get "raw_log"
|
||||||
|
get "errors"
|
||||||
|
|
||||||
resource :agent, only: [], module: :fluentd do
|
resource :agent, only: [], module: :fluentd do
|
||||||
put "start"
|
put "start"
|
||||||
|
BIN
public/fluentd-logo-right-text.png
Normal file
BIN
public/fluentd-logo-right-text.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 62 KiB |
@ -14,8 +14,8 @@ describe "sessions" do
|
|||||||
|
|
||||||
context "sign in with exists user" do
|
context "sign in with exists user" do
|
||||||
let(:user) { exists_user }
|
let(:user) { exists_user }
|
||||||
it "login success, then redirect to root_path, and redirect_to fluentd_path from root_path" do
|
it "login success, then redirect to root_path, and redirect_to daemon_path from root_path" do
|
||||||
current_path.should == fluentd_path
|
current_path.should == daemon_path
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user