app/helpers/umlaut/footer_helper.rb in umlaut-3.3.1 vs app/helpers/umlaut/footer_helper.rb in umlaut-4.0.0.beta1
- old
+ new
@@ -9,11 +9,11 @@
# object, as there will be in ResolveController.
def render_service_credits
if @collection
content = "".html_safe
- content << "Powered by ".html_safe + link_to("Umlaut", "https://github.com/team-umlaut/umlaut") + ". ".html_safe
+ content << t('umlaut.misc.powered_by_umlaut').html_safe + " " + link_to("Umlaut", "https://github.com/team-umlaut/umlaut") + ". ".html_safe
credit_segments = []
services = @collection.instantiate_services!
@@ -29,13 +29,11 @@
end
end
if credit_segments.length > 0
- content << "Using services from ".html_safe
- content << credit_segments.join(", ").html_safe
- content << " and others.".html_safe
+ content << t("umlaut.misc.credits_html", :credits => safe_join(credit_segments, ", "))
end
return content
end
end
@@ -63,11 +61,11 @@
def link_to_toggle_debug_info(options = {})
options = {:text => "[D]", :title => "Toggle on-screen debug info"}.merge(options)
text = options.delete(:text)
- javascript = " jQuery('.debug_info').toggle();"
+ options[:onclick] ||= " jQuery('.debug_info').toggle();"
- return link_to_function(text, javascript, options)
+ return link_to(text, "#", options)
end
end