{% extends "coprs/group_show.html" %}
{% block title %}Project List{% endblock %}
{% block header %}Project List{% endblock %}
{% from "_helpers.html" import render_pagination %}
{% block breadcrumbs %}
<ol class="breadcrumb">
  <li>
    <a href="{{ url_for('coprs_ns.coprs_show') }}">Home</a>
  </li>
  <li class="active">
    @{{ group.name }}
  </li>
</ol>
{% endblock %}


{% block show_top %}
<div id="profile">
  <h1>@{{group.name}} Group</h1>
  <p>
    <a href="{{ config.GROUP_INFO.link.format(name=group.fas_name) }}"
       title="{{ group.fas_name }}'s {{ config.GROUP_INFO.desc }}"
       target="_blank">{{ config.GROUP_INFO.desc }}</a> |

    <a href="{{ config.GROUP_INFO.link.format(name=group.fas_name) }}"
       title="{{ group.fas_name }}'s Members"
       target="_blank">View Members</a>

  </p>

  {% if group.profile_description %}
  <div id="profile-description">
    {{ group.profile_description|markdown }}
  </div>
  {% endif %}
</div>
{% endblock %}


{% block projects_header %}
{% if g.user and g.user.can_build_in_group(group) %}
<div class="btn-group pull-right" role="group" aria-label="Basic example">
  <a href="{{url_for('coprs_ns.copr_add', group_name=group.name) }}" class="btn button-new btn-primary">
    <span class="pficon pficon-add-circle-o"></span>
      New Group Project
  </a>

  <a href="{{ url_for('user_ns.pinned_projects', group_name=group.name) }}" class="btn button-new btn-secondary">
    <span class="pficon pficon-edit"></span> Customize pinned
  </a>

  <a href="{{ url_for('user_ns.profile_description', group_name=group.name) }}" class="btn button-new btn-secondary">
    <span class="pficon pficon-edit"></span> Customize Profile
  </a>
</div>
{% endif %}

<h2 class="page-title">Projects in @{{group.name}} Group</h2>
{% endblock %}
