AgileVentures/MetPlus_PETS

View on GitHub
app/views/job_seekers/home.html.haml

Summary

Maintainability
Test Coverage
- provide(:person_home_active, 'active')

.row
  .col-sm-10.col-sm-offset-1.job-seeker-home.margin-top
    %ul.nav.nav-pills.custom-pills
      %li.active
        %a{ href: '#applications', data: { toggle: 'pill' } }
          Your Applications
      %li
        %a{ href: '#opportunities', data: { toggle: 'pill' } }
          New Job Opportunities
      %li
        %a{ href: '#profile', data: { toggle: 'pill' } }
          Your Profile

    .tab-content.tab-content-margin
      .tab-pane.fade.in.active#applications

        .pagination-div{ id: "applications-#{@application_type}",
                         data: { url: list_applications_path(@application_type,
                                                             @jobseeker) } }

      .tab-pane.fade#opportunities

        %span.text-muted.small
          (Jobs since last login shown in
          %span.recent-jobs yellow
          )

        .pagination-div{ id: 'recent-jobs',
                         data: { url: list_jobs_path(@recent_jobs_type) } }

      .tab-pane.fade#profile
        = button_to 'Edit Your Profile', edit_job_seeker_path(@jobseeker),
                    method: :get,
                    class: 'table_action_button btn btn-primary btn-sm pull-right'
        = render partial: 'info', locals: {job_seeker: @jobseeker,
                                         offer_download: false}
        .clearfix