diff options
author | tr4ck3ur <tr4ck3ur@style-python.fr> | 2015-02-13 02:29:37 +0100 |
---|---|---|
committer | tr4ck3ur <tr4ck3ur@style-python.fr> | 2015-02-13 02:29:37 +0100 |
commit | fa4a9859c57de6b7894ff4b84b75d242f2b796f5 (patch) | |
tree | c6ec352fdd634ca3e645cb2db897a127fcff299b /jm2l/templates/view_user.mako | |
download | jm2l-fa4a9859c57de6b7894ff4b84b75d242f2b796f5.tar.gz jm2l-fa4a9859c57de6b7894ff4b84b75d242f2b796f5.tar.bz2 jm2l-fa4a9859c57de6b7894ff4b84b75d242f2b796f5.tar.xz jm2l-fa4a9859c57de6b7894ff4b84b75d242f2b796f5.zip |
first drop
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> + |