 
             open_menu_on: 'activation'
 
-            selection_made_callback: update_opinion_views
+            selection_made_callback: (filter) =>
+              activate_opinion_view filter
+              @local.current_filter = filter
+              save @local
 
             render_anchor: ->
               
-              key = if current_filter?.label not in ['everyone', 'just you'] then "/translations/#{fetch('/subdomain').name}" else null
+              key = if (current_filter?.key or current_filter?.label) not in ['everyone', 'just_you', 'weighed_by_activity', 'weighed_by_recency'] then "/translations/#{fetch('/subdomain').name}" else null
               SPAN 
                 style: 
                   fontWeight: 'bold'      

                      user.tags.verified


window.opinion_trickle = -> 
  filter_out = fetch 'filtered'
  
  proposals = fetch '/proposals'

  users = {}
  for prop in proposals.proposals
    for o in prop.opinions
      users[o.user] = o.created_at or o.updated_at

  users = ([k,v] for k,v of users)
  users.sort (a,b) -> 
    i = new Date(a[1])
    j = new Date(b[1])
    i.getTime() - j.getTime()

  users = (u[0] for u in users)
  cnt = users.length

  steps = 1
  tick = (interval) => 
    if cnt >= 0
      setTimeout => 
        filter_out.users = {}
        for user, idx in users
          filter_out.users[user] = 1
          break if idx > cnt 

        cnt--
        #cnt -= Math.ceil(steps / 2)
        #tick(interval * .9)
        tick(interval * .9)
        steps++
        dirty = true
        setTimeout -> 
          if dirty
            save filter_out
            dirty = false
        , 2000
      , interval

  tick 1000


window.OpinionViews = OpinionViews

            # fontSize: 20
            position: 'relative'

          TRANSLATE "engage.opinion_filter.label", 'show opinion of' 
          
          ": "

