<commit_before>{% load i18n %}
{% load tagging_tags %}
{% load word_boundary_aware_truncate_chars %}
{% load sekizai_tags %}
{% load unique_counter_tag %}

{% comment %} JS DEPENDENCIES FOR INLINE EDITING {% endcomment %}
{% addtoblock "js" %}
<script type="text/javascript" src="{{ STATIC_URL }}js/jquery/jquery.growfield2.js"></script>
{% endaddtoblock %}
{% addtoblock "js" %}
<script type="text/javascript" src="{{ STATIC_URL }}js/jquery/jquery.jeditable.js"></script>
{% endaddtoblock %}
{% addtoblock "js" %}
<script type="text/javascript" src="{{ STATIC_URL }}js/jquery/jquery.jeditable.growfield.js"></script>
{% endaddtoblock %}

{% comment %} JS + CSS DEPENDENCIES {% endcomment %}
{% addtoblock "js" %}
<script type="text/javascript" src="{{ STATIC_URL }}js/project_sheet/block/about.js"></script>
{% endaddtoblock %}
{% addtoblock "css" %}
<link type="text/css" rel="stylesheet" href="{{ STATIC_URL }}css/project_sheet/block/about.css" />
{% endaddtoblock %}


{% unique_counter about %}
{% with about_unique_counter=about_counter %}


<h2><span>{% trans "About the project" %}</span>
{% if project_translation %}
	<a href="#FIXME-bad-static-edit-url" class="i4p-button"
		data-toggle="i4p-editable-button"
		data-target="about-description-{{about_unique_counter}}"
		>
		<img src="{{ STATIC_URL }}images/base/edit.png" />
		{% trans 'Edit' %}
	</a>
{% endif %}
</h2>

{% comment %} PROJECT ABOUT SECTION {% endcomment %}
<p id="about-description-{{about_unique_counter}}"
{% if project_translation %}
	data-toggle="i4p-editable"
	data-language-code="{{ LANGUAGE_CODE }}"
	data-editable-id="about_section_txt"
	data-editable-tooltip="{% trans 'Double-click to edit' %}"
	data-editable-type="textarea"
	data-editable-load-url="{% if project_translation %}{% url project_sheet-ajax-field-load project_translation.slug %}{% else %}{% url project_sheet-ajax-field-load %}{% endif %}"
	data-editable-save-url="{% if project_translation %}{% url project_sheet-ajax-field-save project_translation.slug %}{% else %}{% url project_sheet-ajax-field-save %}{% endif %}" 
	data-editable-placeholder="{% trans "This field is blank. Don’t forget to complete it!"|capfirst %}"
{% endif %}
>
{{ project_translation.about_section|linebreaksbr }}
</p>

{% endwith %}

{% comment %} PROJECT TAGS {% endcomment %}



{% if project_translation %}
  {% tags_for_object project_translation as project_tags %}

  {% url project_sheet-instance-edit-tags project_translation.slug as url_edit_tags %}
  {% with taglist_title="Themes" taglist_tags=project_tags taglist_is_editable=1 taglist_edit_action=url_edit_tags %}
    {% include "tags/block/taglist.html" %}
  {% endwith %}

{% endif %}
<commit_msg>project_sheet about: added placeholder text for non-instanciated projects.<commit_after>{% load i18n %}
{% load tagging_tags %}
{% load word_boundary_aware_truncate_chars %}
{% load sekizai_tags %}
{% load unique_counter_tag %}

{% comment %} JS DEPENDENCIES FOR INLINE EDITING {% endcomment %}
{% addtoblock "js" %}
<script type="text/javascript" src="{{ STATIC_URL }}js/jquery/jquery.growfield2.js"></script>
{% endaddtoblock %}
{% addtoblock "js" %}
<script type="text/javascript" src="{{ STATIC_URL }}js/jquery/jquery.jeditable.js"></script>
{% endaddtoblock %}
{% addtoblock "js" %}
<script type="text/javascript" src="{{ STATIC_URL }}js/jquery/jquery.jeditable.growfield.js"></script>
{% endaddtoblock %}

{% comment %} JS + CSS DEPENDENCIES {% endcomment %}
{% addtoblock "js" %}
<script type="text/javascript" src="{{ STATIC_URL }}js/project_sheet/block/about.js"></script>
{% endaddtoblock %}
{% addtoblock "css" %}
<link type="text/css" rel="stylesheet" href="{{ STATIC_URL }}css/project_sheet/block/about.css" />
{% endaddtoblock %}




<h2><span>{% trans "About the project" %}</span>
{% if project_translation %}
	<a href="#FIXME-bad-static-edit-url" class="i4p-button"
		data-toggle="i4p-editable-button"
		data-target="about-description-{{about_unique_counter}}"
		>
		<img src="{{ STATIC_URL }}images/base/edit.png" />
		{% trans 'Edit' %}
	</a>
{% endif %}
</h2>

{% if project_translation %}
{% comment %} PROJECT ABOUT SECTION {% endcomment %}

{% unique_counter about %}
{% with about_unique_counter=about_counter %}
<p id="about-description-{{about_unique_counter}}"
	data-toggle="i4p-editable"
	data-language-code="{{ LANGUAGE_CODE }}"
	data-editable-id="about_section_txt"
	data-editable-tooltip="{% trans 'Double-click to edit' %}"
	data-editable-type="textarea"
	data-editable-load-url="{% if project_translation %}{% url project_sheet-ajax-field-load project_translation.slug %}{% else %}{% url project_sheet-ajax-field-load %}{% endif %}"
	data-editable-save-url="{% if project_translation %}{% url project_sheet-ajax-field-save project_translation.slug %}{% else %}{% url project_sheet-ajax-field-save %}{% endif %}" 
	data-editable-placeholder="{% trans "This field is blank. Don’t forget to complete it!"|capfirst %}"
>
{{ project_translation.about_section|linebreaksbr }}
</p>
{% endwith %}
{% else %}
<p>
{% trans 'Please start your project by filling its title or description' %}
</p>
{% endif %}


{% comment %} PROJECT TAGS {% endcomment %}



{% if project_translation %}
  {% tags_for_object project_translation as project_tags %}

  {% url project_sheet-instance-edit-tags project_translation.slug as url_edit_tags %}
  {% with taglist_title="Themes" taglist_tags=project_tags taglist_is_editable=1 taglist_edit_action=url_edit_tags %}
    {% include "tags/block/taglist.html" %}
  {% endwith %}

{% endif %}

{'fraction_non_alphanumeric': 0.17846820809248554, 'fraction_numerical': 0.0032514450867052024, 'mean_word_length': 5.607398568019093, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, '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': '4439259', 'n_tokens_mistral': 2042, 'n_tokens_neox': 1863, 'n_words': 357}