Skip to content
Permalink
Browse files

fix: wrong path for SVG

  • Loading branch information...
Christian Kruse
Christian Kruse committed Aug 23, 2019
1 parent 354aab3 commit 6c96beb763b7e63adb06ec21e9e79cbe9f1cfdab
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/cforum_web/templates/users/user/show.html.eex
  2. +1 −1 lib/cforum_web/views/voting_area_view.ex
@@ -157,7 +157,7 @@
</p>


<h2 class="cf-heading"><%= gettext("Badges") %> <%= link(to: Routes.page_path(@conn, :help) <> "#badges", title: gettext("info")) do %><%= img_tag(Routes.static_path(@conn, "/images/cforum-voting-area-icons.svg#info-standard"), class: "cf-info-icon") %><% end %></h2>
<h2 class="cf-heading"><%= gettext("Badges") %> <%= link(to: Routes.page_path(@conn, :help) <> "#badges", title: gettext("info")) do %><%= img_tag(Routes.static_path(@conn, "/images/voting-area-icons.svg#info-standard"), class: "cf-info-icon") %><% end %></h2>

<%= if Helpers.blank?(@badges) do %>
<p><%= gettext("no badges so far") %></p>
@@ -16,7 +16,7 @@ defmodule CforumWeb.VotingAreaView do
[
{:safe,
"<svg width=\"150\" height=\"150\" viewBox=\"0 0 150 150\" xmlns=\"http://www.w3.org/2000/svg\"><use xlink:href=\""},
Routes.static_path(conn, "/images/cforum-voting-area-icons.svg"),
Routes.static_path(conn, "/images/voting-area-icons.svg"),
"#",
path,
{:safe, "\"></use></svg>"}

0 comments on commit 6c96beb

Please sign in to comment.
You can’t perform that action at this time.