Mercurial > hg > soundsoftware-site
comparison app/helpers/repositories_helper.rb @ 318:f7c525dc7585 luisf
Merge from branch "live"
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Mon, 28 Mar 2011 18:17:06 +0100 |
parents | c87ed8a009e5 |
children | 350acce374a2 |
comparison
equal
deleted
inserted
replaced
297:e941e6aa2b7c | 318:f7c525dc7585 |
---|---|
143 def repository_field_tags(form, repository) | 143 def repository_field_tags(form, repository) |
144 method = repository.class.name.demodulize.underscore + "_field_tags" | 144 method = repository.class.name.demodulize.underscore + "_field_tags" |
145 send(method, form, repository) if repository.is_a?(Repository) && respond_to?(method) && method != 'repository_field_tags' | 145 send(method, form, repository) if repository.is_a?(Repository) && respond_to?(method) && method != 'repository_field_tags' |
146 end | 146 end |
147 | 147 |
148 | |
149 def ssamr_scm_update(repository) | |
150 check_box_tag('repository_scm', value = "1", checked = false, onchange => remote_function(:url => { :controller => 'repositories', :action => 'ssamr_edit', :id => @project }, :method => :get, :with => "Form.serialize(this.form)")) | |
151 | |
152 end | |
153 | |
154 def scm_select_tag(repository) | 148 def scm_select_tag(repository) |
155 scm_options = [["--- #{l(:actionview_instancetag_blank_option)} ---", '']] | 149 scm_options = [["--- #{l(:actionview_instancetag_blank_option)} ---", '']] |
156 Redmine::Scm::Base.all.each do |scm| | 150 Redmine::Scm::Base.all.each do |scm| |
157 scm_options << ["Repository::#{scm}".constantize.scm_name, scm] if Setting.enabled_scm.include?(scm) || (repository && repository.class.name.demodulize == scm) | 151 scm_options << ["Repository::#{scm}".constantize.scm_name, scm] if Setting.enabled_scm.include?(scm) || (repository && repository.class.name.demodulize == scm) |
158 end | 152 end |