extinctionrebellion/RebelsManager

View on GitHub
app/views/local_groups/show.html.slim

Summary

Maintainability
Test Coverage
- content_for :page_header do
  = render 'layouts/components/page_header',
           title: @local_group.name,
           links: [ \
             link_to( \
               "Edit",
               edit_local_group_path(@local_group),
               class: 'secondary button' \
             ),
             delete_link(@local_group) \
           ].compact

- if !@local_group.active?
  .warning.callout
    | This local group is NOT active.

.grid-x.grid-padding-x
  .cell.auto
    p
      strong Email
      br
      = @local_group.email.present? ? @local_group.email : "-"

    p
      strong Rebels
      br
      = @local_group.rebels.count

    p
      strong Mailtrain List ID
      br
      = @local_group.mailtrain_list_id.present? ? @local_group.mailtrain_list_id : '-'