<!-- -PHCDEV- Title Variables --> <% phc_title "Portfolio Manager" %> <% phc_title_tagline "Project Post Index" %> <% phc_breadcrumb_one link_to "Project List", phcdevworks_portfolio.project_posts_path %> <% phc_breadcrumb_two yield(:phc_title_tagline) %> <!-- -PHCDEV- Title Variables --> <!-- -PHCDEV- Bradcrumbs --> <ol class="breadcrumb float-xl-end"> <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li> <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li> </ol> <!-- -PHCDEV- Bradcrumbs --> <!-- -PHCDEV- Header --> <h1 class="page-header"><%= yield(:phc_title) %></h1> <!-- -PHCDEV- Header --> <!-- -PHCDEV- Panel --> <div class="panel panel-inverse"> <!-- -PHCDEV- Panel - Heading --> <div class="panel-heading"> <h4 class="panel-title"><%= yield(:phc_title) %></h4> </div> <!-- -PHCDEV- Panel - Heading --> <!-- -PHCDEV- Panel - Body --> <div class="panel-body"> <!-- -PHCDEV- Index - Table --> <div class="table-responsive"> <table class="table table-striped table-bordered"> <thead> <tr> <th>Project Title</th> <th>Project Description</th> <th>Project Status</th> <th></th> </tr> </thead> <tbody> <% @project_posts.each do |project_post| %> <tr> <td><%= project_post.project_post_title %></td> <td><%= truncate(project_post.project_post_description, :length => 80, :escape => false) %></td> <td><%= project_post.project_post_status.capitalize %></td> <td> <div class="btn-group d-flex" role="group"> <%= link_to "Update Project", edit_project_post_path(project_post), class: "btn btn-purple btn-xs" %> <%= link_to "Remove Project", project_post, method: :delete, data: { confirm: "Are you sure? This will also remove the Members addresses and listings. This action cannot be reversed." }, class: "btn btn-danger btn-xs" %> </div> </td> </tr> <% end %> </tbody> </table> </div> <!-- -PHCDEV- Index - Table --> <!-- -PHCDEV- New Button --> <%= link_to phcdevworks_portfolio.new_project_post_path, class: "btn btn-primary btn-sm" do %> <i class="fad fa-plus-circle"></i> Add a New Project <% end %> <!-- -PHCDEV- New Button --> </div> <!-- -PHCDEV- Panel - Body --> </div> <!-- -PHCDEV- Panel -->