<commit_before>{% extends "/base.html" %}
{% set active_page = "projects" %}
{% import "projects/_helpers.html" as helper %}
{% from "_formhelpers.html" import render_field %}

{% block content %}
<script src="{{url_for('static', filename='js/vendor/jquery.Jcrop.min.js')}}"></script>
<link rel="stylesheet" href="{{url_for('static', filename='css/jquery.Jcrop.min.css')}}" type="text/css" />
{{ helper.render_project_local_nav(project, 'settings', current_user, pro_features) }}
<div class="container container-main">
    <div class="row">
        <div class="col-sm-9 col-sm-offset-3">
                {% include "_flash_messages.html" %}
              <h1><strong>{{project.name}}</strong>: Project Details</h1>
              <hr>
              <!-- Update form for project thumbnail -->
              <form method="post" class="form-horizontal upload-img-form padding-top-xs" action="{{ url_for('blplugin.update_project', short_name=project.short_name) }}" enctype="multipart/form-data">
                  <fieldset>
                      <input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
                        <div class="col-xs-12 text-center">
                            <div class="center-block img-overlay-container">
                                 {{ helper.render_project_thumbnail(project, upload_method, class="img-thumbnail", id="project.id") }}
                                <div class="img-overlay edit-profile-image">
                                        <i class="fa fa-pencil-square-o fa-3x"></i>
                                        <span>Edit</span>
                                </div>
                            </div>
                        </div>
                      {{ render_field(upload_avatar_form.avatar, onchange="loadPreview()", class="form-control hidden") }}
                      {{ upload_avatar_form.x1 }}
                      {{ upload_avatar_form.y1 }}
                      {{ upload_avatar_form.x2 }}
                      {{ upload_avatar_form.y2 }}
                      <div id="modal" class="modal fade">
                        <div class="modal-dialog img-dialog">
                            <div class="modal-content">
                                <div class="modal-body">
                                    <img id="uploadPreview">
                                </div>

                                <div class="modal-footer">
                                    <div class="form-actions text-center">
                                        <button type="submit" id="upload-btn" name='btn' value="Upload Avatar" class="btn btn-primary btn-lg" >Upload</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                  </fieldset>
              </form>
            {{ helper.render_loading("Loading, please wait...") }}
              <!-- Update form for project data-->
            <form class="visible-form" method="post" action="{{ url_for('blplugin.update_project', short_name = project.short_name) }}" enctype="multipart/form-data">
              <fieldset>
                {{ form.hidden_tag() }}

                {{ render_field(form.name, class="form-control", placeholder="Name", show_label=True, required="required", autofocus="autofocus") }}
                {{ render_field(form.short_name, class="form-control", placeholder="Short name", show_label=True, label_text="Short name:") }}
                {{ render_field(form.description, class="form-control", placeholder="Short description", show_label=True, required="required", pattern=".{0,255}", title="Must be a maximum of 255 characters") }}
                {{ render_field(form.long_description, rows="13", placeholder="Explain the project (use Markdown)!", class="form-control", required="required", show_label=True) }}
                {{ render_field(form.category_id, class="form-control", show_label=True) }}
                {{ render_field(form.allow_anonymous_contributors, class="form-control", show_label=True) }}
                {{ render_field(form.protect, id='protect') }}
                <div id='password'>{{ render_field(form.password, class="form-control", show_label=True) }}</div>
                {{ render_field(form.webhook, class="form-control", show_label=True) }}
                <div role="group" class="pull-right">
                    <a href="{{url_for('project.tasks', short_name=project.short_name)}}" class="btn btn-default">Cancel</a>
                  <button type="submit" name="btn" value="Save the changes" class="btn btn-danger">Save</button>
                </div>
              </fieldset>
            </form>
        </div>
    </div>
</div>
<script>
    $("i[rel='tooltip']").tooltip();
    $(function() {
        $('.control-label').addClass('remove-padding-left');
    });
</script>
<script src="{{url_for('static', filename='js/image_crop.js')}}" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
    var passProtected = document.getElementById('protect').checked;
    if (!passProtected) {
        $('#password').hide();
    }
    $('#protect').on('change', function() {
        $('#password').toggle();
    });
});
</script>
{{ helper.broken_image() }}<commit_msg>Remove reference to old plugin<commit_after>{% extends "/base.html" %}
{% set active_page = "projects" %}
{% import "projects/_helpers.html" as helper %}
{% from "_formhelpers.html" import render_field %}

