%@page import="org.apache.commons.lang.BooleanUtils"%>
<%@page import="org.apache.commons.lang.StringUtils"%>
<%@page import="org.osivia.portal.api.Constants" %>
<%@page import="java.util.ResourceBundle" %>
<%@page import="java.security.Principal" %>
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%
ResourceBundle rb = ResourceBundle.getBundle("Resource", request.getLocale());
Principal principal = (Principal) request.getAttribute(Constants.ATTR_TOOLBAR_PRINCIPAL);
String loginUrl = (String) request.getAttribute(Constants.ATTR_TOOLBAR_LOGIN_URL);
String signOutUrl = (String) request.getAttribute(Constants.ATTR_TOOLBAR_SIGN_OUT_URL);
String refreshPageUrl = (String) request.getAttribute(Constants.ATTR_TOOLBAR_REFRESH_PAGE_URL);
String administrationHtmlContent = (String) request.getAttribute(Constants.ATTR_TOOLBAR_ADMINISTRATION_CONTENT);
%>
<%
if (principal == null) {
%>
<%=rb.getString("LOGIN") %>
<%
} else {
%>
<%=administrationHtmlContent %>
<%=principal.getName() %> - <%=rb.getString("LOGOUT") %>
"><%=rb.getString("REFRESH_PAGE") %>
<%
}
%>