changeset 3293:65adbf84a0fb

AttachFile: Make the download link more prominent
author Radomir Dopieralski <moindev@sheep.art.pl>
date Tue, 18 Mar 2008 01:25:15 +0100
parents 69e39cb66e38
children e342c92094f4
files MoinMoin/action/AttachFile.py wiki/htdocs/modern/css/screen.css
diffstat 2 files changed, 13 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/AttachFile.py	Mon Mar 17 20:31:41 2008 +0100
+++ b/MoinMoin/action/AttachFile.py	Tue Mar 18 01:25:15 2008 +0100
@@ -944,7 +944,7 @@
     request.write('<h2>' + _("Attachment '%(filename)s'") % {'filename': filename} + '</h2>')
     # show a download link above the content
     label = _('Download')
-    link = (fmt.url(1, getAttachUrl(pagename, filename, request, do='get')) +
+    link = (fmt.url(1, getAttachUrl(pagename, filename, request, do='get'), css_class="download") +
             fmt.text(label) +
             fmt.url(0))
     request.write('%s<br><br>' % link)
--- a/wiki/htdocs/modern/css/screen.css	Mon Mar 17 20:31:41 2008 +0100
+++ b/wiki/htdocs/modern/css/screen.css	Tue Mar 18 01:25:15 2008 +0100
@@ -19,6 +19,18 @@
 a:visited { text-decoration: none; color: blue; }
 a:visited:hover { text-decoration: none; color: red; }
 
+a.download {
+    display: block;
+    font-size: 120%; 
+    letter-spacing: 0.05em;
+    font-weight: bold;
+    background: #E7E7E7;
+    border: 1px solid #9C9C9C;
+    padding: 0.5em;
+    width: 7em;
+    text-align: center;
+}
+
 input {
     /* does strange effect to button (text size becomes bigger when clicking)
     font-size: 1em;