joegattnet/joegattnet_v3

View on GitHub
app/views/notes/_related_notes_and_citations.html.slim

Summary

Maintainability
Test Coverage
- cache [cache_buster(1), note] do

  nav.references
    header
      h3 = title ||= t('notes.index.title')
    ul
      - note.related_notes.note.uniq.each do |note|
        li = link_to note.headline, note_or_feature_path(note)
      - note.related_notes.citation.uniq.each do |citation|
        li = link_to citation.headline, citation_path(citation)
      -# note.inverse_related_notes.notes_and_features.uniq.each do |note|
      -#  li = link_to note.headline, note_or_feature_path(note)