<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -100,13 +100,9 @@ module Simplicity
 
     def button(options={})
       prefix = @object.new_record? ? &quot;Create&quot; : &quot;Save&quot;
-      label = &quot;#{prefix} #{options[:label] || @object_name.humanize}&quot;
-      list_item(
-        @template.content_tag(:button, 
-          @template.content_tag(:img, nil, :src =&gt; options[:img], :alt =&gt; label) + label, 
-          :type =&gt; &quot;submit&quot;
-        )
-      )
+      label = options[:label] || &quot;#{prefix @object_name.humanize}&quot;
+      button_content = options[:img] ? @template.content_tag(:img, nil, :src =&gt; options[:img], :alt =&gt; label) + label : label
+      list_item(@template.content_tag(:button, button_content, :type =&gt; &quot;submit&quot;))
     end
     
     def inner_fieldset(legend=nil, &amp;block)</diff>
      <filename>lib/simplicity/simple_form_builder.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>933d13994050f0a5089cc538f9d2c9c5c5a7a717</id>
    </parent>
  </parents>
  <author>
    <name>Ben Askins</name>
    <email>ben.askins@gmail.com</email>
  </author>
  <url>http://github.com/benaskins/simple-form-builder/commit/b292a1e05c1b69d36e465c3c36b37e3c8d16be2b</url>
  <id>b292a1e05c1b69d36e465c3c36b37e3c8d16be2b</id>
  <committed-date>2009-10-19T17:18:55-07:00</committed-date>
  <authored-date>2009-10-19T17:18:55-07:00</authored-date>
  <message>Make img buttons optional.</message>
  <tree>592965a254771d4b8596334123c91b891a962bf5</tree>
  <committer>
    <name>Ben Askins</name>
    <email>ben.askins@gmail.com</email>
  </committer>
</commit>
