Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{% extends "base.html" %}
{% block title %}Offbrand - {{ collection.name }}{% endblock %}
{% block page_content %}
<div>
<div class="page-header">
<h2 id="collection-name">{{ collection.name }}</h2>
<p id="collection-description">{{ collection.description }}</p>
{% if collection.author == current_user or current_user.is_administrator() %}
<a id="edit-collection" class="btn btn-warning" href="{{ url_for('.edit_collection', id=collection.id) }}">Edit Collection</a>
{% endif %}
<p id="collection-info"><img class="img-rounded profile-thumbnail" src="{{ collection.author.gravatar(size=35) }}"><a id="collection-author" href="{{ url_for('main.user', username=collection.author.username) }}">{{ collection.author.username }}</a> &bull; {{ moment(collection.timestamp).fromNow() }}</p>
</div>
</div>
{% endblock %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.