<commit_before>
<%
logged_in_class = logged_in_and_registered? ? "class=logged_in" : ""
%>

<% cache "header_#{logged_in_and_registered?}" do -%>

    <ul id="header">
      <li id="seek_logo">
        <%= link_to image_tag("seek-logo-smaller.png", :alt => "SEEK", :title => "SEEK"),
                    root_path %>
      </li>

      <li id="header_text" <%= logged_in_class -%>>
        <%= render :partial => "layouts/header_text_main" -%>
      </li>

      <li id="image_block" <%= logged_in_class -%>>
        <% if logged_in_and_registered? %>
            <%= link_to image_tag(Seek::Config.header_image, :alt => Seek::Config.header_image_link, :title => Seek::Config.header_image_title),Seek::Config.header_image_link,:class=>"logo_link" %>
        <% else %>
        <% if Seek::Config.header_image_enabled %><%= link_to image_tag(Seek::Config.header_image, :alt => Seek::Config.header_image_link, :title => Seek::Config.header_image_title),
                                                              Seek::Config.header_image_link %>
        <% end %>
        <% end %>
      </li>
    </ul>

<% end -%><commit_msg>fix to displaying the header logo image according to the enabled setting<commit_after>
<%
logged_in_class = logged_in_and_registered? ? "class=logged_in" : ""
%>

<% cache "header_#{logged_in_and_registered?}" do -%>

    <ul id="header">
      <li id="seek_logo">
        <%= link_to image_tag("seek-logo-smaller.png", :alt => "SEEK", :title => "SEEK"),
                    root_path %>
      </li>

      <li id="header_text" <%= logged_in_class -%>>
        <%= render :partial => "layouts/header_text_main" -%>
      </li>

      <li id="image_block" <%= logged_in_class -%>>
            <% if Seek::Config.header_image_enabled %>
                <%= link_to image_tag(Seek::Config.header_image, :alt => Seek::Config.header_image_link, :title => Seek::Config.header_image_title),Seek::Config.header_image_link,:class=>"logo_link" %>
            <% end %>
      </li>
    </ul>

<% end -%>
{'fraction_non_alphanumeric': 0.17664522513607125, 'fraction_numerical': 0.0, 'mean_word_length': 2.7865168539325844, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 57, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3298152', 'n_tokens_mistral': 734, 'n_tokens_neox': 681, 'n_words': 104}