Skip to content

Commit

Permalink
Remove support for type specific comment form info
Browse files Browse the repository at this point in the history
  • Loading branch information
mo-nathan committed Mar 29, 2024
1 parent 70cf276 commit 20124b6
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 55 deletions.
35 changes: 0 additions & 35 deletions app/views/controllers/comments/_object.html.erb
Original file line number Diff line number Diff line change
@@ -1,38 +1,3 @@
<%= case object.class.name

when "Location"
render(partial: "locations/show/location", object: object)

when "LocationDescription"
render(partial: "descriptions/description_details_and_alts_panel")

when "Name"
str = render(partial: "names/show/nomenclature",
locals: { name: object, synonyms: true })
if object.has_notes?
str += tag.p("#{:show_name_notes.t}:")
str += notes_panel(object.notes.tpl)
end
content_tag(:div, str, class: "name-section m-3")

when "NameDescription"
render(partial: "descriptions/description_details_and_alts_panel")

when "Observation"
render(partial: "observations/show/observation_details",
locals: { obs: object })

when "Project"
render(partial: "projects/project", object: object)

when "SpeciesList"
render(partial: "species_lists/species_list", object: object)

else
raise("We appear to have forgotten to tell add/edit_comment " +
"how to display objects of type \"#{object.class.name}\".")
end %>
<%= render(partial: "comments/comments_for_object",
locals: { object: object, comments: @comments,
controls: false, limit: 10 }) %>
6 changes: 0 additions & 6 deletions app/views/controllers/projects/_project.html.erb

This file was deleted.

14 changes: 0 additions & 14 deletions app/views/controllers/species_lists/_species_list.html.erb

This file was deleted.

0 comments on commit 20124b6

Please sign in to comment.