code9ty/website

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

Summary

Maintainability
Test Coverage
- provide(:title, 'Projects')
.medium-6.columns
  %h2 Available projects
  %table
    %thead
      %tr
        %th Project
        %th Description
        %th Status

    %tbody#projects
      - @projects.each do |project|
        - unless current_user.projects.include? project
          = render "project", project: project

.medium-6.columns
  %h2 Assigned Projects
  %table
    %thead
      %tr
        %th Project
        %th Due Date
        %th Status
        %th Action

    %tbody#bids
      - @bids.each do |bid|
        = render "bid", bid: bid