From 18a111418be4977b730edee57f4c025de62a8570 Mon Sep 17 00:00:00 2001 From: Ali Spittel Date: Fri, 15 Mar 2019 13:59:23 -0400 Subject: [PATCH] a couple bug fixes for the pro dashboard! (#2070) * give the pro dashboard a dashboard-y makeover * make background color for the cards white * fix a couple bugs, make greater greator or equal * add markup and styling for skip link (#2062) * fix a couple bugs, make greater greator or equal --- app/views/dashboards/pro.html.erb | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/app/views/dashboards/pro.html.erb b/app/views/dashboards/pro.html.erb index fd4be1f41..a4af1034c 100644 --- a/app/views/dashboards/pro.html.erb +++ b/app/views/dashboards/pro.html.erb @@ -12,8 +12,8 @@ <%= @this_week_reactions_count %> <% week_reaction_rate = @this_week_reactions_count.to_f / @last_week_reactions_count.to_f %> -
"> - <%= week_reaction_rate > 1 ? "\u25b2" : "\u25BC" %> <%= @last_week_reactions_count.positive? ? (week_reaction_rate * 100).round(2) : "infinity " %>% +
"> + <%= week_reaction_rate >= 1 ? "\u25b2" : "\u25BC" %> <%= @last_week_reactions_count.positive? ? (week_reaction_rate * 100).round(2) : "infinity " %>%
@@ -22,8 +22,8 @@ <%= @this_month_reactions_count %>
<% month_reaction_rate = @this_month_reactions_count.to_f / @last_month_reactions_count.to_f %> -
"> - <%= month_reaction_rate > 1 ? "\u25b2" : "\u25BC" %> <%= @last_month_reactions_count.positive? ? (month_reaction_rate * 100).round(2) : "infinity " %>% +
"> + <%= month_reaction_rate >= 1 ? "\u25b2" : "\u25BC" %> <%= @last_month_reactions_count.positive? ? (month_reaction_rate * 100).round(2) : "infinity " %>%
@@ -32,8 +32,8 @@ <%= @this_week_followers_count %>
<% week_followers_rate = @this_week_followers_count.to_f / @last_week_followers_count.to_f %> -
"> - <%= week_followers_rate > 1 ? "\u25b2" : "\u25BC" %> <%= @last_week_followers_count.positive? ? (week_followers_rate * 100).round(2) : "infinity " %>% +
"> + <%= week_followers_rate >= 1 ? "\u25b2" : "\u25BC" %> <%= @last_week_followers_count.positive? ? (week_followers_rate * 100).round(2) : "infinity " %>%
@@ -42,8 +42,8 @@ <%= @this_month_followers_count %>
<% month_followers_rate = @this_month_followers_count.to_f / @last_month_followers_count.to_f %> -
"> - <%= month_followers_rate > 1 ? "\u25b2" : "\u25BC" %> <%= @last_month_followers_count.positive? ? (month_followers_rate * 100).round(2) : "infinity " %>% +
"> + <%= month_followers_rate >= 1 ? "\u25b2" : "\u25BC" %> <%= @last_month_followers_count.positive? ? (month_followers_rate * 100).round(2) : "infinity " %>%
@@ -52,8 +52,8 @@ <%= @this_week_comments_count %>
<% week_comments_rate = @this_week_comments_count.to_f / @last_week_comments_count.to_f %> -
"> - <%= week_comments_rate > 1 ? "\u25b2" : "\u25BC" %> <%= @last_week_followers_count.positive? ? (week_comments_rate * 100).round(2) : "infinity " %>% +
"> + <%= week_comments_rate >= 1 ? "\u25b2" : "\u25BC" %> <%= @last_week_followers_count.positive? ? (week_comments_rate * 100).round(2) : "infinity " %>%
@@ -62,8 +62,8 @@ <%= @this_month_comments_count %>
<% month_comments_rate = @this_month_comments_count.to_f / @last_month_comments_count.to_f %> -
"> - <%= month_comments_rate > 1 ? "\u25b2" : "\u25BC" %> <%= @last_month_comments_count.positive? ? (month_comments_rate * 100).round(2) : "infinity " %>% +
"> + <%= month_comments_rate >= 1 ? "\u25b2" : "\u25BC" %> <%= @last_month_comments_count.positive? ? (month_comments_rate * 100).round(2) : "infinity " %>%