Files
growstuff/app/views/crops/index.html.haml
google-labs-jules[bot] 2742dba7fa feat: Add meta descriptions to pages
Adds a meta description tag to the landing, crops, plantings, harvests, seeds, and comments pages.

Also creates a new index page for comments.
2025-12-01 13:54:54 +00:00

28 lines
898 B
Plaintext

- content_for :title, t('.title')
- content_for :meta_description, "Browse and search for crops."
- content_for :buttonbar do
- if can? :wrangle, Crop
= link_to 'Wrangle Crops', wrangle_crops_path, class: 'btn btn-secondary'
= link_to 'Data Improvement', data_improvement_crops_path, class: 'btn btn-info'
- if can? :create, Crop
= link_to 'Add New Crop', new_crop_path, class: 'btn btn-primary'
- content_for :breadcrumbs do
%li.breadcrumb-item.active= link_to 'Crops', crops_path
%section.crops
%h2= t('.title')
= will_paginate @crops
.index-cards
- @crops.each do |c|
= render 'crops/thumbnail', crop: c
= will_paginate @crops
%ul.list-inline
%li The data on this page is available in the following formats:
%li= link_to "CSV", crops_path(format: 'csv')
%li= link_to "JSON", crops_path(format: 'json')
%li= link_to "RSS", crops_path(format: 'rss')