{% block content %}
<script src="{{url_for('static', filename='js/vendor/jquery.Jcrop.min.js')}}"></script>
<link rel="stylesheet" href="{{url_for('static', filename='css/jquery.Jcrop.min.css')}}" type="text/css" />
{{ helper.render_project_local_nav(project, 'settings', current_user, pro_features) }}
<div class="container container-main">
    <div class="row">
        <div class="col-sm-9 col-sm-offset-3">
            {% include "_flash_messages.html" %}
            <h1><strong>{{project.name}}</strong>: Project Details</h1>
            <hr>

            <!-- Update form for project thumbnail -->
            <form method="post" class="form-horizontal upload-img-form padding-top-xs" action="{{ url_for('project.update', short_name=project.short_name) }}" enctype="multipart/form-data">
                <fieldset>
                    <input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
                      <div class="col-xs-12 text-center">
                          <div class="center-block img-overlay-container">
                               {{ helper.render_project_thumbnail(project, upload_method, class="img-thumbnail", id="project.id") }}
                              <div class="img-overlay edit-profile-image">
                                      <i class="fa fa-pencil-square-o fa-3x"></i>
                                      <span>Edit</span>
                              </div>
                          </div>
                      </div>
                    {{ render_field(upload_avatar_form.avatar, onchange="loadPreview()", class="form-control hidden") }}
                    {{ upload_avatar_form.x1 }}
                    {{ upload_avatar_form.y1 }}
                    {{ upload_avatar_form.x2 }}
                    {{ upload_avatar_form.y2 }}
                    <div id="modal" class="modal fade">
                      <div class="modal-dialog img-dialog">
                          <div class="modal-content">
                              <div class="modal-body">
                                  <img id="uploadPreview">
                              </div>

                              <div class="modal-footer">
                                  <div class="form-actions text-center">
                                      <button type="submit" id="upload-btn" name='btn' value="Upload Avatar" class="btn btn-primary btn-lg" >Upload</button>
                                  </div>
                              </div>
                          </div>
                      </div>
                  </div>
                </fieldset>
            </form>

            {{ helper.render_loading("Loading, please wait...") }}

            <!-- Update form for project data-->
            <form class="visible-form" method="post" action="{{ url_for('project.update', short_name = project.short_name) }}" enctype="multipart/form-data">
              <fieldset>
                {{ form.hidden_tag() }}

                {{ render_field(form.name, class="form-control", placeholder="Name", show_label=True, required="required", autofocus="autofocus") }}
                {{ render_field(form.short_name, class="form-control", placeholder="Short name", show_label=True, label_text="Short name:") }}
                {{ render_field(form.description, class="form-control", placeholder="Short description", show_label=True, required="required", pattern=".{0,255}", title="Must be a maximum of 255 characters") }}
                {{ render_field(form.long_description, rows="13", placeholder="Explain the project (use Markdown)!", class="form-control", required="required", show_label=True) }}
                {{ render_field(form.category_id, class="form-control", show_label=True) }}
                {{ render_field(form.allow_anonymous_contributors, class="form-control", show_label=True) }}
                {{ render_field(form.protect, id='protect') }}
                <div id='password'>{{ render_field(form.password, class="form-control", show_label=True) }}</div>
                {{ render_field(form.webhook, class="form-control", show_label=True) }}
                <div role="group" class="pull-right">
                    <a href="{{url_for('project.tasks', short_name=project.short_name)}}" class="btn btn-default">Cancel</a>
                  <button type="submit" name="btn" value="Save the changes" class="btn btn-danger">Save</button>
                </div>
              </fieldset>
            </form>

        </div>
    </div>
</div>
<script>
    $("i[rel='tooltip']").tooltip();
    $(function() {
        $('.control-label').addClass('remove-padding-left');
    });
</script>
<script src="{{url_for('static', filename='js/image_crop.js')}}" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
    var passProtected = document.getElementById('protect').checked;
    if (!passProtected) {
        $('#password').hide();
    }
    $('#protect').on('change', function() {
        $('#password').toggle();
    });
});
</script>
{{ helper.broken_image() }}
{'fraction_non_alphanumeric': 0.16284555146711954, 'fraction_numerical': 0.003773940937824323, 'mean_word_length': 1.9850746268656716, 'pattern_counts': {'":': 0, '<': 131, '<?xml version=': 0, '>': 131, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 18, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3843295', 'n_tokens_mistral': 2891, 'n_tokens_neox': 2758, 'n_words': 492}