summaryrefslogtreecommitdiff
path: root/web/views/relation.erb
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2014-02-18 18:14:07 +0100
committerJochen Topf <jochen@topf.org>2014-02-18 18:14:07 +0100
commit15c9d06172f052d1bb53e6b0a218a28e1e6b21a7 (patch)
tree850ba285685ff55319a99cf834a1c769f0212750 /web/views/relation.erb
parent97bee38b749e94dd649a8b61254381d0bfe46e57 (diff)
downloadtaginfo-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/views/relation.erb')
-rw-r--r--web/views/relation.erb2
1 files changed, 1 insertions, 1 deletions
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>