mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-27 03:02:43 -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
21 lines
907 B
Plaintext
21 lines
907 B
Plaintext
<?xml version="1.0" encoding="UTF-8"?>
|
|
%rss{ version: 2.0 }
|
|
%channel
|
|
%title
|
|
Recent activities from #{@owner ? @owner : 'all members'} (#{ENV['GROWSTUFF_SITE_NAME']})
|
|
%link= activities_url
|
|
- @activities.each do |activity|
|
|
%item
|
|
%title #{activity['name']}
|
|
%pubdate= activity['created_at'].to_fs(:rfc822)
|
|
%description
|
|
:escaped
|
|
<p>Category: #{activity['category']}</p>
|
|
<p>Due Date: #{activity['due_date'] ? activity['due_date'] : 'unknown' }</p>
|
|
<p>Garden: #{activity['garden_name'] ? activity['garden_name'] : 'N/A' }</p>
|
|
<p>Planting: #{activity['planting_name'] ? activity['planting_name'] : 'N/A' }</p>
|
|
:escaped_markdown
|
|
#{ strip_tags markdownify(activity['description']) }
|
|
%link= activity_url(slug: activity['slug'])
|
|
%guid= activity_url(slug: activity['slug'])
|