<!-- BEGIN [% component.name %] -->
    <div class="row" id="user-id">
      <span class="warning">
        [% c.user_profile.first_name.ucfirst %].[% c.user_profile.last_name.upper %]
      </span>
      [<a href="[% app_url %]/logout">log out</a>]
    </div>
    <div class="row" id="nav-bar">
      <p class="span6">
        [% user = c.session.param('UserProfile') %]
      <!--<button class="btn btn-primary" type="button">[% user.first_name | ucfirst %]
        [% user.last_name | ucfirst %]</button>-->
        <!-- <span class="badge badge-info"><i class="icon-print icon-white"></i></span> -->
      [% IF c.user_can('print_one'); %]
        <a href="[% app_url %]/request/print_record/[% data.id %]">
          <img src="/images/print_icon.gif" />
        </a>
      [% END %]

      [% IF c.user_can('view_history') %]
        <a href="[% app_url %]/history/=/[% data.id %]">
          <span class="label label-warning">History</span>
        </a>
      [% END %]
        <a href="[% app_url %]/image/=/[% data.id %]">
            <span class="label">Data files</span>
        </a>
        <a href="[% app_url %]/search/do_search/?patient_id=[% patient.id %]">
          <span class="label label-success">Other reports</span>
        </a>
      [% IF c.user_can([ 'view_clinical_data', 'edit_clinical_data' ])
          AND clinical_data_link.is_elegible; %]
        <a href="[% app_url %]/hmrn_data/=/[% data.id %]">
          <span class="label label-inverse">HMRN</span>
        </a>
      [% END %]
        :::
        <a href="[% app_url %]/resources">
          <span class="label label-important">Resources</span>
        </a>
        <a href="[% app_url %]/search">
          <span class="label label-info">New search</span>
        </a>
        [% IF need_to_hide_from_mozilla # Moz can't load this!! %]<!--[if IE]>
          ... <![endif]-->[% END %]
        :::
        <a href="[% app_url %]/login/hello">
          <i class="fa fa-home fa-lg"></i>
        </a>

      <p>
    </div>
<!-- END [% component.name %] -->
