You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: site_bar_helper.rb
    path of file: ./repos/refinerycms/core/app/helpers/refinery
    
    the code of the file until where you have to start completion: module Refinery
  module SiteBarHelper

    # Generates the link to 
    
    def site_bar_edit_link
      return nil if admin? || @page.nil?
      link_to t('refinery.admin.pages.edit', site_bar_translate_locale_args),
              refinery.admin_edit_page_path(@page.nested_url,
              :switch_locale => (@page.translations.first.locale unless @page.translated_to_default_locale?)),
              'data-turbolinks' => false
    end