diff --git a/app/views/shared/_alerts.html.haml b/app/views/shared/_alerts.html.haml index d196b1d..4354a0b 100644 --- a/app/views/shared/_alerts.html.haml +++ b/app/views/shared/_alerts.html.haml @@ -6,8 +6,12 @@ - if installing_gem? %span{class: "badge pull-right"}= installing_gems.length -- installing_gems.each do |plugin| - = alert_line 'fa-refresh fa-spin', "#{plugin.gem_name} (#{plugin.version})" + +- if installing_gem? + - installing_gems.each do |plugin| + = alert_line 'fa-refresh fa-spin', "#{plugin.gem_name} (#{plugin.version})" +- else + = alert_line "fa-check text-muted", t('terms.no_alert') %li{class: "divider"} @@ -19,5 +23,8 @@ - if uninstalling_gem? %span{class: "badge pull-right"}= uninstalling_gems.length -- uninstalling_gems.each do |plugin| - = alert_line 'fa-spinner fa-spin', plugin.gem_name +- if uninstalling_gem? + - uninstalling_gems.each do |plugin| + = alert_line 'fa-spinner fa-spin', plugin.gem_name +- else + = alert_line "fa-check text-muted", t('terms.no_alert') diff --git a/config/locales/translation_ja.yml b/config/locales/translation_ja.yml index a61fbfd..5e51817 100644 --- a/config/locales/translation_ja.yml +++ b/config/locales/translation_ja.yml @@ -12,6 +12,7 @@ ja: plugins: &plugins プラグイン misc: &misc その他 fluent_version: "fluentd %{version}" + no_alert: なし plugins: common: &common