 
     forceFloating = (dom.body.attribute "data-floating-console") == "true"
 
+    button = (action, icon, label, disabled = false) -> """
+        <button data-action="#{action}" class="btn btn-default btn-mini">
+          #{glyph icon} #{label}
+        </button>
+      """
+
+
     try
       # FireFox will throw an exception if you even access the console object and it does
       # not exist. Wow!

          dom.body.prepend floatingConsole

          messages = floatingConsole.findFirst ".message-container"

          floatingConsole.on "click", "[data-action=clear]", ->
            floatingConsole.hide()


            return false

          floatingConsole.on "change keyup", "input", ->
            updateFilter @value()

            for e in messages.children()
