diff --git a/gallery/templates/gallery/photo_list.html b/gallery/templates/gallery/photo_list.html
new file mode 100644
index 0000000..19d4eb8
--- /dev/null
+++ b/gallery/templates/gallery/photo_list.html
@@ -0,0 +1,16 @@
+{% extends "base.html" %}
+
+
+{% block title %} Gallery : Photostream {% endblock %}
+
+
+{% block breadcrumb %}
+
Photostream
+{% endblock %}
+
+
+{% block content %}
+ {% for photo in object_list %}
+ {{ photo.slug }}
+ {% endfor %}
+{% endblock %}
\ No newline at end of file
diff --git a/gallery/urls.py b/gallery/urls.py
index 5dbd6be..6020e0b 100644
--- a/gallery/urls.py
+++ b/gallery/urls.py
@@ -9,6 +9,9 @@ urlpatterns = [
# Main page
path('', views.Main.as_view(), name='main_url'),
+ # Top kuvat
+ path('photostream/', views.PhotosList.as_view(), name='photos_url'),
+
# Yksittäinen kuva albumissa:
path('albums///', views.PhotoDetail.as_view(), name="photo_url"),
diff --git a/gallery/views.py b/gallery/views.py
index 6c4a63c..1e1358a 100644
--- a/gallery/views.py
+++ b/gallery/views.py
@@ -38,3 +38,8 @@ class PhotoDetail(DetailView):
return get_object_or_404(Photo, slug=self.kwargs.get('photo_slug'))
+class PhotosList(ListView):
+ model = Photo
+ paginate_by = 30
+
+
diff --git a/templates/base.html b/templates/base.html
index 340e317..25a1dc3 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -30,7 +30,7 @@