Support FA5 SVG icons

Support FA5 SVG icons

From c6f21b667add6bdb43450c879e68074c4e631233 Mon Sep 17 00:00:00 2001
From: Penar Musaraj <pmusaraj@gmail.com>
Date: Wed, 7 Nov 2018 09:27:15 -0500
Subject: [PATCH] Support FA5 SVG icons


diff --git a/plugin.rb b/plugin.rb
index aab4aed..5b01a2c 100644
--- a/plugin.rb
+++ b/plugin.rb
@@ -9,6 +9,9 @@ enabled_site_setting :assign_enabled
 register_asset 'stylesheets/assigns.scss'
 register_asset 'stylesheets/mobile/assigns.scss', :mobile
 
+register_svg_icon "user-plus" if respond_to?(:register_svg_icon)
+register_svg_icon "user-times" if respond_to?(:register_svg_icon)
+
 load File.expand_path('../lib/discourse_assign/engine.rb', __FILE__)
 load File.expand_path('../lib/discourse_assign/helpers.rb', __FILE__)

GitHub

2 Likes