Просмотр исходного кода

fixed bug in templates

Signed-off-by: Henry Chen <chen_hanli@163.com>
Henry Chen 9 лет назад
Родитель
Сommit
e9680a2e17
2 измененных файлов с 3 добавлено и 3 удалено
  1. 2 2
      templates/cranefly/threads/changelog.html
  2. 1 1
      templates/cranefly/threads/changelog_diff.html

+ 2 - 2
templates/cranefly/threads/changelog.html

@@ -1,7 +1,7 @@
 {% extends "cranefly/layout.html" %}
 {% extends "cranefly/layout.html" %}
 {% import "cranefly/macros.html" as macros with context %}
 {% import "cranefly/macros.html" as macros with context %}
 
 
-{% block title %}{{ macros.page_title(title=(_("Post #%(post)s Changelog", post=post.pk)),parent=thread.name) }}{% endblock %}
+{% block title %}{{ macros.page_title(title=(_("Post #%(post)s Changelog" % {'post': post.pk})),parent=thread.name) }}{% endblock %}
 
 
 {% block breadcrumb %}{{ super() }} <span class="divider"><i class="icon-chevron-right"></i></span></li>
 {% block breadcrumb %}{{ super() }} <span class="divider"><i class="icon-chevron-right"></i></span></li>
 {{ macros.parents_list(parents) }}
 {{ macros.parents_list(parents) }}
@@ -78,4 +78,4 @@
 
 
 {% macro edit_user(edit) -%}
 {% macro edit_user(edit) -%}
 {% if edit.user_id %}<a href="{{ url('user', user=edit.user_id, username=edit.user_slug) }}">{{ edit.user_name }}</a>{% else %}{{ edit.user_name }}{% endif %}
 {% if edit.user_id %}<a href="{{ url('user', user=edit.user_id, username=edit.user_slug) }}">{{ edit.user_name }}</a>{% else %}{{ edit.user_name }}{% endif %}
-{%- endmacro %}
+{%- endmacro %}

+ 1 - 1
templates/cranefly/threads/changelog_diff.html

@@ -1,7 +1,7 @@
 {% extends "cranefly/layout.html" %}
 {% extends "cranefly/layout.html" %}
 {% import "cranefly/macros.html" as macros with context %}
 {% import "cranefly/macros.html" as macros with context %}
 
 
-{% block title %}{{ macros.page_title(title=(_("Post #%(post)s Changelog", post=post.pk)),parent=thread.name) }}{% endblock %}
+{% block title %}{{ macros.page_title(title=(_("Post #%(post)s Changelog" % {'post': post.pk})),parent=thread.name) }}{% endblock %}
 
 
 {% block breadcrumb %}{{ super() }} <span class="divider"><i class="icon-chevron-right"></i></span></li>
 {% block breadcrumb %}{{ super() }} <span class="divider"><i class="icon-chevron-right"></i></span></li>
 {{ macros.parents_list(parents) }}
 {{ macros.parents_list(parents) }}