anthonymidili/Recipedia

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

Summary

Maintainability
Test Coverage
- provide(:title, "Let's cook together")

.row.justify-content-center
  .col-md-8
    .center-text
      .title Recipedia
.row.mb-3
  .col-12
    .nav-buttons
      = link_to categories_path, class: 'btn btn-warning' do
        %i.fa.fa-list
        Browse by categories
      = link_to new_recipe_path, class: 'btn btn-danger' do
        %i.fa.fa-plus-circle
        Add a recipe
= turbo_stream_from "reviews"
.row
  .col-12
    %h1 Latest Recipes
.row
  = render @recipes
.row
  .col-12
    = paginate @recipes