<commit_before>{#
# @license 3-clause BSD
# @link https://github.com/QuestionKey/QuestionKey-Core
#}

{% extends 'QuestionKeyBundle::base.html.twig' %}

{% block title %}{{  tree.titleAdmin }} | Admin{%  endblock %}

{% block main %}

  <ol class="breadcrumb">
    <li><a href="{{ path('questionkey_admin') }}">Admin</a></li>
    <li class="active">Tree: {{ tree.titleAdmin}}</li>
  </ol>

  <p>Tree {{ tree.titleAdmin }}</p>

  <p>Public ID: {{ tree.publicId }}</p>

    <ul class="list-group">
        <li class="list-group-item"><a href="{{ path('questionkey_admin_tree_version_list', { 'treeId':tree.id }) }}" class="btn btn-default">Versions</a></li>
        {% if publishedTreeVersion %}
            <li class="list-group-item"><a href="{{ path('questionkey_admin_tree_version_show', {'treeId':tree.id ,'versionId':publishedTreeVersion.id }) }}" class="btn btn-default">View Published Version</a></li>
        {% endif %}
        {% if latestTreeVersion %}
            <li class="list-group-item"><a href="{{ path('questionkey_admin_tree_version_show', {'treeId':tree.id ,'versionId':latestTreeVersion.id }) }}" class="btn btn-default">View Latest Version</a></li>
        {% endif %}
        <li class="list-group-item"><a href="{{ path('questionkey_admin_tree_version_published_list', { 'treeId':tree.id }) }}" class="btn btn-default">Versions Published</a></li>
        <li class="list-group-item"><a href="{{ path('questionkey_admin_tree_stats', { 'treeId':tree.id }) }}" class="btn btn-default">Stats</a></li>
        <li class="list-group-item"><a href="{{ path('questionkey_admin_tree_edit', { 'treeId':tree.id }) }}" class="btn btn-warning">Edit</a></li>
    </ul>


{% endblock %}<commit_msg>When looking at tree, can see what version the latest and published is<commit_after>{#
# @license 3-clause BSD
# @link https://github.com/QuestionKey/QuestionKey-Core
#}

{% extends 'QuestionKeyBundle::base.html.twig' %}

{% block title %}{{  tree.titleAdmin }} | Admin{%  endblock %}

{% block main %}

  <ol class="breadcrumb">
    <li><a href="{{ path('questionkey_admin') }}">Admin</a></li>
    <li class="active">Tree: {{ tree.titleAdmin}}</li>
  </ol>

  <p>Tree {{ tree.titleAdmin }}</p>

  <p>Public ID: {{ tree.publicId }}</p>

    <ul class="list-group">
        <li class="list-group-item"><a href="{{ path('questionkey_admin_tree_version_list', { 'treeId':tree.id }) }}" class="btn btn-default">Versions</a></li>
        {% if publishedTreeVersion %}
            <li class="list-group-item">
                <a href="{{ path('questionkey_admin_tree_version_show', {'treeId':tree.id ,'versionId':publishedTreeVersion.id }) }}" class="btn btn-default">View Published Version</a>
                This is version: {{  publishedTreeVersion.titleAdmin }}
            </li>
        {% endif %}
        {% if latestTreeVersion %}
            <li class="list-group-item">
                <a href="{{ path('questionkey_admin_tree_version_show', {'treeId':tree.id ,'versionId':latestTreeVersion.id }) }}" class="btn btn-default">View Latest Version</a>
                This is version: {{  latestTreeVersion.titleAdmin }}
            </li>
        {% endif %}
        <li class="list-group-item"><a href="{{ path('questionkey_admin_tree_version_published_list', { 'treeId':tree.id }) }}" class="btn btn-default">Versions Published</a></li>
        <li class="list-group-item"><a href="{{ path('questionkey_admin_tree_stats', { 'treeId':tree.id }) }}" class="btn btn-default">Stats</a></li>
        <li class="list-group-item"><a href="{{ path('questionkey_admin_tree_edit', { 'treeId':tree.id }) }}" class="btn btn-warning">Edit</a></li>
    </ul>


{% endblock %}
{'fraction_non_alphanumeric': 0.20615468409586057, 'fraction_numerical': 0.0005446623093681918, 'mean_word_length': 3.9170013386880855, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 79, 'https://': 2, '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': '2369070', 'n_tokens_mistral': 1218, 'n_tokens_neox': 1161, 'n_words': 206}