public
Fork of benburkert/cruisecontrolrb
Description: CruiseControl.rb is a continuous integration tool, written in Ruby. It is quick to install, simple to use and easy to hack.
Homepage: http://cruisecontrolrb.thoughtworks.com/
Clone URL: git://github.com/dustin/cruisecontrolrb.git
Search Repo:
Don't display the build button if it's disabled.
dustin (author)
Thu May 15 00:30:44 -0700 2008
commit  e8f79a9f74a460b9c44082badb98677024eca8c8
tree    805c35434c43202caf77b9c229ff14a7c62dfe58
parent  36561b7139f316e594ef45fdaf2740c8984d9999
...
35
36
37
38
39
 
 
 
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
 
 
 
 
 
 
 
 
 
 
 
58
59
60
...
35
36
37
 
 
38
39
40
41
42
43
44
45
 
 
 
 
 
 
 
 
 
 
 
 
 
46
47
48
49
50
51
52
53
54
55
56
57
58
59
0
@@ -35,26 +35,25 @@
0
   </td>
0
 
0
   <td class="builder_control">
0
- <div class="buttons">
0
- <% form_remote_tag(
0
+ <% if Configuration.disable_build_now -%>
0
+ <div class="buttons">
0
+ <% form_remote_tag(
0
              :url => { :action => 'build', :id => project },
0
              :before => "$('build_#{project.to_param}').disabled = true; " +
0
                         "$('build_#{project.to_param}').className = 'build_button_disabled'; " +
0
                         "Element.update('build_#{project.to_param}', 'Wait...')"
0
            ) do %>
0
- <button
0
- <% if Configuration.disable_build_now -%>
0
- onclick="alert('Build Now button is disabled on this site.'); return false;"
0
- <% end -%>
0
- id="build_<%= project.to_param %>" type="submit" class="build_button" value="txt" alt="Build Now">
0
- <% if project.builder_state_and_activity == 'builder_down' %>
0
- Start Builder
0
- <% else %>
0
- Build Now
0
- <% end %>
0
- </button>
0
- <% end %>
0
- </div>
0
+ <button id="build_<%= project.to_param %>"
0
+ type="submit" class="build_button" value="txt" alt="Build Now">
0
+ <% if project.builder_state_and_activity == 'builder_down' %>
0
+ Start Builder
0
+ <% else %>
0
+ Build Now
0
+ <% end %>
0
+ </button>
0
+ <% end %>
0
+ </div>
0
+ <% end %>
0
     <%= display_builder_state(project.builder_state_and_activity) %>
0
   </td>
0
 

Comments

    No one has commented yet.