.items-preview-header
  - if visualizations
    %a.btn.btn-default.btn-transparent{ href: "#{params[:controller] == 'pages' ? '/explore/stories' : '/users/'+params[:id]+'/stories'}" }
      Stories
    .btn.btn-default.btn-primary
      Visualizations
  - else
    .btn.btn-default.btn-primary
      Stories
    %a.btn.btn-default.btn-transparent{ href: "#{params[:controller] == 'pages' ? '/explore/visualizations' : '/users/'+params[:id]+'/visualizations'}" }
      Visualizations
  .search-input.pull-right
    .input-group
      %input.form-control{:type => "text"}
      %span.input-group-btn
        %button.btn.btn-default{:type => "button"}
          %span.search-icon
  .items-orderby.pull-right
    Order by
    %a.active{href: '#', title: 'The popularity is based on the number of embeded & social shares', data: {toggle: 'tooltip', placement: 'bottom'}}
      Popularity
    %a{href: '#', title: 'Most recent items first', data: {toggle: 'tooltip', placement: 'bottom'}}
      Most recent
.items-preview-header
  - if visualizations
    %a.btn.btn-default.btn-transparent{ href: "#{params[:controller] == 'pages' ? '/explore/stories' : '/users/'+params[:id]+'/stories'}" }
      Stories
    .btn.btn-default.btn-primary
      Visualizations
  - else
    .btn.btn-default.btn-primary
      Stories
    %a.btn.btn-default.btn-transparent{ href: "#{params[:controller] == 'pages' ? '/explore/visualizations' : '/users/'+params[:id]+'/visualizations'}" }
      Visualizations
  .search-input.pull-right
    .input-group
      %input.form-control{:type => "text"}
      %span.input-group-btn
        %button.btn.btn-default{:type => "button"}
          %span.search-icon
  / .items-orderby.pull-right
  /   Order by
  /   %a.active{href: '#', title: 'The popularity is based on the number of embeded & social shares', data: {toggle: 'tooltip', placement: 'bottom'}}
  /     Popularity
  /   %a{href: '#', title: 'Most recent items first', data: {toggle: 'tooltip', placement: 'bottom'}}
  /     Most recent
Comment order select in explore page
Comment order select in explore page
