equal
deleted
inserted
replaced
420 |
420 |
421 def cell_call(self, row, col): |
421 def cell_call(self, row, col): |
422 entity = self.cw_rset.get_entity(row, col) |
422 entity = self.cw_rset.get_entity(row, col) |
423 self.w(u'<h1>Welcome to the "%s" community</h1>' % entity.printable_value('name')) |
423 self.w(u'<h1>Welcome to the "%s" community</h1>' % entity.printable_value('name')) |
424 if entity.display_cw_logo(): |
424 if entity.display_cw_logo(): |
425 self.w(u'<img src="http://www.cubicweb.org/doc/en/_static/cubicweb.png"/>') |
425 self.w(u'<img src="https://docs.cubicweb.org/_static/logo-cubicweb-small.svg"/>') |
426 if entity.description: |
426 if entity.description: |
427 self.w(u'<p>%s</p>' % entity.printable_value('description')) |
427 self.w(u'<p>%s</p>' % entity.printable_value('description')) |
428 |
428 |
429 Then each community whose description contains 'CW' is shown with the |cubicweb| |
429 Then each community whose description contains 'CW' is shown with the |cubicweb| |
430 logo in front of it. |
430 logo in front of it. |
520 def render_entity_title(self, entity): |
520 def render_entity_title(self, entity): |
521 self.w(u'<h1>Welcome to the "%s" community</h1>' % entity.printable_value('name')) |
521 self.w(u'<h1>Welcome to the "%s" community</h1>' % entity.printable_value('name')) |
522 |
522 |
523 def render_entity_attributes(self, entity): |
523 def render_entity_attributes(self, entity): |
524 if entity.display_cw_logo(): |
524 if entity.display_cw_logo(): |
525 self.w(u'<img src="http://www.cubicweb.org/doc/en/_static/cubicweb.png"/>') |
525 self.w(u'<img src="https://docs.cubicweb.org/_static/logo-cubicweb-small.svg"/>') |
526 if entity.description: |
526 if entity.description: |
527 self.w(u'<p>%s</p>' % entity.printable_value('description')) |
527 self.w(u'<p>%s</p>' % entity.printable_value('description')) |
528 |
528 |
529 It appears now properly: |
529 It appears now properly: |
530 |
530 |