From 72cc886a4eca0cb8474200ce2f0a97d6fd75dcaf Mon Sep 17 00:00:00 2001 From: Yukimi Kazari Date: Tue, 6 Jun 2017 17:30:49 -0400 Subject: [PATCH] Added Rateing icon --- app/helpers/PostHelper.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/helpers/PostHelper.php b/app/helpers/PostHelper.php index 1a3a4fa..5a0b407 100755 --- a/app/helpers/PostHelper.php +++ b/app/helpers/PostHelper.php @@ -101,13 +101,13 @@ class PostHelper extends Rails\ActionView\Helper else $ddl_class .= ($post->width > 1920 || $post->height > 1500 )? " largeimg":" smallimg"; - if ($post->rating = s) + if ($post->rating == "s") $ddl_class .= " rating-s"; - if ($post->rating = q) + if ($post->rating == "q") $ddl_class .= " rating-q"; - if ($post->rating = e) + if ($post->rating == e"") $ddl_class .= " rating-e"; if (!empty($options['similarity'])) {