<commit_before><commit_msg>5829: Add missing erb partial for rendering buttons for links to other account service actions.<commit_after>
<%- if current_user %>
  <%= link_to "Sign out", :destroy_user_session, class: "btn btn-default btn-links", role: "button" %>
  <%- if controller_name != 'registrations' %>
    <%= link_to "Update account", :edit_user_registration, class: "btn btn-default btn-links", role: "button" %>
  <% end %>
<% end -%>

<% if defined? resource_name %>

  <%- if controller_name != 'sessions' and not current_user %>
    <%= link_to "Sign in to an existing account", new_session_path(resource_name), class: "btn btn-default btn-links", role: "button" %>
  <% end -%>

  <%- if devise_mapping.registerable? && controller_name != 'registrations' %>
    <%= link_to "Sign up for a new account", new_registration_path(resource_name), class: "btn btn-default btn-links", role: "button" %>
  <% end -%>

  <%- if devise_mapping.confirmable? && controller_name != 'confirmations' %>
    <%= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name), class: "btn btn-default btn-links", role: "button" %>
  <% end -%>

<% end %>
{'fraction_non_alphanumeric': 0.16129032258064516, 'fraction_numerical': 0.003395585738539898, 'mean_word_length': 4.779411764705882, 'pattern_counts': {'":': 0, '<': 20, '<?xml version=': 0, '>': 20, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '5509522', 'n_tokens_mistral': 405, 'n_tokens_neox': 362, 'n_words': 103}