anthonymidili/Bullhorn

View on GitHub
app/views/sites/_dashboard.html.haml

Summary

Maintainability
Test Coverage
.row
  .col-12.col-md-5.col-lg-4
    .profile_head.mb-3
      .links-end.d-grid.gap-2
        = link_to @user, class: "btn btn-info btn-sm mb-1" do
          %i.fa-solid.fa-user
          View My Profile
      = render 'users/avatar_info', user: @user
  .col-12.col-md-7.col-lg-8
    %h2 Community Feed
    - if @posts.empty?
      .callout
        %p Start following users...
        = link_to users_path, title: 'Explore Users', class: "btn btn-primary btn-lg" do
          %i.fa-solid.fa-users
          Explore Users
    = turbo_frame_tag "posts" do
      = render @posts
    -# Infinate scroll posts with turbo.
    = render "infinate_scroll/load_more"

= turbo_frame_tag "new_post" do
  = render "posts/new_link"