# HG changeset patch # User Thomas De Schampheleire # Date 2018-06-09 19:39:10 # Node ID eac20c4b7b2031202f9229999a30ab5f4b2836bd # Parent 401fe08bc6b8c7b5301f07f854d5c02d3201ed9d style: use monospace for changeset messages Similar to commits 9005c37dbe21 and 6e65c2153baa that make PR descriptions display in a monospace font, apply monospace on changeset messages. Note that in the files template, the reference to the non-existing 'commit' class can be replaced instead of appending to it. diff --git a/kallithea/templates/changeset/changeset.html b/kallithea/templates/changeset/changeset.html --- a/kallithea/templates/changeset/changeset.html +++ b/kallithea/templates/changeset/changeset.html @@ -133,7 +133,7 @@ % endif -
${h.urlify_text(c.changeset.message, c.repo_name)}
+
${h.urlify_text(c.changeset.message, c.repo_name)}
<% a_rev, cs_rev, file_diff_data = c.changes[c.changeset.raw_id] %> % if c.limited_diff: diff --git a/kallithea/templates/files/files_source.html b/kallithea/templates/files/files_source.html --- a/kallithea/templates/files/files_source.html +++ b/kallithea/templates/files/files_source.html @@ -48,7 +48,7 @@ ${h.gravatar_div(h.email_or_none(c.changeset.author), size=16)}
${h.person(c.changeset.author)}
-
${h.urlify_text(c.changeset.message,c.repo_name)}
+
${h.urlify_text(c.changeset.message,c.repo_name)}
%if c.file.is_browser_compatible_image(): diff --git a/kallithea/tests/functional/test_files.py b/kallithea/tests/functional/test_files.py --- a/kallithea/tests/functional/test_files.py +++ b/kallithea/tests/functional/test_files.py @@ -102,7 +102,7 @@ class TestFilesController(TestController revision='8911406ad776fdd3d0b9932a2e89677e57405a48', f_path='vcs/nodes.py')) - response.mustcontain("""
Partially implemented #16. filecontent/commit message/author/node name are safe_unicode now.
""" + response.mustcontain("""
Partially implemented #16. filecontent/commit message/author/node name are safe_unicode now.
""" """In addition some other __str__ are unicode as well
""" """Added test for unicode
""" """Improved test to clone into uniq repository.
"""