|
293
|
1 |
# -*- coding: utf-8 -*- |
|
|
2 |
''' |
|
|
3 |
Created on Jul 01, 2014 |
|
|
4 |
|
|
|
5 |
@author: tc |
|
|
6 |
''' |
|
|
7 |
from datetime import datetime |
|
|
8 |
from django.views.generic import TemplateView |
|
|
9 |
import json |
|
|
10 |
|
|
|
11 |
import logging |
|
|
12 |
logger = logging.getLogger(__name__) |
|
|
13 |
|
|
|
14 |
|
|
|
15 |
class ProfileHome(TemplateView): |
|
|
16 |
|
|
|
17 |
template_name = "profile_home.html" |
|
|
18 |
|
|
294
|
19 |
def get_context_data(self, **kwargs): |
|
|
20 |
context = super(ProfileHome, self).get_context_data(**kwargs) |
|
|
21 |
|
|
|
22 |
now = datetime.utcnow() |
|
|
23 |
context['renkan_list'] = [ |
|
|
24 |
{"id":"a", "title":"title Renkan 1", "modification_date":now, "thumbnail":"http://icons.iconarchive.com/icons/visualpharm/ios7v2/256/Charts-Mind-map-icon.png"}, |
|
|
25 |
{"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"} |
|
|
26 |
] |
|
|
27 |
|
|
|
28 |
return context |
|
293
|
29 |
|
|
|
30 |
|