diff --git a/core/views.py b/core/views.py index 2fe7fe04a..c5c94f96b 100644 --- a/core/views.py +++ b/core/views.py @@ -14,13 +14,16 @@ from projects.models import Project from projects.tasks import update_docs from projects.utils import find_file from watching.models import PageView +from bookmarks.models import Bookmark def homepage(request): projs = Project.objects.all()[:5] updated = PageView.objects.all()[:5] + marks = Bookmark.objects.all()[:5] return render_to_response('homepage.html', {'project_list': projs, + 'bookmark_list': marks, 'updated_list': updated}, context_instance=RequestContext(request)) diff --git a/templates/homepage.html b/templates/homepage.html index 416701b13..10c3a1d10 100644 --- a/templates/homepage.html +++ b/templates/homepage.html @@ -60,6 +60,25 @@ + +
+
+ +
+

Recent Bookmarks

+
+ +
+
    + {% include "core/bookmark_list_detailed.html" %} +
+
+ +
+
+ + + {% paginate %} {% endblock %}