Commits

Shitiz Garg committed e63c9c8

Move revision info to the end

  • Participants
  • Parent commits d5c6c9a

Comments (0)

Files changed (3)

MoinMoin/items/__init__.py

 
     _render_data_diff_text = _render_data_diff
     _render_data_diff_raw = _render_data_diff
-    
+
     def _render_data_diff_atom(self, oldrev, newrev):
-        return render_template('atom.html', 
+        return render_template('atom.html',
                                oldrev=oldrev, newrev=newrev, get='binary',
                                content=Markup(self._render_data()))
 

MoinMoin/templates/atom.html

 {%- elif get == 'comment_cont_merge' -%}
     <p style="font-size: 14px">...{{ comment }}</p> <br /> {{ content }}
 {%- elif get == 'first_revision' -%}
+    {{ content }}
+    <br />
     <table class="moin-diff" cellpadding="10" width="100%">
         <tr>
             <td class="moin-diff-header" style="width: 100%;">
             </td>
         </tr>
     </table>
-    <br />
-    {{ content }}
     <strong>{{ safe_style() }}</strong>
 {%- elif get == 'binary' -%}
+    {{ content }}
+    <br />
     <table class="moin-diff" cellpadding="10" width="100%">
         <tr>
             <td class="moin-diff-header" style="width: 50%;">
             </td>
         </tr>
     </table>
-    <br />
-    {{ content }}
     {{ safe_style() }}
 {%- endif -%}

MoinMoin/templates/diff_text_atom.html

     </div>
 {% endmacro %}
 <table class="moin-diff" style="width: 100%;">
+    {% for llineno, lcontent, rlineno, rcontent in diffs %}
+        <tr>
+            <td style="vertical-align: top;">{{ llineno }}:</td>
+            <td class="moin-diff-removed" style="vertical-align: top; background-color:#ff9; word-wrap: break-word;"><blockquote>{{ lcontent }}</blockquote></td>
+            <td style="vertical-align: top;">{{ rlineno }}:</td>
+            <td class="moin-diff-added" style="vertical-align: top; background-color: #cfc; word-wrap: break-word;"><blockquote>{{ rcontent }}</blockquote></td>
+        </tr>
+    {% endfor %}
     <tr>
         <td class="moin-diff-header-line" style="width: 3%;">
         </td>
         </td>
         <td class="moin-diff-header" style="width: 47%;">
             <strong>{{ show_meta(newrev) }}</strong>
-        </td>    </tr>
-    {% for llineno, lcontent, rlineno, rcontent in diffs %}
-        <tr>
-            <td style="vertical-align: top;">{{ llineno }}:</td>
-            <td class="moin-diff-removed" style="vertical-align: top; background-color:#ff9; word-wrap: break-word;"><blockquote>{{ lcontent }}</blockquote></td>
-            <td style="vertical-align: top;">{{ rlineno }}:</td>
-            <td class="moin-diff-added" style="vertical-align: top; background-color: #cfc; word-wrap: break-word;"><blockquote>{{ rcontent }}</blockquote></td>
-        </tr>
-    {% endfor %}
+        </td>    
+    </tr>
 </table>
 <style type="text/css">
     .moin-diff-added span { background-color: #80FF80; }