<commit_before>## mako
<%namespace name='static' file='static_content.html'/>
<%namespace file='main.html' import="login_query, stanford_theme_enabled"/>
<%!
from django.core.urlresolvers import reverse
from django.utils.translation import ugettext as _

# App that handles subdomain specific branding
import branding
# app that handles site status messages
from status.status import get_site_status_msg
%>

<%! from microsite_configuration import microsite %>
<%! from microsite_configuration.templatetags.microsite import platform_name %>

## Provide a hook for themes to inject branding on top.
<%block name="navigation_top" />

<%block cached="False">
<%
try:
    course_id = course.id.to_deprecated_string()
except:
    # can't figure out a better way to get at a possibly-defined course var
    course_id = None
site_status_msg = get_site_status_msg(course_id)
%>
% if site_status_msg:
<div class="site-status">
  <div class="inner-wrapper">
    <span class="white-error-icon"></span>
    <p>${site_status_msg}</p>
  </div>
</div>
% endif
</%block>

  <header class="global ${"slim" if course else ""}" aria-label="${_('Global Navigation')}">
    <nav id="primary-nav" class="black-background container-fluid">
      <div class="container">
        <div class="navbar">
          <div class="nav navbar navbar-nav navbar-left">
            % if not user.is_authenticated():
                % if not settings.FEATURES['DISABLE_LOGIN_BUTTON']:
                  % if course and settings.FEATURES.get('RESTRICT_ENROLL_BY_REG_METHOD') and course.enrollment_domain:
                    <span>
                      <a class="cta cta-register" href="${reverse('course-specific-register', args=[course.id.to_deprecated_string()])}"><b>${_("Sign up for an account")}</b></a>
                    </span>
                  % else:
                    <span>
                      <a class="gym-button cta cta-register" href="/register"><b>${_("Sign up for an account")}</b></a>
                    </span>
                  % endif
                % endif
              % endif
          </div>
          <div class="collapse navbar-collapse">
            <ul class="nav navbar-nav navbar-right">

              % if user.is_authenticated():
              
                <li>
                  <a href="#" id="dropdown" class="logged-in-username">
                    ${user.username} <span class="caret"></span>
                  </a>
                  <ul class="" id="dropdown-menu">
                    <li><a href="${reverse('logout')}" role="menuitem">${_("Log Out")}</a></li>
                  </ul>
                </li>

              % endif

              <li><a href="http://www.aquent.com" target="_blank" alt="Aquent" class="gym-nav-icon-container"> <i class="gym-nav-icon aquent-icon"></i></a></li>
              <li><a href="http://www.vitamintalent.com" target="_blank" alt="Vitamin T" class="gym-nav-icon-container"> <i class="gym-nav-icon vitamin-t-icon"></i></a></li>

            </ul>

          </div>
        </div>
      </div>
    </nav>



    <nav id="secondary-nav" class="container-fluid">

      <div class="container">
        <div class="navbar navbar-default">
          <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#secondary-nav-items">
              <span class="sr-only">Toggle navigation</span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="${marketing_link('ROOT')}">
              <%block name="navigation_logo">
                  <img src="${static.url(branding.get_logo_url())}" alt="${platform_name()}"/>
              </%block>
            </a>
          </div>

          <!-- Collect the nav links, forms, and other content for toggling -->
          <div class="collapse navbar-collapse" id="secondary-nav-items">
            <ul class="nav navbar-nav navbar-right">

              <li><a href="/courses">Catalog</a></li>
              <li><a href="/careers">Career Center</a></li>

              % if user.is_authenticated():

                <%block name="navigation_global_links_authenticated">
                  % if settings.FEATURES.get('COURSES_ARE_BROWSABLE'):
                    <li class="nav-global-01">
                      <a href="/dashboard">${_('Dashboard')}</a>
                    </li>
                  % endif
                </%block>

              % else:
                <li>
                  % if not settings.FEATURES['DISABLE_LOGIN_BUTTON']:
                      % if course and settings.FEATURES.get('RESTRICT_ENROLL_BY_REG_METHOD') and course.enrollment_domain:
                      <a class="cta cta-login" href="${reverse('course-specific-login', args=[course.id.to_deprecated_string()])}${login_query()}"><b>${_("Log in")}</b></a>
                      % else:
                      <a class="gym-button" href="/login${login_query()}"><b>${_("Log in")}</b></a>
                      % endif
                  % endif
                </li>
              % endif
            </ul>
          </div><!-- /.navbar-collapse -->
        </div>
      </div>



    </nav>
  </header>
% if course:
<!--[if lte IE 8]>
<div class="ie-banner" aria-hidden="true">${_('<strong>Warning:</strong> Your browser is not fully supported. We strongly recommend using {chrome_link} or {ff_link}.').format(chrome_link='<a href="https://www.google.com/intl/en/chrome/browser/" target="_blank">Chrome</a>', ff_link='<a href="http://www.mozilla.org/en-US/firefox/new/" target="_blank">Firefox</a>')}</div>
<![endif]-->
% endif

%if not user.is_authenticated():
  <%include file="forgot_password_modal.html" />
%endif

<%include file="help_modal.html"/>

<script async><commit_msg>fix secondary nav bar left alignment<commit_after>## mako
<%namespace name='static' file='static_content.html'/>
<%namespace file='main.html' import="login_query, stanford_theme_enabled"/>
<%!
from django.core.urlresolvers import reverse
from django.utils.translation import ugettext as _

