##// END OF EJS Templates
Moved #link_to_version to ApplicationHelper (#17431)....
Jean-Philippe Lang -
r12969:dd11d70eb962
parent child
Show More
@@ -1,7 +1,6
1 source 'https://rubygems.org'
1 source 'https://rubygems.org'
2
2
3 gem "rails", "3.2.19"
3 gem "rails", "3.2.19"
4 gem "rake", "~> 10.1.1"
5 gem "jquery-rails", "~> 2.0.2"
4 gem "jquery-rails", "~> 2.0.2"
6 gem "coderay", "~> 1.1.0"
5 gem "coderay", "~> 1.1.0"
7 gem "fastercsv", "~> 1.5.0", :platforms => [:mri_18, :mingw_18, :jruby]
6 gem "fastercsv", "~> 1.5.0", :platforms => [:mri_18, :mingw_18, :jruby]
@@ -157,6 +157,12 module ApplicationHelper
157 end
157 end
158 end
158 end
159
159
160 # Generates a link to a version
161 def link_to_version(version, options = {})
162 return '' unless version && version.is_a?(Version)
163 link_to_if version.visible?, format_version_name(version), version_path(version), options
164 end
165
160 # Helper that formats object for html or text rendering
166 # Helper that formats object for html or text rendering
161 def format_object(object, html=true, &block)
167 def format_object(object, html=true, &block)
162 if block_given?
168 if block_given?
@@ -18,11 +18,6
18 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19
19
20 module ProjectsHelper
20 module ProjectsHelper
21 def link_to_version(version, options = {})
22 return '' unless version && version.is_a?(Version)
23 link_to_if version.visible?, format_version_name(version), version_path(version), options
24 end
25
26 def project_settings_tabs
21 def project_settings_tabs
27 tabs = [{:name => 'info', :action => :edit_project, :partial => 'projects/edit', :label => :label_information_plural},
22 tabs = [{:name => 'info', :action => :edit_project, :partial => 'projects/edit', :label => :label_information_plural},
28 {:name => 'modules', :action => :select_project_modules, :partial => 'projects/settings/modules', :label => :label_module_plural},
23 {:name => 'modules', :action => :select_project_modules, :partial => 'projects/settings/modules', :label => :label_module_plural},
General Comments 0
You need to be logged in to leave comments. Login now