railslink/railslink

View on GitHub
app/views/admin/channels/index.html.slim

Summary

Maintainability
Test Coverage
section.section
  .columns
    .column
      h1.title Slack Channels

      table.table.is-hoverable
        thead
          tr
            th Name
            th Members
            th Created At
            th Purpose
        tbody
          - @channels.each do |channel|
            tr[class = (channel.is_archived? ? "has-text-grey-light" : "")]
              td= channel.name_with_hash
              td.has-text-right= number_with_delimiter channel.members_count
              td.has-text-right= channel.created_at.to_date.to_s(:db)
              td= channel.purpose