From 3b3e216d83d4a15f5a33e42bc8ba783242d094ac Mon Sep 17 00:00:00 2001 From: Felix Niklas Date: Mon, 19 Oct 2015 17:15:06 +0200 Subject: [PATCH] direct link icons.svg spritemap with fallback for legacy browsers --- .../javascripts/app/lib/app_post/utils.coffee | 3 +- app/views/init/index.html.erb | 35 ++++++++++++++++--- 2 files changed, 33 insertions(+), 5 deletions(-) diff --git a/app/assets/javascripts/app/lib/app_post/utils.coffee b/app/assets/javascripts/app/lib/app_post/utils.coffee index 882a8a988..d113687a8 100644 --- a/app/assets/javascripts/app/lib/app_post/utils.coffee +++ b/app/assets/javascripts/app/lib/app_post/utils.coffee @@ -594,7 +594,8 @@ class App.Utils num @icon: (name, className = '') -> - "" + path = if svgPolyfill then '' else 'assets/images/icons.svg' + "" @getScrollBarWidth: -> $outer = $('
').css( diff --git a/app/views/init/index.html.erb b/app/views/init/index.html.erb index 6a366bc64..69595b00a 100644 --- a/app/views/init/index.html.erb +++ b/app/views/init/index.html.erb @@ -1,8 +1,35 @@ -
- <%= inline_svg('icons.svg') %> -
+ +
- +
Loading...
\ No newline at end of file