<commit_before>{% extends "ndf/base.html" %}
{% load i18n %}
{% load ndf_tags %}
{% load pagination_tags %}
{% get_group_name groupid as group_name_tag %}
{% block title %} {{title}} {% endblock %}

{% block help_content %}
{% endblock %}
{% block style %}
  {{block.super}}
  li{
    list-style:none;
  }
  .btn-width{
    //width:100% !important;
    //max-width:100% !important;
  }
{% endblock %}

{% block collection_content %}

  {% check_is_gstaff groupid request.user as is_gstaff %}
  {% user_access_policy groupid request.user as user_access %}
    <!-- 
      Tab 1 - All CourseEvents  (Displayed to all : Anonymous, Authenticated, Group member/admin/owner, SuperUser)
      Tab 2 - User enrolled CourseEvents
      Tab 3 - Courses
    -->
    <div class="panel" style="background-color:#ddd;margin-top:1.8em;padding: 1rem;">
      <ul class="" data-tab role="tablist" >
        {% if is_gstaff %}
          {% if req_from_course %}
              <a class="tiny expand button radius btn-width" href="{% url 'create_edit' group_name_tag %}">
                <i class="fi-plus"></i>{% trans " New Course" %} 
              </a>
          {% else %}
              <a href="{% url 'create_event_group' group_id 'ProgramEventGroup' %}" class="tiny expand button radius btn-width">
                <i class="fi-plus"></i>{% trans " New Event" %}
              </a>
          {% endif %}
        {% endif %}

        <li class="active"><a href="#all_events" class="tiny expand button radius  btn-width">{% if req_from_course %}{% trans "All eCourses" %}{% else %}{% trans "All Events" %}{% endif %}</a></li>
        {% if request.user.is_authenticated  and not is_gstaff %}
          <li><a href="#my_events" class="button btn-width">{% if req_from_course %}{% trans "My eCourses" %}{% else %}{% trans "My Events" %}{% endif %}</a></li>
        {% endif %}    
        {% if req_from_course and is_gstaff %}
            <li><a href="#courses" class="tiny expand button radius btn-width">{% trans "Courses" %}</a></li>
        {% endif %}
      </ul>
    </div>

{% endblock %}

{% block body_content %}

    <div class="tabs-content"  style="margin-left:18px;margin-top:-1em;">

      <section role="tabpanel" aria-hidden="true" class="content active small-block-grid-1 medium-block-grid-2 large-block-grid-5" id="all_events" style="background-color:#fafafa;border-style:none">
      {% if title == "Course" %}
        <div class="repository-title large-4 columns">All eCourses</div>
      {% else %}
        <div class="repository-title large-4 columns">All {{title}}</div>
      {% endif %}

        {% for course in ce_coll %}
          <li class="card-image-wrapper" style="margin-top:13px;margin-left:-10px"> <commit_msg>minor css change in course lhs btn<commit_after>{% extends "ndf/base.html" %}
{% load i18n %}
{% load ndf_tags %}
{% load pagination_tags %}
{% get_group_name groupid as group_name_tag %}
{% block title %} {{title}} {% endblock %}

{% block help_content %}
{% endblock %}
{% block style %}
  {{block.super}}
  li{
    list-style:none;
  }
  .btn-width{
    //width:100% !important;
    //max-width:100% !important;
  }
{% endblock %}

{% block collection_content %}

  {% check_is_gstaff groupid request.user as is_gstaff %}
  {% user_access_policy groupid request.user as user_access %}
    <!-- 
      Tab 1 - All CourseEvents  (Displayed to all : Anonymous, Authenticated, Group member/admin/owner, SuperUser)
      Tab 2 - User enrolled CourseEvents
      Tab 3 - Courses
    -->
    <div class="panel" style="background-color:#ddd;margin-top:1.8em;padding: 1rem;">
      <ul class="" data-tab role="tablist" >
        {% if is_gstaff %}
          {% if req_from_course %}
              <a class="tiny expand button radius btn-width" href="{% url 'create_edit' group_name_tag %}">
                <i class="fi-plus"></i>{% trans " New Course" %} 
              </a>
          {% else %}
              <a href="{% url 'create_event_group' group_id 'ProgramEventGroup' %}" class="tiny expand button radius btn-width">
                <i class="fi-plus"></i>{% trans " New Event" %}
              </a>
          {% endif %}
        {% endif %}

        <li class="active"><a href="#all_events" class="tiny expand button radius  btn-width">{% if req_from_course %}{% trans "All eCourses" %}{% else %}{% trans "All Events" %}{% endif %}</a></li>
        {% if request.user.is_authenticated  and not is_gstaff %}
          <li><a href="#my_events" class="tiny expand button radius  btn-width">{% if req_from_course %}{% trans "My eCourses" %}{% else %}{% trans "My Events" %}{% endif %}</a></li>
        {% endif %}    
        {% if req_from_course and is_gstaff %}
            <li><a href="#courses" class="tiny expand button radius  btn-width">{% trans "Courses" %}</a></li>
        {% endif %}
      </ul>
    </div>

{% endblock %}

{% block body_content %}

    <div class="tabs-content"  style="margin-left:18px;margin-top:-1em;">

      <section role="tabpanel" aria-hidden="true" class="content active small-block-grid-1 medium-block-grid-2 large-block-grid-5" id="all_events" style="background-color:#fafafa;border-style:none">
      {% if title == "Course" %}
        <div class="repository-title large-4 columns">All eCourses</div>
      {% else %}
        <div class="repository-title large-4 columns">All {{title}}</div>
      {% endif %}

        {% for course in ce_coll %}
          <li class="card-image-wrapper" style="margin-top:13px;margin-left:-10px"> 
{'fraction_non_alphanumeric': 0.17484551072337332, 'fraction_numerical': 0.009451108687749909, 'mean_word_length': 2.842877094972067, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 0, '>': 67, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1457090', 'n_tokens_mistral': 1929, 'n_tokens_neox': 1723, 'n_words': 421}