<div class="row">
  <div class="col-12">
    <h2 class="d-inline">
      <%= @organization.name %><%= link_to "@#{@organization.name}", "/#{@organization.slug}", class: "ml-2", target: "_blank", rel: "noopener" %>
    </h2>
    <p class="font-italic">Created <%= @organization.created_at.strftime("%b %e '%y") %></p>
  </div>
  <div class="col-12">
    <h2>General Info</h2>
    <dl>
      <dt>ID:</dt>
      <dd><%= @organization.id %></span></dd>
      <dt>name:</dt>
      <dd><%= @organization.name %></dd>
      <dt>Membership Count:</dt>
      <dd><%= @organization.organization_memberships.size %></dd>
      <dt>Email:</dt>
      <dd><%= @organization.email || "N/A" %></dd>
      <dt>Twitter:</dt>
      <% if @organization.twitter_username %>
        <dd><%= link_to @organization.twitter_username, "https://twitter.com/#{@organization.twitter_username}" %></dd>
      <% else %>
        <dd>N/A</dd>
      <% end %>
      <dt>GitHub:</dt>
      <% if @organization.github_username %>
        <dd><%= link_to @organization.github_username, "https://github.com/#{@organization.github_username}" %></dd>
      <% else %>
        <dd>N/A</dd>
      <% end %>
    </dl>
  </div>
</div>

<%= render "activity" %>
