Feature #4273 » scm-info-view-select.diff
app/helpers/repositories_helper.rb | ||
---|---|---|
143 | 143 |
def scm_select_tag(repository) |
144 | 144 |
scm_options = [["--- #{l(:actionview_instancetag_blank_option)} ---", '']] |
145 | 145 |
Redmine::Scm::Base.all.each do |scm| |
146 |
scm_options << ["Repository::#{scm}".constantize.scm_name, scm] if Setting.enabled_scm.include?(scm) || (repository && repository.class.name.demodulize == scm) |
|
146 |
scm_class = "Repository::#{scm}".constantize |
|
147 |
if ( Setting.enabled_scm.include?(scm) && scm_class.scm_available ) || |
|
148 |
(repository && repository.class.name.demodulize == scm) |
|
149 |
scm_options << [scm_class.scm_name, scm] |
|
150 |
end |
|
147 | 151 |
end |
148 | 152 |
|
149 | 153 |
select_tag('repository_scm', |