# HG changeset patch # User cavaliet # Date 1405586636 -7200 # Node ID 6c12ccf29a95e25d00ddcc8999a7184d8b881f04 # Parent b33caeba7faa21c3bff303ad2a503425effe7377 loop on profile's renkans diff -r b33caeba7faa -r 6c12ccf29a95 src/hdalab/static/hdalab/css/profile.css --- a/src/hdalab/static/hdalab/css/profile.css Wed Jul 16 15:15:50 2014 +0200 +++ b/src/hdalab/static/hdalab/css/profile.css Thu Jul 17 10:43:56 2014 +0200 @@ -5,10 +5,14 @@ font-size: 14px; width: 100%; } +tr{ + text-align: left; +} tr.border_bottom th, tr.border_bottom td { border-bottom:1pt solid #555; } -.actions{ +.renkan-basic-action{ float: left; + margin-right: 5px; } .ui-icon-eye { background-position: -160px -144px; } \ No newline at end of file diff -r b33caeba7faa -r 6c12ccf29a95 src/hdalab/templates/profile_home.html --- a/src/hdalab/templates/profile_home.html Wed Jul 16 15:15:50 2014 +0200 +++ b/src/hdalab/templates/profile_home.html Thu Jul 17 10:43:56 2014 +0200 @@ -2,7 +2,7 @@ {% load i18n %} {% load static %} -{% block title %}{{block.super}} > transProfil utilisateur{% endblock %} +{% block title %}{{block.super}} > Profil utilisateur : {{ user.username }}{% endblock %} {% block css_import %} {{block.super}} @@ -16,17 +16,20 @@
Vos renkans :
Gestion du mot de passe : modification
{% endblock %} \ No newline at end of file diff -r b33caeba7faa -r 6c12ccf29a95 src/hdalab/views/profile.py --- 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