diff options
Diffstat (limited to 'jm2l/templates/view_user.mako')
-rw-r--r-- | jm2l/templates/view_user.mako | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/jm2l/templates/view_user.mako b/jm2l/templates/view_user.mako new file mode 100644 index 0000000..4a9f6d1 --- /dev/null +++ b/jm2l/templates/view_user.mako @@ -0,0 +1,45 @@ +<%inherit file="jm2l:templates/layout.mako"/> +<%namespace name="helpers" file="jm2l:templates/helpers.mako"/> + +% if request.user and (DispUser.uid==request.user.uid or request.user.uid==1): + <a style="float:right;" href="/MesJM2L?user=${DispUser.uid}">Editer</a> +% endif + +<h2>${DispUser.prenom} ${DispUser.nom}</h2> + +<div class="titleborderbox"> + <strong>Son profil</strong>. + % if DispUser.pseudo: + (${DispUser.pseudo}) + %endif +</div> +<div class="media borderbox"> + ${helpers.show_pictures(DispUser)} + <div class="media-body"> + % if DispUser.bio: + ${DispUser.bio | n} + % else: + <i>Ce profil n'a pas été complété.</i> + % endif + </div> +</div> +<div class="footborderbox"> + % if DispUser.website: + <div style="float:right;"> + <a href="${DispUser.website}">${DispUser.website}</a> + </div> + % endif +</div> +<br /> +% if DispUser.tiers: + <hr/> + <h4>Fait la promotion de ...</h4> + ${helpers.show_SummaryEntities(DispUser.tiers)} +% endif +% if DispUser.events: +<hr/> + <h4>Ses interventions :</h4> + ${helpers.show_Interventions(DispUser.events)} +% endif +<p style="float:right;">Créé le ${DispUser.created.strftime('%d %b %Y').decode('utf-8')}</p> + |