fix
This commit is contained in:
parent
6aa0d546ee
commit
2d9524f5b0
|
@ -16,11 +16,11 @@ end
|
||||||
@patchfile_li_choices = File.read(app_path+"/patchfile_li_choices.txt")
|
@patchfile_li_choices = File.read(app_path+"/patchfile_li_choices.txt")
|
||||||
Dir.chdir(ENV['PWD']+'/app/views/shared') do
|
Dir.chdir(ENV['PWD']+'/app/views/shared') do
|
||||||
@file_text = File.read("_side_bar.html.erb")
|
@file_text = File.read("_side_bar.html.erb")
|
||||||
if @file_text.include?('<div class="patchfile sub-nav-block icons-megaphone">')
|
if !@file_text.include?('<div class="patchfile sub-nav-block icons-megaphone">')
|
||||||
@indert_index = @file_text.index('</nav>')
|
@indert_index = @file_text.index('</nav>')
|
||||||
@file_text.insert(@indert_index , @patchfile_li_choices)
|
@file_text.insert(@indert_index , @patchfile_li_choices)
|
||||||
end
|
end
|
||||||
if @file_text.include?('patchfile_li')
|
if !@file_text.include?('patchfile_li')
|
||||||
@indert_index = @file_text.index('</nav>')
|
@indert_index = @file_text.index('</nav>')
|
||||||
@file_text.insert(@indert_index , @patchfile_li_choices)
|
@file_text.insert(@indert_index , @patchfile_li_choices)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue