do not linkify authors that are not deputies
This commit is contained in:
parent
8187d3a809
commit
5bad5f0a64
|
@ -18,8 +18,14 @@ class BasePublication(object):
|
|||
def authors_html_str(self):
|
||||
if not self.authors:
|
||||
return ''
|
||||
return ', '.join([u'<a href="%s">%s</a>' % (x.to_object.absolute_url(), x.to_object.title)
|
||||
for x in self.authors])
|
||||
t = []
|
||||
for x in self.authors:
|
||||
url = x.to_object.absolute_url()
|
||||
if 'ministres' in url:
|
||||
t.append(u'%s' % x.to_object.title)
|
||||
else:
|
||||
t.append(u'<a href="%s">%s</a>' % (url, x.to_object.title))
|
||||
return ', '.join(t)
|
||||
|
||||
@property
|
||||
def topic_titles(self):
|
||||
|
|
|
@ -71,9 +71,14 @@ class HistoLine(Field):
|
|||
def authors_html_str(self):
|
||||
if not self.authors:
|
||||
return ''
|
||||
return ', '.join([u'<a href="%s">%s</a>' % (x.to_object.absolute_url(), x.to_object.title)
|
||||
for x in self.authors])
|
||||
|
||||
t = []
|
||||
for x in self.authors:
|
||||
url = x.to_object.absolute_url()
|
||||
if 'ministres' in url:
|
||||
t.append(u'%s' % x.to_object.title)
|
||||
else:
|
||||
t.append(u'<a href="%s">%s</a>' % (url, x.to_object.title))
|
||||
return ', '.join(t)
|
||||
|
||||
@property
|
||||
def doc_pages_url(self):
|
||||
|
|
Reference in New Issue