{% extends "repo_master.html" %}
{% from "_formhelper.html" import render_field_in_row %}
{% block title %}{{ select.capitalize() }} - {{ repo.name }}{% endblock %}
{%block tag %}home{% endblock %}
{% block repo %}
<section class="settings">
<h3>Settings</h3>
<form action="{{ url_for('.delete_repo',
username=username, repo=repo.name) }}" method="post">
<button class="delete_icon" type="submit"
onclick="return confirm('Are you sure to delete this project/fork? \nThis is final and cannot be un-done.');"
title="Delete the project/forl">
Delete project
</button>
</form>
<form action="{{ url_for('.view_settings',
username=username, repo=repo.name) }}" method="post">
<table>
{{ render_field_in_row(form.issue_tracker) }}
{{ render_field_in_row(form.project_docs) }}
</table>
<p class="buttons indent">
<input type="submit" class="submit positive button" value="Update">
<input type="button" value="Cancel" class="button" onclick="history.back();">
{{ form.csrf_token }}
</p>
</form>
</section>
{% if plugins %}
<section class="hooks">
<h3>Hooks</h3>
<ul>
{% for plugin in plugins %}
<li>
<a href="{{ url_for('.view_plugin', repo=repo.name, username=username,
plugin=plugin) }}">{{ plugin }}</a>
</li>
{% endfor %}
</ul>
</section>
{% endif %}
{% endblock %}
{% block jscripts %}
{{ super() }}
{% endblock %}