Browse Source

fixed bug in templates

Signed-off-by: Henry Chen <chen_hanli@163.com>
Henry Chen 9 years ago
parent
commit
e9680a2e17

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

@@ -1,7 +1,7 @@
 {% extends "cranefly/layout.html" %}
 {% 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>
 {{ macros.parents_list(parents) }}
@@ -78,4 +78,4 @@
 
 {% 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 %}
-{%- endmacro %}
+{%- endmacro %}

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

@@ -1,7 +1,7 @@
 {% extends "cranefly/layout.html" %}
 {% 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>
 {{ macros.parents_list(parents) }}