<commit_before>{% extends "ndf/node_details_base.html" %}
{% load ndf_tags %}
{% load i18n %}
{% block title %} {{title}} {{node.name}}{% endblock %}
{% block url %}{% url 'create_edit' groupid node %}{% endblock %}

<!-- overide head block from base.html -->
{% block head %}
  <!-- <script src="/static/ndf/js/tree.jquery.js"></script> -->
  <script src="/static/ndf/bower_components/jqtree/tree.jquery.js"></script> <!-- checked -->
{% endblock %}

{% block style %}
  {{block.super}}

  .fi-trash:hover{
    color:red;
  }

  .name-section{
    height:80px;
  }
{% endblock %}


<!-- overiding block from node_detail_base.html -->

{% block collection_content %}
  <div id="view_collection">
    {% include "ndf/collection_ajax_view.html" %}  
  </div>
{% endblock %}

<!-- overiding block from node_detail_base.html -->
{% block body_content %}
{% get_group_name groupid as group_name_tag %}

  <div id="alertModal" class="reveal-modal medium alert-box radius" data-reveal data-alert>
    <p id="alertModalLabel"></p>
    <div class="row deletion">
      <div class="small-3 small-offset-3 columns">
        <input type="button" id="btnConfirmYes" class="button tiny expand" value="Yes">
      </div>
      <div class="small-3 columns end">
        <input type="button" id="btnConfirmNo" class="button tiny expand " value="No">
      </div>
    </div>
    <a class="close-reveal-modal">&#215;</a>
  </div>

<header class="row page">
   <section class="medium-8 columns name-section" >
    <h3>
      <span class='node'>{{node.name}}</span>
      <!-- <span><a class="fi-pencil " href="{% url 'create_edit' group_id node.pk %}"></a></span> -->

      <!-- This button publishes the drafted resource -->

    </h3>
      <small>
            <div class="age">
              {{ node.member_of_names_list|join:', ' }} created {{node.created_at|timesince}} ago 
              by <a class="user" href="{% url 'dashboard' node.created_by %}" data-gnow="">{{node.user_details_dict.created_by}}</a> 
            <!-- <span><strong>{{node.contributors|length}}</strong> Contributor{{node.contributors|pluralize}}</span> -->
            <!-- <a href=""><i class="fi-clock"></i> {% trans "View history" %}</a> -->
            </div>

      </small>
   </section>
   <section class="medium-3 columns name-section" >
   <span><a class="tiny publish-btn button" href="{% url 'create_event_group' group_id 'CourseEventGroup' %}?cnode_id={{node.pk}}">{% trans "Announce" %}</a></span>

    {% if node_type == "Course" %}
      {% check_is_gstaff groupid request.user as is_gstaff %}
      {% if is_gstaff %}
        <span><a class="tiny button" href="{% url 'create_course_struct' group_id node.pk %}">{% if course_structure_exists %}{% trans "Edit  Course Structure" %}{% else %}{% trans "Add  Course Structure" %}{% endif %}</a></span>
      {% endif %}
    {% endif %}


  </section>
</header>

<div class="row"><commit_msg>Announce button will only be displayed to gstaff<commit_after>{% extends "ndf/node_details_base.html" %}
{% load ndf_tags %}
{% load i18n %}
{% block title %} {{title}} {{node.name}}{% endblock %}
{% block url %}{% url 'create_edit' groupid node %}{% endblock %}

<!-- overide head block from base.html -->
{% block head %}
  <!-- <script src="/static/ndf/js/tree.jquery.js"></script> -->
  <script src="/static/ndf/bower_components/jqtree/tree.jquery.js"></script> <!-- checked -->
{% endblock %}

{% block style %}
  {{block.super}}

  .fi-trash:hover{
    color:red;
  }

  .name-section{
    height:80px;
  }
{% endblock %}


<!-- overiding block from node_detail_base.html -->

{% block collection_content %}
  <div id="view_collection">
    {% include "ndf/collection_ajax_view.html" %}  
  </div>
{% endblock %}

<!-- overiding block from node_detail_base.html -->
{% block body_content %}
{% get_group_name groupid as group_name_tag %}

  <div id="alertModal" class="reveal-modal medium alert-box radius" data-reveal data-alert>
    <p id="alertModalLabel"></p>
    <div class="row deletion">
      <div class="small-3 small-offset-3 columns">
        <input type="button" id="btnConfirmYes" class="button tiny expand" value="Yes">
      </div>
      <div class="small-3 columns end">
        <input type="button" id="btnConfirmNo" class="button tiny expand " value="No">
      </div>
    </div>
    <a class="close-reveal-modal">&#215;</a>
  </div>

<header class="row page">
   <section class="medium-8 columns name-section" >
    <h3>
      <span class='node'>{{node.name}}</span>
      <!-- <span><a class="fi-pencil " href="{% url 'create_edit' group_id node.pk %}"></a></span> -->

      <!-- This button publishes the drafted resource -->

    </h3>
      <small>
            <div class="age">
              {{ node.member_of_names_list|join:', ' }} created {{node.created_at|timesince}} ago 
              by <a class="user" href="{% url 'dashboard' node.created_by %}" data-gnow="">{{node.user_details_dict.created_by}}</a> 
            <!-- <span><strong>{{node.contributors|length}}</strong> Contributor{{node.contributors|pluralize}}</span> -->
            <!-- <a href=""><i class="fi-clock"></i> {% trans "View history" %}</a> -->
            </div>

      </small>
   </section>
   <section class="medium-3 columns name-section" >

    {% if node_type == "Course" %}
      {% check_is_gstaff groupid request.user as is_gstaff %}
      {% if is_gstaff %}
        <span><a class="tiny publish-btn button" href="{% url 'create_event_group' group_id 'CourseEventGroup' %}?cnode_id={{node.pk}}">{% trans "Announce" %}</a></span>
        <span><a class="tiny button" href="{% url 'create_course_struct' group_id node.pk %}">{% if course_structure_exists %}{% trans "Edit  Course Structure" %}{% else %}{% trans "Add  Course Structure" %}{% endif %}</a></span>
      {% endif %}
    {% endif %}


  </section>
</header>

<div class="row">
{'fraction_non_alphanumeric': 0.2010906612133606, 'fraction_numerical': 0.004771642808452625, 'mean_word_length': 3.2933430870519387, 'pattern_counts': {'":': 0, '<': 135, '<?xml version=': 0, '>': 135, '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': '4553483', 'n_tokens_mistral': 2059, 'n_tokens_neox': 1890, 'n_words': 424}