changeset 463:08e3faf4c020

new separate macro added to display the editor info, which could be helpful when one just wants to display editor info.
author Akash Sinha <akash2607@gmail.com>
date Wed, 08 Jun 2011 02:15:03 +0530
parents 8c22eeb5c407
children 58a29a7fd016
files MoinMoin/templates/utils.html
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/templates/utils.html	Wed Jun 08 02:04:13 2011 +0530
+++ b/MoinMoin/templates/utils.html	Wed Jun 08 02:15:03 2011 +0530
@@ -1,5 +1,4 @@
-{% macro editor_info(rev) %}
-  {%- set info = get_editor_info(rev) -%}
+{% macro show_editor_info(info) %}
   {%- if info.uri -%}
       <a href="{{ info.uri }}" class="{{ info.css }}" title="{{ info.title }}">
   {%- elif info.email -%}
@@ -16,6 +15,12 @@
 {% endmacro %}
 
 
+{% macro editor_info(rev) %}
+  {%- set info = get_editor_info(rev) -%}
+  {{ show_editor_info(info) }}
+{% endmacro %}
+
+
 {% macro table(headings, rows) %}
 <table>
 <thead>