Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URB-3062. Fix column title format #226

Open
wants to merge 1 commit into
base: urban2.7.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions news/URB-3062.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fix column title format
[jchandelle]
4 changes: 2 additions & 2 deletions src/Products/urban/browser/table/column.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def renderTitleLink(self, urbanlist_item):
title_words.insert(15 * (split + 1), "<br />")
title = " ".join(title_words)

title = '<a href="%s" class="%s">%s</a>' % (url, css_class, title)
title = '<a href="{}" class="{}">{}</a>'.format(url, css_class, title)
return title

def renderCell(self, urbanlist_item):
Expand Down Expand Up @@ -236,7 +236,7 @@ def render(self):
if tel:
address = "%s<br /><span>%s</span>" % (address, tel)

title = "%s%s" % (title, address)
title = "{}{}".format(title, address)
return title


Expand Down