Source

bitbucket-api-example / bitbucket_oauth / templates / authorized.html

Full commit
{% extends "base.html" %}

{% block content %}

	<p>
		You're logged in as <b>{{ user.username }}</b> ({{ user.first_name }} {{ user.last_name}}) -- <a href="{% url unauth %}">Logout</a>
	</p>

	<h3>Create repository</h3>

	<form action="{% url create-repo %}" method="post">
		Name: <input type="text" name="name"/>
		<p>
			<input type="submit" value="Create repository"/>
		</p>
	</form>

	<h3>Repositories</h3>
	
	{% for repo in repositories %}
	
		<p>
			{{ repo.name }} ({{ repo.size|filesizeformat }}, <a href="http://bitbucket.org{{ repo.absolute_uri }}">link</a>)
		</p>
	
	{% endfor %}	

{% endblock %}