# App that handles subdomain specific branding
import branding
# app that handles site status messages
from status.status import get_site_status_msg
%>

<%! from microsite_configuration import microsite %>
<%! from microsite_configuration.templatetags.microsite import platform_name %>

## Provide a hook for themes to inject branding on top.
<%block name="navigation_top" />

<%block cached="False">
<%
try:
    course_id = course.id.to_deprecated_string()
except:
    # can't figure out a better way to get at a possibly-defined course var
    course_id = None
site_status_msg = get_site_status_msg(course_id)
%>
% if site_status_msg:
<div class="site-status">
  <div class="inner-wrapper">
    <span class="white-error-icon"></span>
    <p>${site_status_msg}</p>
  </div>
</div>
% endif
</%block>

  <header class="global ${"slim" if course else ""}" aria-label="${_('Global Navigation')}">
    <nav id="primary-nav" class="black-background container-fluid">
      <div class="container">
        <div class="row">
          <div class="navbar">
            <div class="nav navbar navbar-nav navbar-left">
              % if not user.is_authenticated():
                  % if not settings.FEATURES['DISABLE_LOGIN_BUTTON']:
                    % if course and settings.FEATURES.get('RESTRICT_ENROLL_BY_REG_METHOD') and course.enrollment_domain:
                      <span>
                        <a class="cta cta-register" href="${reverse('course-specific-register', args=[course.id.to_deprecated_string()])}"><b>${_("Sign up for an account")}</b></a>
                      </span>
                    % else:
                      <span>
                        <a class="gym-button cta cta-register" href="/register"><b>${_("Sign up for an account")}</b></a>
                      </span>
                    % endif
                  % endif
                % endif
            </div>
            <div class="collapse navbar-collapse">
              <ul class="nav navbar-nav navbar-right">

                % if user.is_authenticated():

                  <li>
                    <a href="#" id="dropdown" class="logged-in-username">
                      ${user.username} <span class="caret"></span>
                    </a>
                    <ul class="" id="dropdown-menu">
                      <li><a href="${reverse('logout')}" role="menuitem">${_("Log Out")}</a></li>
                    </ul>
                  </li>

                % endif

                <li><a href="http://www.aquent.com" target="_blank" alt="Aquent" class="gym-nav-icon-container"> <i class="gym-nav-icon aquent-icon"></i></a></li>
                <li><a href="http://www.vitamintalent.com" target="_blank" alt="Vitamin T" class="gym-nav-icon-container"> <i class="gym-nav-icon vitamin-t-icon"></i></a></li>

              </ul>

            </div>
          </div>
        </div>
      </div>
    </nav>



    <nav id="secondary-nav" class="container-fluid">

      <div class="container">
        <div>
          <div class="col-md-12 navbar navbar-default">
            <div class="navbar-header">
              <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#secondary-nav-items">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </button>
              <a class="navbar-brand" href="${marketing_link('ROOT')}">
                <%block name="navigation_logo">
                    <img src="${static.url(branding.get_logo_url())}" alt="${platform_name()}"/>
                </%block>
              </a>
            </div>

            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="secondary-nav-items">
              <ul class="nav navbar-nav navbar-right">

                <li><a href="/courses">Catalog</a></li>
                <li><a href="/careers">Career Center</a></li>

                % if user.is_authenticated():

                  <%block name="navigation_global_links_authenticated">
                    % if settings.FEATURES.get('COURSES_ARE_BROWSABLE'):
                      <li class="nav-global-01">
                        <a href="/dashboard">${_('Dashboard')}</a>
                      </li>
                    % endif
                  </%block>

                % else:
                  <li>
                    % if not settings.FEATURES['DISABLE_LOGIN_BUTTON']:
                        % if course and settings.FEATURES.get('RESTRICT_ENROLL_BY_REG_METHOD') and course.enrollment_domain:
                        <a class="cta cta-login" href="${reverse('course-specific-login', args=[course.id.to_deprecated_string()])}${login_query()}"><b>${_("Log in")}</b></a>
                        % else:
                        <a class="gym-button" href="/login${login_query()}"><b>${_("Log in")}</b></a>
                        % endif
                    % endif
                  </li>
                % endif
              </ul>
            </div><!-- /.navbar-collapse -->
          </div>
        </div>
      </div>



    </nav>
  </header>
% if course:
<!--[if lte IE 8]>
<div class="ie-banner" aria-hidden="true">${_('<strong>Warning:</strong> Your browser is not fully supported. We strongly recommend using {chrome_link} or {ff_link}.').format(chrome_link='<a href="https://www.google.com/intl/en/chrome/browser/" target="_blank">Chrome</a>', ff_link='<a href="http://www.mozilla.org/en-US/firefox/new/" target="_blank">Firefox</a>')}</div>
<![endif]-->
% endif

%if not user.is_authenticated():
  <%include file="forgot_password_modal.html" />
%endif

<%include file="help_modal.html"/>

<script async>
{'fraction_non_alphanumeric': 0.16506797898073233, 'fraction_numerical': 0.0006672783384769372, 'mean_word_length': 2.0949922560660816, 'pattern_counts': {'":': 0, '<': 273, '<?xml version=': 0, '>': 273, 'https://': 2, 'lorem ipsum': 0, 'www.': 8, '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': '2942058', 'n_tokens_mistral': 3649, 'n_tokens_neox': 3461, 'n_words': 704}