changeset 473:b33a2dca5e8f

diff link added on global history page, to view diff between latest revision and first revision
author Akash Sinha <akash2607@gmail.com>
date Sat, 25 Jun 2011 10:44:59 +0530
parents c04d1ca903c7
children b32034020a58
files MoinMoin/templates/global_history.html MoinMoin/themes/modernized/static/css/common.css
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/templates/global_history.html	Fri Jun 24 16:36:24 2011 +0530
+++ b/MoinMoin/templates/global_history.html	Sat Jun 25 10:44:59 2011 +0530
@@ -44,7 +44,10 @@
                     <table>
                     {% for rev in revs %}
                         <tr>
-                            <td class="moin-action moin-history-{{ rev.action|lower }}" title="{{ rev.action }}">&nbsp;</td>
+                            {% set item_latest_revno = rev.revnos[0] %}
+                            <td class="moin-action" title="{{ _("DIFF") }}">                                
+                                <a href="{{ url_for('frontend.diff', item_name=rev.item_name, rev1=item_latest_revno, rev2=0) }}" class="moin-history-{{ rev.action|lower }}"></a>
+                            </td>
                             <td class="moin-history-item"><a href="{{ url_for('frontend.show_item', item_name=rev.item_name) }}">{{ rev.item_name }}</a></td>
                             <td class="moin-history-time">{{ rev.timestamp|timeformat }}</td>
                             <td class="moin-wordbreak moin-history-contenttype">{{ rev.contenttype }}</td>
--- a/MoinMoin/themes/modernized/static/css/common.css	Fri Jun 24 16:36:24 2011 +0530
+++ b/MoinMoin/themes/modernized/static/css/common.css	Sat Jun 25 10:44:59 2011 +0530
@@ -219,6 +219,7 @@
 .moin-history-editorinfo { width: 17%; }
 .moin-history-comment { width: 25%; }
 .moin-action { width: 2%; }
+.moin-action a:hover { text-decoration: none; }
 .moin-history-container { border: 1px solid #4D7DA9; }
 .moin-history-container-header { background: #81BBF2; margin: 0px; padding: 4px; color: #3b3131; border-bottom: 1px solid #4D7DA9; }
 .moin-history-container-header h2 { display: inline; }