Skip to content
This repository has been archived by the owner on Mar 20, 2018. It is now read-only.

Commit

Permalink
Adding more data to the dashboard to help with calculations.
Browse files Browse the repository at this point in the history
  • Loading branch information
bguthrie committed Sep 9, 2013
1 parent f94245c commit 04c019d
Showing 1 changed file with 40 additions and 4 deletions.
44 changes: 40 additions & 4 deletions app/views/admin/dashboard/index.html.haml
Expand Up @@ -36,17 +36,35 @@
%h3= float_to_percentage @statistics.nps_60m.nps

%tr.colorize{data: { colors: "0.0,0.035,0.05" }}
%td Sub
%td Sub/email
%td.point= float_to_percentage @statistics.nps_7d.sps
%td.point= float_to_percentage @statistics.nps_24h.sps
%td.point= float_to_percentage @statistics.nps_60m.sps

%tr.colorize{data: { colors: "0.01,0.005,0.0" }}
%td Unsub
%td Unsub/email
%td.point= float_to_percentage @statistics.nps_7d.ups
%td.point= float_to_percentage @statistics.nps_24h.ups
%td.point= float_to_percentage @statistics.nps_60m.ups

%tr
%td Total sub
%td.point= @statistics.nps_7d.subscribes
%td.point= @statistics.nps_24h.subscribes
%td.point= @statistics.nps_60m.subscribes

%tr
%td Total unsub
%td.point= @statistics.nps_7d.unsubscribes
%td.point= @statistics.nps_24h.unsubscribes
%td.point= @statistics.nps_60m.unsubscribes

%tr
%td Total emails
%td.point= @statistics.nps_7d.actions
%td.point= @statistics.nps_24h.actions
%td.point= @statistics.nps_60m.actions

%iframe.chart.span6{src: nps_chart}

%div.span6
Expand All @@ -68,17 +86,35 @@
%h3= float_to_percentage @statistics.npfs_60m.nps

%tr
%td Sub
%td Sub/share
%td.point= float_to_percentage @statistics.npfs_7d.sps
%td.point= float_to_percentage @statistics.npfs_24h.sps
%td.point= float_to_percentage @statistics.npfs_60m.sps

%tr
%td Unsub
%td Unsub/share
%td.point= float_to_percentage @statistics.npfs_7d.ups
%td.point= float_to_percentage @statistics.npfs_24h.ups
%td.point= float_to_percentage @statistics.npfs_60m.ups

%tr
%td Total sub
%td.point= @statistics.npfs_7d.subscribes
%td.point= @statistics.npfs_24h.subscribes
%td.point= @statistics.npfs_60m.subscribes

%tr
%td Total unsub
%td.point= @statistics.npfs_7d.unsubscribes
%td.point= @statistics.npfs_24h.unsubscribes
%td.point= @statistics.npfs_60m.unsubscribes

%tr
%td Total shares
%td.point= @statistics.npfs_7d.actions
%td.point= @statistics.npfs_24h.actions
%td.point= @statistics.npfs_60m.actions

%iframe.chart.span6{ src: facebook_actions_chart }


Expand Down

0 comments on commit 04c019d

Please sign in to comment.