Correctif : affiche le login si le nom de pag diff
This commit is contained in:
parent
0410d42147
commit
83a1a611ef
1 changed files with 6 additions and 1 deletions
|
@ -113,11 +113,16 @@ class Account:
|
|||
|
||||
def to_html(self):
|
||||
"""Renvoie le code HTML correspondant au fichier .info"""
|
||||
if self.login.lower() not in self.info("nom_site").lower():
|
||||
ident = u'%s<br>' % self.login
|
||||
else:
|
||||
ident = u''
|
||||
html = [ u'<div class="vignetteperso">',
|
||||
u'<a href="%s">' % (self.url % self.login),
|
||||
u'<img src="%s" alt="%s">' % (self.logo(), self.login),
|
||||
u'</a><br>',
|
||||
self.info("nom_site") and u'<b>%s</b><br>' % self.info("nom_site") or u'%s<br>' % self.login,
|
||||
self.info("nom_site") and u'<b>%s</b><br>' % self.info("nom_site") or u'',
|
||||
ident,
|
||||
self.info("slogan") and u'<i>%s</i>' % self.info("slogan") or u'',
|
||||
u'</div>' ]
|
||||
return u'\n'.join(html)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue