use more beautiful close mark

This commit is contained in:
wvengen 2013-04-10 17:34:24 +02:00
parent a501fac76f
commit 6c65799025
9 changed files with 9 additions and 9 deletions

View file

@ -152,7 +152,7 @@ module ApplicationHelper
type = :success if type == :notice
type = :error if type == :alert
text = content_tag(:div,
content_tag(:button, I18n.t('ui.marks.close'), :class => "close", "data-dismiss" => "alert") +
content_tag(:button, I18n.t('ui.marks.close').html_safe, :class => "close", "data-dismiss" => "alert") +
message, :class => "alert fade in alert-#{type}")
flash_messages << text if message
end

View file

@ -2,7 +2,7 @@
= f.hidden_field :shared_updated_on
= f.hidden_field :supplier_id
.modal-header
= button_tag t('ui.marks.close'), class: 'close', data: {dismiss: 'modal'}
= button_tag t('ui.marks.close').html_safe, class: 'close', data: {dismiss: 'modal'}
%h3= t '.title'
.modal-body
= f.input :availability

View file

@ -1,6 +1,6 @@
= simple_form_for @order, url: update_note_finance_order_path(@order), remote: true, method: :put do |f|
.modal-header
= button_tag t('ui.marks.close'), class: 'close', data: {dismiss: 'modal'}
= button_tag t('ui.marks.close').html_safe, class: 'close', data: {dismiss: 'modal'}
%h3 Notiz bearbeiten
.modal-body
= f.input :note, input_html: {class: 'input-xlarge'}

View file

@ -1,6 +1,6 @@
= simple_form_for [:finance, @order, @order_article], remote: true do |form|
.modal-header
= button_tag t('ui.marks.close'), class: 'close', data: {dismiss: 'modal'}
= button_tag t('ui.marks.close').html_safe, class: 'close', data: {dismiss: 'modal'}
%h3= t '.title'
.modal-body
= form.input :units_to_order

View file

@ -1,6 +1,6 @@
= simple_form_for [:finance, @order, @order_article], remote: true do |form|
.modal-header
= button_tag t('ui.marks.close'), class: 'close', data: {dismiss: 'modal'}
= button_tag t('ui.marks.close').html_safe, class: 'close', data: {dismiss: 'modal'}
%h3= t '.title'
.modal-body
= form.input :article_id, as: :select, collection: new_order_articles_collection

View file

@ -1,6 +1,6 @@
= simple_form_for @invite, remote: true do |form|
.modal-header
= button_tag t('ui.marks.close'), class: 'close', data: {dismiss: 'modal'}
= button_tag t('ui.marks.close').html_safe, class: 'close', data: {dismiss: 'modal'}
%h3= t '.title'
.modal-body
= t('.body', group: @invite.group.name).html_safe

View file

@ -1,5 +1,5 @@
-# please polish the following line if you know how, same in view destroy
var errorDiv = $('<div class="alert fade in alert-error"><a class="close" data-dismiss="alert" href="#">#{t('ui.marks.close')}</a></div>');
var errorDiv = $('<div class="alert fade in alert-error"><a class="close" data-dismiss="alert" href="#">#{t('ui.marks.close').html_safe}</a></div>');
errorDiv.append(document.createTextNode('#{j(fail_msg)}'));
$('div.container-fluid').prepend(errorDiv);

View file

@ -1,5 +1,5 @@
-# please polish the following line if you know how, same in partial _destroy_fail
var successDiv = $('<div class="alert fade in alert-success"><a class="close" data-dismiss="alert" href="#">#{escape_javascript(t('ui.marks.close'))}</a></div>');
var successDiv = $('<div class="alert fade in alert-success"><a class="close" data-dismiss="alert" href="#">#{escape_javascript(t('ui.marks.close').html_safe)}</a></div>');
successDiv.append(document.createTextNode('#{escape_javascript(t('.notice', name: @article.name))}'));
$('div.container-fluid').prepend(successDiv);

View file

@ -312,5 +312,5 @@ de:
save: 'Speichern'
or_cancel: 'oder abbrechen'
marks:
close: 'x'
close: '&times;'