aboutsummaryrefslogtreecommitdiffstats
path: root/jm2l/templates/show_user.mako
diff options
context:
space:
mode:
authortr4ck3ur <tr4ck3ur@style-python.fr>2015-02-13 02:29:37 +0100
committertr4ck3ur <tr4ck3ur@style-python.fr>2015-02-13 02:29:37 +0100
commitfa4a9859c57de6b7894ff4b84b75d242f2b796f5 (patch)
treec6ec352fdd634ca3e645cb2db897a127fcff299b /jm2l/templates/show_user.mako
downloadjm2l-fa4a9859c57de6b7894ff4b84b75d242f2b796f5.tar.gz
jm2l-fa4a9859c57de6b7894ff4b84b75d242f2b796f5.tar.bz2
jm2l-fa4a9859c57de6b7894ff4b84b75d242f2b796f5.tar.xz
jm2l-fa4a9859c57de6b7894ff4b84b75d242f2b796f5.zip
first drop
Diffstat (limited to 'jm2l/templates/show_user.mako')
-rw-r--r--jm2l/templates/show_user.mako77
1 files changed, 77 insertions, 0 deletions
diff --git a/jm2l/templates/show_user.mako b/jm2l/templates/show_user.mako
new file mode 100644
index 0000000..f661346
--- /dev/null
+++ b/jm2l/templates/show_user.mako
@@ -0,0 +1,77 @@
+<%inherit file="jm2l:templates/layout.mako"/>
+<style>
+.borderbox {
+ border: 1px solid #e1e4e5;
+ margin: 1px 0 24px;
+ color: #404040;
+ line-height: 1.5;
+ margin: 0;
+ overflow: auto;
+ padding: 12px;
+ background: none repeat scroll 0 0 #fcfcfc;
+ font-family: "Lato","proxima-nova","Helvetica Neue",Arial,sans-serif;
+}
+.titleborderbox {
+ background: none repeat scroll 0 0 #ffffff;
+ border: 1px solid #eee;
+ display: inline;
+ left: 16px;
+ padding: 2px 7px;
+ position: relative;
+ top: 10px;
+}
+.borderboxtime {
+ float:right;
+ padding:1px 15px;
+ border: 1px solid #eee;
+}
+</style>
+ % 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 style="display: inline-block;">
+ <p>
+ % if DispUser.PhotosLinks or DispUser.bio or DispUser.website:
+ <div class="titleborderbox">
+ <strong>Son profil</strong>.
+ % if DispUser.pseudo:
+ (${DispUser.pseudo})
+ %endif
+ </div>
+
+ % if DispUser.PhotosLinks:
+ <br />
+ <div style="float:right;padding:5px;border:1px solid #eee;background-color:white;">
+ % for img_path in DispUser.PhotosLinks:
+ <img src="${img_path}" alt="logo" />
+ % endfor
+ </div>
+ % endif
+ <div>
+ <div style="float:right;">
+ &nbsp;&nbsp;&nbsp;
+ </div>
+ <div class="borderbox">
+ % if DispUser.bio:
+ ${DispUser.bio | n}
+ % endif
+ <br />
+ % if DispUser.website:
+ <div style="float:right;">
+ <a href="http://${DispUser.website}">${DispUser.website}</a>
+ </div>
+ % endif
+ </div>
+ </div>
+ % else:
+ <i>Pas d'information</i>
+ % endif
+ </p>
+</div>
+<br/>
+<hr/>
+<p style="float:right;">Créé le ${DispUser.created.strftime('%d %b %Y').decode('utf-8')}</p>
+