"og:site_name" => t("layouts.project_name.title"),
"og:title" => [t("layouts.project_name.title"), title].compact.join(" | "),
"og:type" => "website",
- "og:image" => image_path("osm_logo_256.png", :host => SERVER_URL, :protocol => "http"),
- "og:image:secure_url" => image_path("osm_logo_256.png", :host => SERVER_URL, :protocol => "https"),
+ "og:image" => image_url("osm_logo_256.png", :protocol => "http"),
+ "og:image:secure_url" => image_url("osm_logo_256.png", :protocol => "https"),
"og:url" => url_for(:host => SERVER_URL),
"og:description" => t("layouts.intro_text")
}
feed.title changeset_list_title(params, @user)
feed.updated @edits.map { |e| [e.created_at, e.closed_at].max }.max
- feed.icon image_path("favicon.ico", :host => SERVER_URL)
- feed.logo image_path("mag_map-rss2.0.png", :host => SERVER_URL)
+ feed.icon image_url("favicon.ico")
+ feed.logo image_url("mag_map-rss2.0.png")
feed.rights :type => "xhtml" do |xhtml|
xhtml.a :href => "http://creativecommons.org/licenses/by-sa/2.0/" do |a|
- a.img :src => image_path("cc_button.png", :host => SERVER_URL), :alt => "CC by-sa 2.0"
+ a.img :src => image_url("cc_button.png"), :alt => "CC by-sa 2.0"
end
end
xml.description @description
xml.link url_for(:action => "list", :host => SERVER_URL)
xml.image do
- xml.url image_path("mag_map-rss2.0.png", :host => SERVER_URL)
+ xml.url image_url("mag_map-rss2.0.png")
xml.title @title
xml.width "100"
xml.height "100"
xml.link url_for(:controller => :trace, :action => :list, :only_path => false)
xml.image do
- xml.url image_path("mag_map-rss2.0.png", :host => SERVER_URL)
+ xml.url image_url("mag_map-rss2.0.png")
xml.title t("trace.georss.title")
xml.width 100
xml.height 100