Browse Source

[minor] hljs css fix for html tags, {next}=blank if not found

version-14
Anand Doshi 10 years ago
parent
commit
c15c6c4959
2 changed files with 5 additions and 2 deletions
  1. +1
    -1
      frappe/public/css/hljs.css
  2. +4
    -1
      frappe/website/template.py

+ 1
- 1
frappe/public/css/hljs.css View File

@@ -18,7 +18,7 @@ Original style from softwaremaniacs.org (c) Ivan Sagalaev <Maniac@SoftwareManiac


.hljs, .hljs,
.hljs-subst, .hljs-subst,
.hljs-tag .hljs-title,
/*.hljs-tag .hljs-title,*/
.nginx .hljs-title { .nginx .hljs-title {
color: black; color: black;
} }


+ 4
- 1
frappe/website/template.py View File

@@ -118,7 +118,10 @@ def add_index(out, context):
if next_item: if next_item:
if next_item.name[0]!="/": next_item.name = "/" + next_item.name if next_item.name[0]!="/": next_item.name = "/" + next_item.name
html = ('<p class="btn-next-wrapper"><a class="btn-next" href="{name}">'+_("Next")+': {title}</a></p>').format(**next_item) html = ('<p class="btn-next-wrapper"><a class="btn-next" href="{name}">'+_("Next")+': {title}</a></p>').format(**next_item)
out["content"] = out["content"].replace("{next}", html)
else:
html = ""

out["content"] = out["content"].replace("{next}", html)


def add_hero(out, context): def add_hero(out, context):
"""Add a hero element if specified in content or hooks. """Add a hero element if specified in content or hooks.


Loading…
Cancel
Save