mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-26 18:56:06 -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
48 lines
998 B
Plaintext
48 lines
998 B
Plaintext
csv.headers :id,
|
|
:growstuff_url,
|
|
:name,
|
|
:category,
|
|
:description,
|
|
:owner_id,
|
|
:owner_name,
|
|
:garden_id,
|
|
:garden_name,
|
|
:planting_id,
|
|
:planting_name,
|
|
:due_date,
|
|
:finished,
|
|
:date_added,
|
|
:last_modified,
|
|
:license
|
|
|
|
@activities.each do |a|
|
|
csv.row a do |csv, activity|
|
|
|
|
csv.cell :id
|
|
csv.cell :growstuff_url, activity_url(a.slug)
|
|
|
|
csv.cell :name, a.description
|
|
csv.cell :category, a.description
|
|
csv.cell :description, a.description
|
|
|
|
csv.cell :owner_id, a.owner_id
|
|
csv.cell :owner_name, a.owner_login_name
|
|
|
|
csv.cell :garden_id, a.garden_id
|
|
csv.cell :garden_name, a.garden_name
|
|
|
|
csv.cell :planting_id, a.planting_id
|
|
csv.cell :planting_name, a.planting_name
|
|
|
|
csv.cell :due_date, a.due_date ? a.due_date : ''
|
|
|
|
csv.cell :finished
|
|
|
|
csv.cell :date_added, Time.at(a.created_at).to_fs(:db)
|
|
csv.cell :last_modified, Time.at(a.updated_at).to_fs(:db)
|
|
|
|
csv.cell :license, "CC-BY-SA Growstuff http://growstuff.org/"
|
|
|
|
end
|
|
end
|