mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-26 02:33:03 -04:00
* Implement activities * Add activities to timeline * Add factory * Add coverage * Fix misc issues * Activities display * Add activities to garden and plantings * Add activities to garden and plantings * Add planting * Add to planting, harvest show * More CRUD * More CRUD * index * index * Extract card view * Permissions * Add edit * Remove workaround fro vs code * Fix title * CSV * CSV * Add RSS, ical * Extend ical slightly * Cleanup * Rubocop * Remove doubled form * Change icon * Fix short description * Add menus * Put homepage widget in * Add activity icon - MIT licenced - https://www.svgrepo.com/svg/336823/plan * Naming * Missing files * Revert VS Code lag induced change * Update app/views/home/_harvests.html.haml * Update activities_controller.rb * Update activities_controller.rb * Update app/controllers/activities_controller.rb * Update index.html.haml * Apply suggestions from code review * Apply suggestions from code review * Typo * Translation * Apply suggestions from code review * Update app/views/plantings/index.ics.erb * Update app/models/activity.rb * Update plantings_spec.rb * Update plantings_spec.rb * We are now rendering an extra event, so check the next one for the old behaviour
44 lines
1.5 KiB
Plaintext
44 lines
1.5 KiB
Plaintext
- content_for :title, title('activities', @owner, nil, @planting)
|
|
|
|
- content_for :breadcrumbs do
|
|
- if @owner
|
|
%li.breadcrumb-item= link_to 'Activities', activities_path
|
|
%li.breadcrumb-item.active= link_to "#{@owner}'s activities", activities_path(owner: @owner)
|
|
- else
|
|
%li.breadcrumb-item.active= link_to 'Activities', activities_path
|
|
|
|
.row
|
|
.col-md-2
|
|
%h1
|
|
= activity_icon
|
|
= title('activities', @owner, nil, @planting)
|
|
= render 'layouts/nav', model: Activity
|
|
= link_to show_inactive_tickbox_path('activities', owner: @owner, crop: nil, show_all: @show_all) do
|
|
= check_box_tag 'active', 'all', @show_all
|
|
include finished activities
|
|
%hr
|
|
- if @owner.present?
|
|
= render @owner, cached: true
|
|
|
|
%section.open-data
|
|
%h2 Open Data
|
|
%p= t('label.data')
|
|
- ['csv', 'json', 'rss'].each do |format|
|
|
.badge.badge-info
|
|
= link_to (@owner ? member_activities_path(@owner, format: format) : activities_path(format: format)) do
|
|
= icon 'fas', format.to_s
|
|
= format.upcase
|
|
- if @owner
|
|
.badge.badge-info= link_to "iCal", member_activities_path(@owner, format: 'ics', protocol: 'webcal', only_path: false)
|
|
.badge.badge-success= link_to 'API Methods', '/api-docs'
|
|
|
|
.col-md-10
|
|
|
|
%section
|
|
%h2= title('activities', @owner, nil, @planting)
|
|
= will_paginate @activities
|
|
.index-cards
|
|
- @activities.each do |a|
|
|
= render 'activities/card', activity: a
|
|
= will_paginate @activities
|