2 % # if the site is a mirror, gray out the login/logout links
3 % if( $c->config->{'is_mirror'} ) {
4 <a style="line-height: 1.2; text-decoration: underline; background: none" href="<% $c->config->{main_production_site_url} %>" title="log in on main site">main site</a>
5 % } elsif ( $c->config->{disable_login} ) {
8 <div class="btn-group" role="group" aria-label="..." style="height:34px; margin: 1px 0px 0px 0px" >
9 <button class="btn btn-primary disabled" type="button" style="margin: 7px 7px 0px 0px">Login</button>
14 % } elsif ( $c->req->uri->path_query =~ "logout=yes") {
18 <div class="btn-group" role="group" aria-label="..." style="height:34px; margin: 1px 0px 0px 0px" >
19 <a href="/solpeople/login.pl">
20 <button class="btn btn-primary" type="button" style="margin: 7px 7px 0px 0px">Login</button>
26 % } elsif ( $c->user_exists ) {
27 % my $sp_person_id = $c->user->get_object->get_sp_person_id;
30 <div class="btn-group" role="group" aria-label="..." style="height:34px; margin: 1px 3px 0px 0px">
31 <button id="navbar_profile" class="btn btn-primary" type="button" onclick='location.href="/solpeople/profile/<% $sp_person_id %>"'' style="margin: 7px 0px 0px 0px" title="My Profile"><% $c->user->get_object->get_username || '' %></button>
32 <button id="navbar_lists" name="lists_link" class="btn btn-info" style="margin:7px 0px 0px 0px" type="button" title="Lists">
33 Lists <span class="glyphicon glyphicon-list-alt" ></span>
35 <!-- button id="navbar_datasets" name="datasets_link" class="btn btn-info" style="margin:7px 0px 0px 0px" type="button" title="Datasets">
36 Datasets <span class="glyphicon glyphicon-list-alt" ></span>
38 <button id="navbar_personal_calendar" name="personal_calendar_link" class="btn btn-primary" style="margin:7px 0px 0px 0px" type="button" title="Your Calendar">Calendar <span class="glyphicon glyphicon-calendar" ></span>
40 <button id="navbar_logout" class="btn btn-default glyphicon glyphicon-log-out" style="margin:6px 0px 0px 0px" type="button" onclick="location.href='/solpeople/login.pl?logout=yes';" title="Logout"></button>
49 <div class="btn-group" role="group" aria-label="..." style="height:34px; margin: 1px 0px 0px 0px" >
50 <a href="/solpeople/login.pl">
51 <button class="btn btn-primary" type="button" style="margin: 7px 7px 0px 0px">Login</button>