move courses mixed To projecthelper From applicantionHelper
This commit is contained in:
parent
c4bf9a8f72
commit
42332201f2
|
@ -28,8 +28,6 @@ module ApplicationHelper
|
||||||
include AvatarHelper
|
include AvatarHelper
|
||||||
## added by william
|
## added by william
|
||||||
include PraiseTreadHelper
|
include PraiseTreadHelper
|
||||||
# add by nyan
|
|
||||||
include CoursesHelper
|
|
||||||
|
|
||||||
extend Forwardable
|
extend Forwardable
|
||||||
def_delegators :wiki_helper, :wikitoolbar_for, :heads_for_wiki_formatter
|
def_delegators :wiki_helper, :wikitoolbar_for, :heads_for_wiki_formatter
|
||||||
|
|
|
@ -19,6 +19,9 @@
|
||||||
|
|
||||||
include AvatarHelper
|
include AvatarHelper
|
||||||
module ProjectsHelper
|
module ProjectsHelper
|
||||||
|
# add by nyan
|
||||||
|
include CoursesHelper
|
||||||
|
|
||||||
def link_to_version(version, options = {})
|
def link_to_version(version, options = {})
|
||||||
return '' unless version && version.is_a?(Version)
|
return '' unless version && version.is_a?(Version)
|
||||||
link_to_if version.visible?, format_version_name(version), { :controller => 'versions', :action => 'show', :id => version }, options
|
link_to_if version.visible?, format_version_name(version), { :controller => 'versions', :action => 'show', :id => version }, options
|
||||||
|
|
Loading…
Reference in New Issue