]> gitweb @ CieloNegro.org - Rakka.git/blobdiff - Rakka/Wiki/Interpreter/Base.hs
Resurrection from slight bitrot.
[Rakka.git] / Rakka / Wiki / Interpreter / Base.hs
index 5daba841ae7021abeabcff9ade57fc75baa29737..ed81494e62e4c671e13d4f2ba682251752ce8904 100644 (file)
@@ -11,6 +11,7 @@ import           Rakka.SystemConfig
 import           Rakka.Wiki
 import           Rakka.Wiki.Interpreter
 import           Text.XML.HXT.Arrow
+import           Text.XML.HXT.XPath
 
 
 interpreters :: [Interpreter]
@@ -103,7 +104,7 @@ otherLangsInterp
 -- <input type="button"
 --        value="Create new page"
 --        onclick="Rakka.newPage()"
---        class="newButton" />
+--        class="newButton controls" />
 newPageInterp :: Interpreter
 newPageInterp 
     = InlineCommandInterpreter {
@@ -114,7 +115,7 @@ newPageInterp
                 attrs = [ ("type"   , "button")
                         , ("value"  , label)
                         , ("onclick", "Rakka.newPage()")
-                        , ("class"  , "newButton")
+                        , ("class"  , "newButton controls")
                         ]
             in
               return (Input attrs)
@@ -124,7 +125,7 @@ newPageInterp
 -- <input type="button"
 --        value="Edit"
 --        onclick="Rakka.editPage(\"Foo\")"
---        class="editButton" />
+--        class="editButton controls" />
 editPageInterp :: Interpreter
 editPageInterp 
     = InlineCommandInterpreter {
@@ -136,7 +137,7 @@ editPageInterp
                 attrs = [ ("type"   , "button")
                         , ("value"  , label)
                         , ("onclick", "Rakka.editPage(\"" ++ name ++ "\")")
-                        , ("class"  , "editButton")
+                        , ("class"  , "editButton controls")
                         ]
             in
               return (Input attrs)
@@ -145,7 +146,7 @@ editPageInterp
 
 -- <input type="button"
 --        value="Login"
---        class="loginButton" />
+--        class="loginButton controls" />
 loginInterp :: Interpreter
 loginInterp 
     = InlineCommandInterpreter {
@@ -154,7 +155,7 @@ loginInterp
           = \ _ _ ->
             let attrs = [ ("type" , "button")
                         , ("value", "Login")
-                        , ("class", "loginButton")
+                        , ("class", "loginButton controls")
                         ]
             in
               return (Input attrs)
@@ -178,7 +179,7 @@ searchFieldInterp
 
 -- <input type="button"
 --        value="Configuration"
---        class="configButton" />
+--        class="configButton controls" />
 configurationInterp :: Interpreter
 configurationInterp 
     = InlineCommandInterpreter {
@@ -187,7 +188,7 @@ configurationInterp
           = \ _ _ ->
             let attrs = [ ("type" , "button")
                         , ("value", "Configuration")
-                        , ("class", "configButton")
+                        , ("class", "configButton controls")
                         ]
             in
               return (Input attrs)