chiark / gitweb /
Macro-ize (most) <A>-based buttons
[disorder] / templates / playing.tmpl
index 07cbd6a7b99d07194f38c32630895d77c6bb5843..a7bb804cd4900f83c3b012e2c88be8066d265623 100644 (file)
@@ -25,11 +25,9 @@ USA
   @#  @action should be the action to switch to the opposite state
   @#  @state should be the current state
   @define {onoff} {class action state}
-          {<a class=button
-              href="@url?action=@action@back"
-              title="@label{playing.@q{@action}verbose}">
-             @label{playing.@class}
-           </a>
+          {@actbutton{@label{playing.@class}}
+                     {@label{playing.@q{@action}verbose}}
+                     {@action}
            <img width=@width height=@height class=imgbutton
                 src="@image{@state}">}