--- a/src/hdalab/views/profile.py Wed Jul 16 15:15:50 2014 +0200
+++ b/src/hdalab/views/profile.py Thu Jul 17 10:43:56 2014 +0200
@@ -5,14 +5,8 @@
@author: tc
'''
from datetime import datetime
-from django.db.models import Q
-from django.http.response import HttpResponse
from django.views.generic import TemplateView
-from hdabo.models import Tag
-from hdalab.utils import LineNodePlacer
-from hdalab.views.ajax import filter_generic
import json
-import uuid
import logging
logger = logging.getLogger(__name__)
@@ -22,9 +16,15 @@
template_name = "profile_home.html"
-# def get(self, request):
-#
-#
-# return HttpResponse(json.dumps("content"), content_type="application/json")
+ def get_context_data(self, **kwargs):
+ context = super(ProfileHome, self).get_context_data(**kwargs)
+
+ now = datetime.utcnow()
+ context['renkan_list'] = [
+ {"id":"a", "title":"title Renkan 1", "modification_date":now, "thumbnail":"http://icons.iconarchive.com/icons/visualpharm/ios7v2/256/Charts-Mind-map-icon.png"},
+ {"id":"b", "title":"2 title Renkan 2", "modification_date":now, "thumbnail":"http://a5.mzstatic.com/us/r30/Purple4/v4/ec/6f/d1/ec6fd10f-f295-eed7-d94f-3d9da39efc64/icon_256.png"}
+ ]
+
+ return context
\ No newline at end of file