diff options
author | Jochen Topf <jochen@topf.org> | 2014-02-18 18:14:07 +0100 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2014-02-18 18:14:07 +0100 |
commit | 15c9d06172f052d1bb53e6b0a218a28e1e6b21a7 (patch) | |
tree | 850ba285685ff55319a99cf834a1c769f0212750 /web | |
parent | 97bee38b749e94dd649a8b61254381d0bfe46e57 (diff) | |
download | taginfo-15c9d06172f052d1bb53e6b0a218a28e1e6b21a7.tar taginfo-15c9d06172f052d1bb53e6b0a218a28e1e6b21a7.tar.gz |
Send image URLs in overview tabs without "http:"
This way they are included as http or https, as appropriate.
Diffstat (limited to 'web')
-rw-r--r-- | web/views/key.erb | 2 | ||||
-rw-r--r-- | web/views/relation.erb | 2 | ||||
-rw-r--r-- | web/views/tag.erb | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/web/views/key.erb b/web/views/key.erb index 298258f..0c1c2f7 100644 --- a/web/views/key.erb +++ b/web/views/key.erb @@ -36,7 +36,7 @@ </div> <% if @image_url %> <div class="wiki_image"> - <img src="<%= @image_url %>" alt=""/> + <img src="<%= @image_url.sub(/^http:/, '') %>" alt=""/> </div> <% end %> <h2><%= h(t.taginfo.overview) %></h2> diff --git a/web/views/relation.erb b/web/views/relation.erb index 888772b..03cc1e9 100644 --- a/web/views/relation.erb +++ b/web/views/relation.erb @@ -21,7 +21,7 @@ <div id="overview"> <% if @image_url %> <div class="wiki_image"> - <img src="<%= @image_url %>" alt=""/> + <img src="<%= @image_url.sub(/^http:/, '') %>" alt=""/> </div> <% end %> <h2><%= h(t.pages.relation.overview.title) %></h2> diff --git a/web/views/tag.erb b/web/views/tag.erb index eca2ad8..f8a9d7a 100644 --- a/web/views/tag.erb +++ b/web/views/tag.erb @@ -30,7 +30,7 @@ <div id="overview"> <% if @image_url %> <div class="wiki_image"> - <img src="<%= @image_url %>" alt=""/> + <img src="<%= @image_url.sub(/^http:/, '') %>" alt=""/> </div> <% end %> <h2><%= h(t.taginfo.overview) %></h2> |