From 491c5dc07858ae7ca706a651fb698d7ab64240ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Mu=C3=B1oz?= Date: Tue, 9 Feb 2016 02:59:04 -0500 Subject: [PATCH] Fix an SVG bug to improve browser support SVG is case-sensitive so we need to use camel casing in the tag. --- app/views/badges/render.haml | 2 +- app/views/badges/static.haml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/badges/render.haml b/app/views/badges/render.haml index 0ccd79e..1878414 100644 --- a/app/views/badges/render.haml +++ b/app/views/badges/render.haml @@ -1,7 +1,7 @@ !!! XML %svg{height: "20", width: width, xmlns: "http://www.w3.org/2000/svg", "xmlns:xlink" => "http://www.w3.org/1999/xlink"} %a{"xlink:href"=> absolute_url(:badges, :show, id: params[:id]), target: '_blank'} - %lineargradient#a{x2: "0", y2: "100%"} + %linearGradient#a{x2: "0", y2: "100%"} %stop{offset: "0", "stop-color" => "#bbb", "stop-opacity" => ".1"} %stop{offset: "1", "stop-opacity" => ".1"} %rect{fill: "#555", height: "20", rx: "3", width: width} diff --git a/app/views/badges/static.haml b/app/views/badges/static.haml index 857aa12..a513266 100644 --- a/app/views/badges/static.haml +++ b/app/views/badges/static.haml @@ -1,7 +1,7 @@ !!! XML %svg{height: "20", width: width, xmlns: "http://www.w3.org/2000/svg", "xmlns:xlink" => "http://www.w3.org/1999/xlink"} %a{"xlink:href"=> absolute_url(:static, :index), target: '_blank'} - %lineargradient#a{x2: "0", y2: "100%"} + %linearGradient#a{x2: "0", y2: "100%"} %stop{offset: "0", "stop-color" => "#bbb", "stop-opacity" => ".1"} %stop{offset: "1", "stop-opacity" => ".1"} %rect{fill: "#555", height: "20", rx: "3", width: width}