Skip to content

Instantly share code, notes, and snippets.

@Porter97
Last active February 13, 2020 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Porter97/30969c39029cdbaddcf0c518503a1d86 to your computer and use it in GitHub Desktop.
Save Porter97/30969c39029cdbaddcf0c518503a1d86 to your computer and use it in GitHub Desktop.
{% 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