From a4106919944e8584793c12135d80bbb0fdd2e58c Mon Sep 17 00:00:00 2001 From: uu59 Date: Wed, 21 May 2014 15:45:21 +0900 Subject: [PATCH] Tweak notifications --- app/views/shared/_alerts.html.haml | 15 +++++++++++---- config/locales/translation_ja.yml | 1 + 2 files changed, 12 insertions(+), 4 deletions(-) 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