create_scm_button.patch
| app/views/repositories/_form.html.erb (Arbeitskopie) | ||
|---|---|---|
| 18 | 18 | |
| 19 | 19 |
<% button_disabled = true %> |
| 20 | 20 |
<% if @repository %> |
| 21 |
<% button_disabled = ! @repository.class.scm_available %> |
|
| 21 |
<% button_disabled = ! @repository.class.scm_available || ( !ScmConfig['allow_add_local'] && @repository.new_record?) %>
|
|
| 22 | 22 |
<%= repository_field_tags(f, @repository)%> |
| 23 | 23 |
<% end %> |
| 24 | 24 |
</div> |