changeset 476:a716e61ae9c7

contenttype texts are replaced by icons in global history page, all icons are GPL licensed (picked from tango icons library).
author Akash Sinha <akash2607@gmail.com>
date Wed, 29 Jun 2011 02:25:05 +0530
parents 630c21e18398
children 72899d48db41
files MoinMoin/templates/global_history.html MoinMoin/themes/__init__.py MoinMoin/themes/modernized/static/css/common.css MoinMoin/themes/modernized/static/img/moin-application.png MoinMoin/themes/modernized/static/img/moin-audio.png MoinMoin/themes/modernized/static/img/moin-drawing.png MoinMoin/themes/modernized/static/img/moin-image.png MoinMoin/themes/modernized/static/img/moin-package.png MoinMoin/themes/modernized/static/img/moin-pdf.png MoinMoin/themes/modernized/static/img/moin-text.png MoinMoin/themes/modernized/static/img/moin-video.png
diffstat 11 files changed, 16 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/templates/global_history.html	Sun Jun 26 14:33:17 2011 +0530
+++ b/MoinMoin/templates/global_history.html	Wed Jun 29 02:25:05 2011 +0530
@@ -48,9 +48,8 @@
                             <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-item"><a class="{{ rev.contenttype|contenttype_to_class }}" href="{{ url_for('frontend.show_item', item_name=rev.item_name) }}" title="{{ rev.contenttype }}">{{ rev.item_name }}</a></td>
                             <td class="moin-history-time">{{ rev.timestamp|timeformat }}</td>
-                            <td class="moin-wordbreak moin-history-contenttype">{{ rev.contenttype }}</td>
                             <td class="moin-history-links">
                                 {% for revno in rev.revnos %}
                                     {% if revno %}
--- a/MoinMoin/themes/__init__.py	Sun Jun 26 14:33:17 2011 +0530
+++ b/MoinMoin/themes/__init__.py	Wed Jun 29 02:25:05 2011 +0530
@@ -360,6 +360,11 @@
 
 MIMETYPE_TO_CLASS = {
     'application/pdf': 'pdf',
+    'application/zip': 'package',
+    'application/x-tar': 'package',
+    'application/x-twikidraw': 'drawing',
+    'application/x-anywikidraw': 'drawing',
+    'application/x-svgdraw': 'drawing',
 }
 
 def contenttype_to_class(contenttype):
--- a/MoinMoin/themes/modernized/static/css/common.css	Sun Jun 26 14:33:17 2011 +0530
+++ b/MoinMoin/themes/modernized/static/css/common.css	Wed Jun 29 02:25:05 2011 +0530
@@ -211,13 +211,13 @@
 #moin-page-history tr { border: 1px solid #4D7DA9; } 
 #moin-global-history th,
 #moin-page-history th { background-color: #81BBF2; border: 0px; font-size: 1.12em; padding: 6px .5em; text-align: left; }
-#moin-global-history td {  border: 0px; vertical-align: top;text-align: left; }
+#moin-global-history td {  border: 0px; vertical-align: top;text-align: left; padding: 0.4em 0.3em; }
 #moin-page-history td { background-color: #E6EAF0; border: 0px; vertical-align: top; }
 .moin-wordbreak { word-break: break-all;  word-wrap: break-word; } /* Firefox needs javascript assistance within tables */
 .moin-history-time { width: 10%; }
 .moin-history-contenttype { width: 18%; }
 .moin-history-editorinfo { width: 17%; }
-.moin-history-comment { width: 25%; }
+.moin-history-comment { width: 30%; }
 .moin-action { width: 2%; }
 .moin-action a:hover { text-decoration: none; }
 .moin-history-container { border: 1px solid #4D7DA9; }
@@ -372,13 +372,15 @@
 
 /* icons for links to different mimetypes */
 /* major types */
-a.moin-mime-text:before {}
-a.moin-mime-image:before { content: url(../img/moin-ftp.png); margin: 0 0.2em; }
-a.moin-mime-audio:before { content: url(../img/moin-ftp.png); margin: 0 0.2em; }
-a.moin-mime-video:before { content: url(../img/moin-ftp.png); margin: 0 0.2em; }
-a.moin-mime-application:before { content: url(../img/moin-ftp.png); margin: 0 0.2em; }
+a.moin-mime-text:before { content: url(../img/moin-text.png); margin: 0 0.2em; }
+a.moin-mime-image:before { content: url(../img/moin-image.png); margin: 0 0.2em; }
+a.moin-mime-audio:before { content: url(../img/moin-audio.png); margin: 0 0.2em; }
+a.moin-mime-video:before { content: url(../img/moin-video.png); margin: 0 0.2em; }
+a.moin-mime-application:before { content: url(../img/moin-application.png); margin: 0 0.2em; }
 /* some common specific types */
-a.moin-mime-pdf:before { content: url(../img/moin-ftp.png); margin: 0 0.2em; }
+a.moin-mime-pdf:before { content: url(../img/moin-pdf.png); margin: 0 0.2em; }
+a.moin-mime-package:before { content: url(../img/moin-package.png); margin: 0 0.2em; }
+a.moin-mime-drawing:before { content: url(../img/moin-drawing.png); margin: 0 0.2em; }
 
 /* Flash messages used by Flask */
 .moin-flash { margin: 0; padding: 6px 6px 6px 38px; background-color: #f0f2f5;
Binary file MoinMoin/themes/modernized/static/img/moin-application.png has changed
Binary file MoinMoin/themes/modernized/static/img/moin-audio.png has changed
Binary file MoinMoin/themes/modernized/static/img/moin-drawing.png has changed
Binary file MoinMoin/themes/modernized/static/img/moin-image.png has changed
Binary file MoinMoin/themes/modernized/static/img/moin-package.png has changed
Binary file MoinMoin/themes/modernized/static/img/moin-pdf.png has changed
Binary file MoinMoin/themes/modernized/static/img/moin-text.png has changed
Binary file MoinMoin/themes/modernized/static/img/moin-video.png has changed