changeset 4941:3e7e3a01a833

css class ActionText renamed to action, test adapted
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sun, 09 Aug 2009 01:24:15 +0200
parents efed8b6bb030
children dce251f8cfc3
files MoinMoin/macro/Action.py MoinMoin/macro/_tests/test_Action.py MoinMoin/web/static/htdocs/modernized/css/common.css
diffstat 3 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/macro/Action.py	Sun Aug 09 00:54:12 2009 +0200
+++ b/MoinMoin/macro/Action.py	Sun Aug 09 01:24:15 2009 +0200
@@ -39,7 +39,7 @@
         _kwargs['action'] = action
         url = page.url(macro.request, querystr=_kwargs)
         return ''.join([
-            macro.formatter.url(1, url, css='TextAction'),
+            macro.formatter.url(1, url, css='action'),
             macro.formatter.text(text),
             macro.formatter.url(0),
         ])
--- a/MoinMoin/macro/_tests/test_Action.py	Sun Aug 09 00:54:12 2009 +0200
+++ b/MoinMoin/macro/_tests/test_Action.py	Sun Aug 09 01:24:15 2009 +0200
@@ -26,7 +26,7 @@
         m = make_macro(self.request, self.page)
         result = Action.macro_Action(m, 'raw')
         nuke_page(request, self.pagename)
-        expected = '<a href="/AutoCreatedMoinMoinTemporaryTestPageForAction?action=raw">raw</a>'
+        expected = '<a class="action" href="/AutoCreatedMoinMoinTemporaryTestPageForAction?action=raw">raw</a>'
         assert result == expected
 
 coverage_modules = ['MoinMoin.macro.Action']
--- a/MoinMoin/web/static/htdocs/modernized/css/common.css	Sun Aug 09 00:54:12 2009 +0200
+++ b/MoinMoin/web/static/htdocs/modernized/css/common.css	Sun Aug 09 01:24:15 2009 +0200
@@ -38,7 +38,7 @@
 a.attachment:before {content: url(../img/moin-attach.png); margin: 0 0.2em;}
 a.badinterwiki:before {content: url(../img/moin-inter.png); margin: 0 0.2em;}
 a.interwiki:before {content: url(../img/moin-inter.png); margin: 0 0.2em;}
-a.TextAction:before {content: url(../img/moin-action.png); margin: 0 0.2em;}
+a.action:before {content: url(../img/moin-action.png); margin: 0 0.2em;}
 
 li p {
 	margin: .25em 0;