 
 
 default_weights = 
-  weighed_by_recency: 
-    key: 'weighed_by_recency'
-    name: 'Recent'
-    label: 'Give greater weight to newer opinions.'
-    weight: (u, opinion, proposal) ->
-      if !proposal.time_created 
-        proposals = fetch '/proposals'
-        earliest = null
-        for p in proposals.proposals 
-          t = new Date(proposal.created_at).getTime()
-          if !earliest || earliest > t
-            earliest = t 
-          proposal.time_created = earliest
-
-      latest = Date.now()
-      # if !proposal.latest_opinion 
-      #   opinions = opinionsForProposal proposal
-      #   latest = null
-      #   for o in opinions
-      #     if !latest || o.updated_at > latest.updated_at
-      #       latest = o
-      #   proposal.latest_opinion = new Date(latest.updated_at).getTime()
-
-      # latest = proposal.latest_opinion
-      earliest = proposal.time_created
-      ot = new Date(opinion.updated_at).getTime()
-
-      .1 + .9 * (ot - earliest) / (latest - earliest)
+  # weighed_by_recency: 
+  #   key: 'weighed_by_recency'
+  #   name: 'Recent'
+  #   label: 'Give greater weight to newer opinions.'
+  #   weight: (u, opinion, proposal) ->
+  #     if !proposal.time_created 
+  #       proposals = fetch '/proposals'
+  #       earliest = null
+  #       for p in proposals.proposals 
+  #         t = new Date(proposal.created_at).getTime()
+  #         if !earliest || earliest > t
+  #           earliest = t 
+  #         proposal.time_created = earliest
+
+  #     latest = Date.now()
+  #     # if !proposal.latest_opinion 
+  #     #   opinions = opinionsForProposal proposal
+  #     #   latest = null
+  #     #   for o in opinions
+  #     #     if !latest || o.updated_at > latest.updated_at
+  #     #       latest = o
+  #     #   proposal.latest_opinion = new Date(latest.updated_at).getTime()
+
+  #     # latest = proposal.latest_opinion
+  #     earliest = proposal.time_created
+  #     ot = new Date(opinion.updated_at).getTime()
+
+  #     .1 + .9 * (ot - earliest) / (latest - earliest)
 
   weighed_by_substantiated: 
     key: 'weighed_by_substantiated'
-    name: 'Substantiated'
-    label: 'Add weight to opinions that justify their stance with pro and/or con reasons.'
+    name: 'Gave reasons'
+    label: 'Add weight to opinions that explained their stance with pro and/or con reasons.'
     weight: (u, opinion, proposal) ->
       point_inclusions = Math.min(8,opinion.point_inclusions?.length or 0) 
       .1 + point_inclusions
+    icon: (color) -> 
+      color ?= 'black'
+      SVG
+        width: 23
+        height: 23
+        viewBox: "0 0 23 23"
+        dangerouslySetInnerHTML: __html: """
+          <g id="Group-8" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
+              <polygon id="Rectangle" stroke="#{color}" points="0 0 23 0 23 17.8367347 11.5 17.8367347 6.41522296 23 6.41522296 17.8367347 0 17.8367347"></polygon>
+              <ellipse id="Oval" fill="#{color}" cx="4.66666683" cy="8.43750016" rx="1.5333335" ry="1.43750016"></ellipse>
+              <line stroke="#{color}" x1="8.37575758" y1="8.5" x2="17.7575758" y2="8.5" id="Line-5" stroke="#979797" stroke-linecap="square"></line>
+              <ellipse id="Oval" fill="#{color}" cx="4.66666683" cy="3.43750016" rx="1.5333335" ry="1.43750016"></ellipse>
+              <line stroke="#{color}" x1="8.37575758" y1="3.5" x2="17.7575758" y2="3.5" id="Line-5" stroke="#979797" stroke-linecap="square"></line>
+              <ellipse id="Oval" fill="#{color}" cx="4.66666683" cy="13.4375002" rx="1.5333335" ry="1.43750016"></ellipse>
+              <line stroke="#{color}" x1="8.37575758" y1="13.5" x2="17.7575758" y2="13.5" id="Line-5" stroke="#979797" stroke-linecap="square"></line>
+          </g>
+        """    
 
   weighed_by_deliberative: 
     key: 'weighed_by_deliberative'
-    name: 'Deliberative'
+    name: 'Weighed tradeoffs'
     label: 'Add weight to opinions that acknowledge both pro and con tradeoffs.'
     weight: (u, opinion, proposal) ->
       point_inclusions = opinion.point_inclusions





OpinionViews = ReactiveComponent
  displayName: 'OpinionViews'

  render : -> 

    DIV 
      style: (@props.style or {})

              attributes.push _.extend {}, filter, 
                name: filter.label
                options: [true, false]

      if user_tags
        for name, tag of user_tags 

