This commit is contained in:
BOHUNG 2020-01-13 15:04:03 +08:00
parent 6aa0d546ee
commit 2d9524f5b0
1 changed files with 2 additions and 2 deletions

View File

@ -16,11 +16,11 @@ end
@patchfile_li_choices = File.read(app_path+"/patchfile_li_choices.txt")
Dir.chdir(ENV['PWD']+'/app/views/shared') do
@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>')
@file_text.insert(@indert_index , @patchfile_li_choices)
end
if @file_text.include?('patchfile_li')
if !@file_text.include?('patchfile_li')
@indert_index = @file_text.index('</nav>')
@file_text.insert(@indert_index , @patchfile_li_choices)
end