Translations for articles-pages.

This commit is contained in:
Benjamin Meichsner 2009-02-10 13:26:10 +01:00
parent 6202e05841
commit 053593f718
12 changed files with 89 additions and 104 deletions

View file

@ -107,14 +107,18 @@ module ApplicationHelper
icons = { :delete => { :file => 'b_drop.png', :alt => 'Löschen'},
:edit => { :file => 'b_edit.png', :alt => 'Bearbeiten'}}
options.merge!({:size => '16x16',:border => "0"})
options.merge!({:alt => icons[name][:alt]}) unless options[:alt]
options.merge!({:alt => icons[name][:alt], :title => icons[name][:alt]}) unless options[:alt]
image_tag icons[name][:file], options
end
# Remote links with default 'loader'.gif during request
def remote_link_to(text, options={})
remote_options = {:before => "Element.show('loader')", :success => "Element.hide('loader')"}
remote_options = {
:before => "Element.show('loader')",
:success => "Element.hide('loader')",
:method => :get
}
link_to_remote(text, remote_options.merge(options))
end