joegattnet/joegattnet_v3

View on GitHub
app/views/home/index.html.slim

Summary

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

  - document_title = t('site.title')
  - set_meta_tags title: document_title,
                  description: '',
                  open_graph: { title: document_title }

  div class="#{ controller.controller_name }-#{ controller.action_name }"
    nav = render_breadcrumbs builder: ::OrderedListBuilder
    = render 'header', title: t('site.title'), subtitle: nil, document_title: document_title
    - promotions_home_number = NB.promotions_home_columns.to_i * NB.promotions_home_rows.to_i
    = render 'shared/notes_list', notes: @promoted_notes.first(promotions_home_number), 
                                  blurb_length: NB.blurb_length.to_i