Add Photo model & templates
This commit is contained in:
parent
9a483b2a7f
commit
f04beb3aaa
9 changed files with 123 additions and 11 deletions
19
gallery/templates/gallery/photo_detail.html
Normal file
19
gallery/templates/gallery/photo_detail.html
Normal file
|
@ -0,0 +1,19 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
<!-- Title -->
|
||||
{% block title %} Gallery : Photo {% endblock %}
|
||||
|
||||
<!-- Breadcrumb -->
|
||||
{% block breadcrumb %}
|
||||
<li><a href="{% url 'gallery:albums_url' %}">Albums</a></li>
|
||||
<li><a href="{{ photo.album.get_absolute_url }}">{{ photo.album.name }}</a></li>
|
||||
<li>{{ photo.slug }}</li>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
<!-- Content -->
|
||||
{% block content %}
|
||||
|
||||
<h1>{{ photo.slug }}</h1>
|
||||
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue