assemblymade/coderwall

View on GitHub
app/views/teams/index.html.haml

Summary

Maintainability
Test Coverage
-content_for :mixpanel do
  =record_view_event('teams page')

=content_for :body_id do
  featured-team-grid

.second-level-header.cf
  / %h1 Amazing Teams
  %form.network-search{:name => "form"}
    %input{:type => 'text', :placeholder => 'search teams', :id => "teams-search"}
    %input{:type => "submit", :class => "submit", :value => " "}
  %ul
    %li=link_to("Hiring", teams_path, :class => featured_teams_css_class)

#search-results
  =link_to(message_to_create_ehanced_team, employers_path, :class => 'feature-signup track', 'data-action' => 'upgrade team', 'data-from' => 'teams page') unless message_to_create_ehanced_team.nil?

  -#%a.teams-filter{:href => '/'}
  -#  %h1
  -#    Teams in
  -#    %span
  -#      San Francisco

  %ul.featured-team-list.cf
    =render collection: @featured_teams, partial: 'featured_team'

  %ul.featured-team-list.normal-view-three.cf
    =render collection: @teams, partial: 'team_card' unless @teams.blank?