education/classroom

View on GitHub
app/views/stafftools/groups/_group.html.erb

Summary

Maintainability
Test Coverage
<div class="d-flex flex-md-row flex-items-center classroom-resource-item">
  <div class="col-1 d-flexp">
    <span class="assignment-icon assignment-icon-group left">
      <%= octicon 'organization', height: 22 %>
    </span>
  </div>

  <div class="col-10 col-md-10 d-flex flex-column">
    <%= link_to stafftools_group_path(group.id) do %>
      <strong class="search-result-title"><%= t('views.stafftools.groups.group_title', title: group.title, organization_login: group.organization&.github_organization&.login) %></strong>
    <% end %>

    <span class="text-gray css-truncate css-truncate-target"><%= t('views.stafftools.groups.created') %> <%= local_time_ago(group.created_at) %></span>
  </div>
</div>