Show More
@@ -1034,7 +1034,7 b' def urlify_text(s, repo_name=None, link_' | |||||
1034 | hash_ = match_obj.group('hash') |
|
1034 | hash_ = match_obj.group('hash') | |
1035 | if hash_ is not None and repo_name is not None: |
|
1035 | if hash_ is not None and repo_name is not None: | |
1036 | from kallithea.config.routing import url # doh, we need to re-import url to mock it later |
|
1036 | from kallithea.config.routing import url # doh, we need to re-import url to mock it later | |
1037 |
return '<a class=" |
|
1037 | return '<a class="changeset_hash" href="%(url)s">%(hash)s</a>' % { | |
1038 | 'url': url('changeset_home', repo_name=repo_name, revision=hash_), |
|
1038 | 'url': url('changeset_home', repo_name=repo_name, revision=hash_), | |
1039 | 'hash': hash_, |
|
1039 | 'hash': hash_, | |
1040 | } |
|
1040 | } |
@@ -1586,23 +1586,6 b' table#changesets tr > td.mid .message a:' | |||||
1586 | margin-left: 40px !important; |
|
1586 | margin-left: 40px !important; | |
1587 | } |
|
1587 | } | |
1588 |
|
1588 | |||
1589 | #compare_branches + div.panel-body .revision-link, |
|
|||
1590 | #compare_tags + div.panel-body .revision-link, |
|
|||
1591 | #compare_bookmarks + div.panel-body .revision-link, |
|
|||
1592 | div.panel-body #files_data .revision-link, |
|
|||
1593 | #repos_list_wrap .revision-link, |
|
|||
1594 | #shortlog_data .revision-link { |
|
|||
1595 | font-weight: normal !important; |
|
|||
1596 | font-family: monospace; |
|
|||
1597 | font-size: 12px; |
|
|||
1598 | color: #577632; |
|
|||
1599 | } |
|
|||
1600 |
|
||||
1601 | .revision-link { |
|
|||
1602 | color: #3F6F9F; |
|
|||
1603 | font-weight: bold !important; |
|
|||
1604 | } |
|
|||
1605 |
|
||||
1606 | .issue-tracker-link { |
|
1589 | .issue-tracker-link { | |
1607 | color: #3F6F9F; |
|
1590 | color: #3F6F9F; | |
1608 | font-weight: bold !important; |
|
1591 | font-weight: bold !important; | |
@@ -2024,11 +2007,6 b" table.code-browser i[class^='icon-'] {" | |||||
2024 | font-size: 14px; |
|
2007 | font-size: 14px; | |
2025 | } |
|
2008 | } | |
2026 |
|
2009 | |||
2027 | .breadcrumbs .hash { |
|
|||
2028 | text-transform: none; |
|
|||
2029 | color: #fff; |
|
|||
2030 | } |
|
|||
2031 |
|
||||
2032 | div#legend_data { |
|
2010 | div#legend_data { | |
2033 | padding-left: 10px; |
|
2011 | padding-left: 10px; | |
2034 | } |
|
2012 | } |
@@ -9,7 +9,7 b'' | |||||
9 | </%block> |
|
9 | </%block> | |
10 |
|
10 | |||
11 | <%def name="breadcrumbs_links()"> |
|
11 | <%def name="breadcrumbs_links()"> | |
12 | ${_('Changeset')} - <span class='hash'>${h.show_id(c.changeset)}</span> |
|
12 | ${_('Changeset')} - <span class='changeset_hash'>${h.show_id(c.changeset)}</span> | |
13 | </%def> |
|
13 | </%def> | |
14 |
|
14 | |||
15 | <%block name="header_menu"> |
|
15 | <%block name="header_menu"> |
@@ -40,7 +40,7 b'' | |||||
40 | <%def name="revision(name,rev,tip,author,last_msg)"> |
|
40 | <%def name="revision(name,rev,tip,author,last_msg)"> | |
41 | <div> |
|
41 | <div> | |
42 | %if rev >= 0: |
|
42 | %if rev >= 0: | |
43 | <a data-toggle="popover" title="${author | entity}" data-content="${last_msg | entity}" class="hash" href="${h.url('changeset_home',repo_name=name,revision=tip)}">${'r%s:%s' % (rev,h.short_id(tip))}</a> |
|
43 | <a data-toggle="popover" title="${author | entity}" data-content="${last_msg | entity}" class="changeset_hash" href="${h.url('changeset_home',repo_name=name,revision=tip)}">${'r%s:%s' % (rev,h.short_id(tip))}</a> | |
44 | %else: |
|
44 | %else: | |
45 | ${_('No changesets yet')} |
|
45 | ${_('No changesets yet')} | |
46 | %endif |
|
46 | %endif |
@@ -92,7 +92,7 b'' | |||||
92 | </td> |
|
92 | </td> | |
93 | <td> |
|
93 | <td> | |
94 | %if node.is_file(): |
|
94 | %if node.is_file(): | |
95 |
<a data-toggle="tooltip" title="${node.last_changeset.message}" href="${h.url('changeset_home',repo_name=c.repo_name,revision=node.last_changeset.raw_id)}" class=" |
|
95 | <a data-toggle="tooltip" title="${node.last_changeset.message}" href="${h.url('changeset_home',repo_name=c.repo_name,revision=node.last_changeset.raw_id)}" class="changeset_hash">${h.show_id(node.last_changeset)}</a> | |
96 | %endif |
|
96 | %endif | |
97 | </td> |
|
97 | </td> | |
98 | <td> |
|
98 | <td> |
@@ -287,7 +287,7 b' class TestLibs(TestController):' | |||||
287 | repo_name=repo_name, repo_id=23, **overrides) |
|
287 | repo_name=repo_name, repo_id=23, **overrides) | |
288 | assert clone_url == expected |
|
288 | assert clone_url == expected | |
289 |
|
289 | |||
290 |
def _quick_url(self, text, tmpl="""<a class=" |
|
290 | def _quick_url(self, text, tmpl="""<a class="changeset_hash" href="%s">%s</a>""", url_=None): | |
291 | """ |
|
291 | """ | |
292 | Changes `some text url[foo]` => `some text <a href="/">foo</a> |
|
292 | Changes `some text url[foo]` => `some text <a href="/">foo</a> | |
293 |
|
293 | |||
@@ -363,7 +363,7 b' class TestLibs(TestController):' | |||||
363 | """<b>@mention</b> <b>@someone</b>""", |
|
363 | """<b>@mention</b> <b>@someone</b>""", | |
364 | ""), |
|
364 | ""), | |
365 | ("deadbeefcafe 123412341234", |
|
365 | ("deadbeefcafe 123412341234", | |
366 |
"""<a class=" |
|
366 | """<a class="changeset_hash" href="/repo_name/changeset/deadbeefcafe">deadbeefcafe</a> <a class="changeset_hash" href="/repo_name/changeset/123412341234">123412341234</a>""", | |
367 | ""), |
|
367 | ""), | |
368 | ("We support * markup for *bold* markup of *single or multiple* words, " |
|
368 | ("We support * markup for *bold* markup of *single or multiple* words, " | |
369 | "*a bit @like http://slack.com*. " |
|
369 | "*a bit @like http://slack.com*. " | |
@@ -390,7 +390,7 b' class TestLibs(TestController):' | |||||
390 |
|
390 | |||
391 | @parametrize('sample,expected', [ |
|
391 | @parametrize('sample,expected', [ | |
392 | ("deadbeefcafe @mention, and http://foo.bar/ yo", |
|
392 | ("deadbeefcafe @mention, and http://foo.bar/ yo", | |
393 |
"""<a class=" |
|
393 | """<a class="changeset_hash" href="/repo_name/changeset/deadbeefcafe">deadbeefcafe</a>""" | |
394 | """<a class="message-link" href="#the-link"> <b>@mention</b>, and </a>""" |
|
394 | """<a class="message-link" href="#the-link"> <b>@mention</b>, and </a>""" | |
395 | """<a href="http://foo.bar/">http://foo.bar/</a>""" |
|
395 | """<a href="http://foo.bar/">http://foo.bar/</a>""" | |
396 | """<a class="message-link" href="#the-link"> yo</a>"""), |
|
396 | """<a class="message-link" href="#the-link"> yo</a>"""), |
General Comments 0
You need to be logged in to leave comments.
Login now