<commit_before>- content_for :head do
  - if @taxon_concept
    - if @taxon_concept.has_feed?
      %link#content_rss{ :title => I18n.t("latest_content"), :href => url_for(:controller => :feeds, :action => :all, :id => @taxon_concept.id), :rel => "alternate", :type => "application/rss+xml"}
    - if (@taxon_concept.entry && @taxon_concept.entry.hierarchies_content && (@taxon_concept.entry.hierarchies_content.image != 0 || @taxon_concept.entry.hierarchies_content.child_image != 0))
      %link#media_rss{ :title => I18n.t("mediarss_feed"), :href => "/content/mediarss/#{@taxon_concept.id}", :rel => "alternate", :type => "application/rss+xml" }

- content_for :content do
  .article{ :role => 'article' }
    -# would probably need a css class indicating vetted status here (trusted, untrusted, not vetted)
    #content_header_container
      %h1
        -# if we want to indicate vetted status here then for accessibility we will need
        -# a translatable vetted status (trusted, untrusted, not vetted) that is accessible
        -# to assistive technologies e.g. as part of h1 value or perhaps in a title attribute
        = hh(@taxon_concept.title(@session_hierarchy))
      %h2
        = hh(@taxon_concept.subtitle(@session_hierarchy))
        - if current_user.can_curate?(@taxon_concept)
          %span#curate_common_names
            = link_to I18n.t(:viewedit_common_name)

    #content_navigation_container
      %ul#content_navigation
        -# TODO: Implement @content_navigation_items (this logic potentially applies to all types of navigation e.g. global, footer, profile)
        -# TODO: We need to know which item is currently selected and apply class.
        -# TODO: We need to get translatable string of content item.
        -# @content_navigation_items.each do |item|
          -# is_active = item.active?(params)
          %li{ :class => is_active }= link_to I18n.t(item.translatable_string, item.url(@taxon_page))
          -# %li= link_to I18n.t(:overview), '/placeholder_link'
          -# %li= link_to I18n.t(:topics, :count => @topics_count), '/placeholder_link'
          -# %li= link_to I18n.t(:media, :count => @media_count), '/placeholder_link'
          -# %li= link_to I18n.t(:maps, :count => @maps_count), '/placeholder_link'
          -# %li= link_to I18n.t(:activity, :count => @activities_count), '/placeholder_link'
          -# %li= link_to I18n.t(:classifications, :count => @classifications_count), '/placeholder_link'
          -# %li= link_to I18n.t(:communities, :count => @communities_count), '/placeholder_link'
          -# %li= link_to I18n.t(:collections, :count => @collections_count), '/placeholder_link'
          -# %li= link_to I18n.t(:tools), '/placeholder_link'

        = yield

= render :file => 'layouts/v2/main'<commit_msg>WIP added comment to taxa layout to discuss if current_page? methods in url_helper would be useful for content navigation.<commit_after>- content_for :head do
  - if @taxon_concept
    - if @taxon_concept.has_feed?
      %link#content_rss{ :title => I18n.t("latest_content"), :href => url_for(:controller => :feeds, :action => :all, :id => @taxon_concept.id), :rel => "alternate", :type => "application/rss+xml"}
    - if (@taxon_concept.entry && @taxon_concept.entry.hierarchies_content && (@taxon_concept.entry.hierarchies_content.image != 0 || @taxon_concept.entry.hierarchies_content.child_image != 0))
      %link#media_rss{ :title => I18n.t("mediarss_feed"), :href => "/content/mediarss/#{@taxon_concept.id}", :rel => "alternate", :type => "application/rss+xml" }

- content_for :content do
  .article{ :role => 'article' }
    -# would probably need a css class indicating vetted status here (trusted, untrusted, not vetted)
    #content_header_container
      %h1
        -# if we want to indicate vetted status here then for accessibility we will need
        -# a translatable vetted status (trusted, untrusted, not vetted) that is accessible
        -# to assistive technologies e.g. as part of h1 value or perhaps in a title attribute
        = hh(@taxon_concept.title(@session_hierarchy))
      %h2
        = hh(@taxon_concept.subtitle(@session_hierarchy))
        - if current_user.can_curate?(@taxon_concept)
          %span#curate_common_names
            = link_to I18n.t(:viewedit_common_name)

    #content_navigation_container
      %ul#content_navigation
        -# TODO: Implement @content_navigation_items and helper methods (this logic potentially applies to all types of navigation e.g. global, footer, profile)
        -# TODO: We need to know which item is currently selected and apply class @see current_page? in url_helper.rb
        -# Do we need a link if tab is current page @see link_to_unless_current in url_helper.rb
        -# TODO: We need to get translatable string of content item.
        -# @content_navigation_items.each do |item|
          -# current_page_class = (item.current_page?(params)) ? 'current_page' : '';
          %li{ :class => current_page_class }= link_to I18n.t(item.translatable_string, item.url(@taxon_page))
          -# %li= link_to I18n.t(:overview), '/placeholder_link'
          -# %li= link_to I18n.t(:topics, :count => @topics_count), '/placeholder_link'
          -# %li= link_to I18n.t(:media, :count => @media_count), '/placeholder_link'
          -# %li= link_to I18n.t(:maps, :count => @maps_count), '/placeholder_link'
          -# %li= link_to I18n.t(:activity, :count => @activities_count), '/placeholder_link'
          -# %li= link_to I18n.t(:classifications, :count => @classifications_count), '/placeholder_link'
          -# %li= link_to I18n.t(:communities, :count => @communities_count), '/placeholder_link'
          -# %li= link_to I18n.t(:collections, :count => @collections_count), '/placeholder_link'
          -# %li= link_to I18n.t(:tools), '/placeholder_link'

        = yield

= render :file => 'layouts/v2/main'
{'fraction_non_alphanumeric': 0.1344295643329378, 'fraction_numerical': 0.010849296490930666, 'mean_word_length': 3.4969512195121952, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 45, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1767462', 'n_tokens_mistral': 1963, 'n_tokens_neox': 1890, 'n_words': 467}