{% extends "repo_master.html" %}
{% from "_formhelper.html" import render_field_in_row %}
{% block title %}{{ select.capitalize() }} - {{ repo.name }}{% endblock %}
{%block tag %}home{% endblock %}
{% block header %}
<link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css"
rel="stylesheet">
{% 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>
<section class="users">
<h3>Users</h3>
<p>Here below is the list of user having commit rights to this repo.</p>
<p>
<a href="{{ url_for('.add_user', username=username, repo=repo.name) }}"
class="icon icon-plus-sign blue">
[add]
</a>
</p>
<ul>
<li>
<a href="{{ url_for('.view_user', username=repo.user.user) }}">{{ repo.user.user }}</a>
(owner)
</li>
{% for user in repo.users %}
<li>
<a href="{{ url_for('.view_user', username=user.user) }}">{{ user.user }}</a>
</li>
{% endfor %}
</ul>
</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 %}