app/helpers/geoblacklight_helper.rb
##
# Render help text popover for a given feature and translation key
# @return [HTML tag]
Render help text popover for a given feature and translation key
Render help text popover for a given feature and translation key
def render_help_text_entry(feature, key)
    if I18n.exists?("geoblacklight.help_text.#{feature}.#{key}", locale)
      help_text = I18n.t("geoblacklight.help_text.#{feature}.#{key}")
      content_tag :h3, class: 'help-text viewer_protocol h6' do
        content_tag :a, 'data': { toggle: 'popover', title: help_text[:title], content: help_text[:content] } do
          help_text[:title]
        end
      end
    else
      tag.span class: 'help-text translation-missing'
    end
  end
def render_help_text_entry ( feature , key ) if I18n . exists? ( "geoblacklight.help_text.#{feature}.#{key}" , locale ) help_text = I18n . t ( "geoblacklight.help_text.#{feature}.#{key}" ) content_tag :h3 , class : 'help-text viewer_protocol h6' do content_tag :a , 'data' : { toggle : 'popover' , title : help_text [ :title ] , content : help_text [ :content ] } do help_text [ :title ] end end else tag . span class : 'help-text translation-missing' end end
Render help text popover for a given feature and translation key
Render help text popover for a given feature and translation key
None
HTML tag
feature
<not_specific>
key
<not_specific>