Advertisement
Guest User

need more ram

a guest
Feb 20th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.34 KB | None | 0 0
  1. <%@ tag body-content="empty" trimDirectiveWhitespaces="false"%>
  2. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  3. <%@ taglib prefix="header" tagdir="/WEB-INF/tags/common/header"%>
  4. <%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
  5. <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
  6. <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
  7. <%@ taglib prefix="cms" uri="/cms2lib/cmstags/cmstags.tld"%>
  8. <%@ taglib prefix="ycommerce" uri="/WEB-INF/tld/ycommercetags.tld"%>
  9. <%@ taglib prefix="template" tagdir="/WEB-INF/tags/template"%>
  10. <%@ taglib prefix="sec"
  11. uri="http://www.springframework.org/security/tags"%>
  12. <%@ taglib prefix="theme" tagdir="/WEB-INF/tags/theme"%>
  13. <%@ taglib prefix="breadcrumb" tagdir="/WEB-INF/tags/nav/breadcrumb"%>
  14. <%@ taglib prefix="toolactions"
  15. tagdir="/WEB-INF/tags/common/toolactions"%>
  16. <%@ taglib prefix="nav" tagdir="/WEB-INF/tags/nav"%>
  17. <%@ taglib prefix="user" tagdir="/WEB-INF/tags/user" %>
  18. <%@ taglib prefix="footer" tagdir="/WEB-INF/tags/common/footer" %>
  19.  
  20. <header class="main-header">
  21. <div class="container">
  22. <footer:googleAnalytics />
  23. <header:MarketoMunchkin/>
  24.  
  25. <nav class="navbar navcontainer navbar-expand-xl navbar-dark">
  26. <c:url value="/" var="homeUrl" />
  27.  
  28. <a class="navbar-brand logo" href="${homeUrl}">
  29. <img alt="MSA logo" src="${request.contextPath}/images/brand-logo.png" />
  30. </a>
  31.  
  32. <div class="toggler-container">
  33. <button id="nav-open" class="navbar-toggler " type="button" data-toggle="collapse" data-target="#msa-nav" aria-controls="msa-nav" aria-expanded="false" aria-label="Toggle navigation">
  34. <span class="navbar-toggler-icon"></span>
  35. </button>
  36. <button id="nav-close" class="close visuallyhidden" type="button" type="button" data-toggle="collapse" data-target="#msa-nav">
  37. <img src="${request.contextPath}/images/close-icon.png" alt="close-icon" />
  38. </button>
  39. <a class="search-popup-small msa-open-search" data-toggle="modal"data-target="#search-popup">
  40. <ycommerce:testId code="header_search_button">
  41. <<<<<<< HEAD
  42. <img class="search-icon" alt="icon search" src="${request.contextPath}/images/icon_search.png" />
  43. </ycommerce:testId>
  44. </a>
  45. </div>
  46.  
  47. <div class="collapse navbar-collapse" id="msa-nav">
  48. <%-- <img alt="MSA logo" src="${request.contextPath}/images/msa_man.png" /> --%>
  49. <!-- left nav elements -->
  50. <ul class="navbar-nav mr-auto">
  51. <%-- <nav:productsNav /> --%>
  52. <cms:slot var="component" contentSlot="${slots['NavigationBar']}">
  53. <cms:component component="${component}"/>
  54. </cms:slot>
  55. </ul>
  56.  
  57.  
  58. <ul class="right-nav navbar-nav">
  59.  
  60. <li class="">
  61. <a class="nav-link search-popup-large msa-open-search" data-toggle="modal" data-target="#search-popup">
  62. <ycommerce:testId code="header_search_button">
  63. <img class="search-icon" alt="icon search" src="${request.contextPath}/images/icon_search.png" />
  64. <!-- ${searchText}
  65. This search text needs to be in the cms and localized
  66. -->
  67. Search
  68. </ycommerce:testId>
  69. </a>
  70. ||||||| merged common ancestors
  71. <button class="searchButton" type="submit" value="${searchText}" ></button>
  72. </ycommerce:testId>
  73. <sec:authorize access="hasRole('ROLE_CUSTOMERGROUP')">
  74. <c:if test="${commerceEnabled}">
  75. <cms:slot var="cart" contentSlot="${slots.MiniCart}">
  76. <cms:component component="${cart}"/>
  77. </cms:slot>
  78. </c:if>
  79. </sec:authorize>
  80. <!-- F0009888 : Site Logo slot is used to display banners right below search -->
  81. <cms:slot var="image1" contentSlot="${slots.SiteLogo}">
  82. <cms:component component="${image1}"/>
  83. </cms:slot>
  84. </form>
  85.  
  86. </div>
  87. <ul class="inlineListItems flright">
  88. <c:if test="${isShoppingListEnabled}">
  89. <sec:authorize access="!hasRole('ROLE_CUSTOMERGROUP')">
  90. <li id="shopping-list-data" class="header-link-wishlist" style="margin-right:40px;">
  91. <img src="${request.contextPath}/_ui/common/images/commerce/icon-shopping-list.png" alt="people icon" height="18" width="23" class="shoppingListIcon">
  92. <a href="/shoppingList"><spring:theme text="List" code="shoppinglist.items" arguments="${totalWishListItems}"/></a>
  93. </li>
  94. </sec:authorize>
  95. </c:if>
  96. <c:if test="${displayLogin}">
  97. <sec:authorize access="!hasRole('ROLE_CUSTOMERGROUP')">
  98. <li>
  99. <c:if test="${!generalMonitors}" ><img src="${request.contextPath}/_ui/common/images/commerce/icon-people.png" alt="people icon" height="18" width="23" class="shoppingCartIcon"></c:if>
  100. <ycommerce:testId code="header_Login_link">
  101. <a href="<c:url value='/login'/>">
  102. <c:choose>
  103. <c:when test="${!generalMonitors}">
  104. <spring:theme code="header.link.forPartners" />
  105. </c:when>
  106. <c:otherwise>
  107. <spring:theme code="header.link.login" />
  108. </c:otherwise>
  109. </c:choose>
  110. </a>
  111. </ycommerce:testId>
  112. </li>
  113. </sec:authorize>
  114. <sec:authorize access="hasRole('ROLE_CUSTOMERGROUP')">
  115. <li>
  116. <c:choose>
  117. <c:when test="${euSite}">
  118. <spring:theme code="header.welcome" arguments="${user.firstName }"/>
  119. </c:when>
  120. <c:otherwise>
  121. <spring:theme code="header.welcomeuser" arguments="${user.firstName }"/>
  122. </c:otherwise>
  123. </c:choose>
  124. <a href="<c:url value='/logout'/>"><spring:theme code="header.link.logout" /></a>
  125. </li>
  126. <li>
  127. <span>|</span>
  128. </li>
  129. <li class="userToolsNav">
  130. <a class="myAccount"
  131. <c:if test="${!generalMonitors}">href="<c:url value='/my-account/home'/>"</c:if>>
  132. <spring:theme code="header.link.account" /></a>
  133. <ul class="dropdownMenu">
  134. <c:if test="${!generalMonitors}">
  135. <li><a href="<c:url value='/my-account/home'/>"><spring:theme code="header.link.account" /></a></li>
  136. </c:if>
  137. <c:set var="group">
  138. <user:groupPermission/>
  139. </c:set>
  140. <c:if test="${group >= 2}">
  141. <c:if test="${!generalMonitors}">
  142. <li><a href="<c:url value='/my-account/orders'/>"><spring:theme code="user.account.viewOrders" /></a></li>
  143. <li><a href="<c:url value='/my-account/invoices'/>"><spring:theme code="user.account.viewInvoices" /></a></li>
  144. </c:if>
  145. </c:if>
  146. <li><a href="<c:url value='/my-account/profile'/>"><spring:theme code="user.account.profileSettings" /></a></li>
  147. <c:if test="${displaySwitchSoldTo}">
  148. <li><a href="<c:url value='/choose-b2b-unit'/>"><spring:theme code="user.account.switchSoldTos" /></a></li>
  149. </c:if>
  150. </ul>
  151. =======
  152. <button class="searchButton" type="submit" value="${searchText}" ></button>
  153. </ycommerce:testId>
  154. <sec:authorize access="hasRole('ROLE_CUSTOMERGROUP')">
  155. <c:if test="${commerceEnabled}">
  156. <cms:slot var="cart" contentSlot="${slots.MiniCart}">
  157. <cms:component component="${cart}"/>
  158. </cms:slot>
  159. </c:if>
  160. </sec:authorize>
  161. <!-- F0009888 : Site Logo slot is used to display banners right below search -->
  162. <cms:slot var="image1" contentSlot="${slots.SiteLogo}">
  163. <cms:component component="${image1}"/>
  164. </cms:slot>
  165. </form>
  166.  
  167. </div>
  168. <ul class="inlineListItems flright">
  169. <c:if test="${isShoppingListEnabled}">
  170. <sec:authorize access="!hasRole('ROLE_CUSTOMERGROUP')">
  171. <li id="shopping-list-data" class="header-link-wishlist" style="margin-right:40px;">
  172. <img src="${request.contextPath}/_ui/common/images/commerce/icon-shopping-list.png" alt="people icon" height="18" width="23" class="shoppingListIcon">
  173. <a href="/shoppingList"><spring:theme text="List" code="shoppinglist.items" arguments="${totalWishListItems}"/></a>
  174. </li>
  175. </sec:authorize>
  176. </c:if>
  177. <c:if test="${displayLogin}">
  178. <sec:authorize access="!hasRole('ROLE_CUSTOMERGROUP')">
  179. <li>
  180. <c:if test="${!generalMonitors}" ><img src="${request.contextPath}/_ui/common/images/commerce/icon-people.png" alt="people icon" height="18" width="23" class="shoppingCartIcon"></c:if>
  181. <ycommerce:testId code="header_Login_link">
  182. <a href="<c:url value='/login'/>">
  183. <c:choose>
  184. <c:when test="${!generalMonitors}">
  185. <spring:theme code="header.link.forPartners" />
  186. </c:when>
  187. <c:otherwise>
  188. <spring:theme code="header.link.login" />
  189. </c:otherwise>
  190. </c:choose>
  191. </a>
  192. </ycommerce:testId>
  193. </li>
  194. </sec:authorize>
  195. <sec:authorize access="hasRole('ROLE_CUSTOMERGROUP')">
  196. <li>
  197. <c:choose>
  198. <c:when test="${euSite}">
  199. <spring:theme code="header.welcome" arguments="${user.firstName }"/>
  200. </c:when>
  201. <c:otherwise>
  202. <spring:theme code="header.welcomeuser" arguments="${user.firstName }"/>
  203. </c:otherwise>
  204. </c:choose>
  205. <a href="<c:url value='/logout'/>"><spring:theme code="header.link.logout" /></a>
  206. </li>
  207. <li>
  208. <span>|</span>
  209. </li>
  210. <li class="userToolsNav">
  211. <a class="myAccount"
  212. <c:if test="${!generalMonitors}">href="<c:url value='/my-account/home'/>"</c:if>>
  213. <spring:theme code="header.link.account" /></a>
  214. <ul class="dropdownMenu">
  215. <c:if test="${!generalMonitors}">
  216. <li><a href="<c:url value='/my-account/home'/>"><spring:theme code="header.link.account" /></a></li>
  217. </c:if>
  218. <c:set var="group">
  219. <user:groupPermission/>
  220. </c:set>
  221. <c:if test="${group >= 2}">
  222. <c:if test="${!generalMonitors}">
  223. <li><a href="<c:url value='/my-account/orders'/>"><spring:theme code="user.account.viewOrders" /></a></li>
  224. <li><a href="<c:url value='/my-account/invoices'/>"><spring:theme code="user.account.viewInvoices" /></a></li>
  225. <c:if test="${currentCountry eq 'US'}" >
  226. <li><a href="<c:url value='/my-account/view-statements'/>"><spring:theme code="user.account.viewStatements" /></a></li>
  227. </c:if>
  228. <c:if test="${currentCountry eq 'CA'}" >
  229. <li><a href="<c:url value='/my-account/view-statements'/>"><spring:theme code="user.account.viewStatements" /></a></li>
  230. </c:if>
  231. </c:if>
  232. </c:if>
  233. <li><a href="<c:url value='/my-account/profile'/>"><spring:theme code="user.account.profileSettings" /></a></li>
  234. <c:if test="${displaySwitchSoldTo}">
  235. <li><a href="<c:url value='/choose-b2b-unit'/>"><spring:theme code="user.account.switchSoldTos" /></a></li>
  236. </c:if>
  237. </ul>
  238. >>>>>>> upgrade-release-devops
  239. </li>
  240.  
  241. <!-- minicart -->
  242.  
  243. <sec:authorize access="hasRole('ROLE_CUSTOMERGROUP')">
  244. <li class="header_cart_link nav-item">
  245. <c:if test="${commerceEnabled}">
  246. <cms:slot var="cart" contentSlot="${slots.MiniCart}">
  247. <cms:component component="${cart}"/>
  248. </cms:slot>
  249. </c:if>
  250. <<<<<<< HEAD
  251. </li>
  252. </sec:authorize>
  253. ||||||| merged common ancestors
  254. <li>
  255. <spring:theme code="header.soldto.id" />
  256. <span>${soldToHeader.id }</span>
  257. </li>
  258. <li>
  259. <spring:theme code="header.soldto.name" />
  260. <span>${soldToHeader.name }</span>
  261. </li>
  262. </ul>
  263. </li>
  264. </c:if>
  265. =======
  266. <li>
  267. <spring:theme code="header.soldto.id" />
  268. <span>${soldToHeader.id }</span>
  269. </li>
  270. <li>
  271. <spring:theme code="header.soldto.name" />
  272. <span>${soldToHeader.locName }</span>
  273. </li>
  274. </ul>
  275. </li>
  276. </c:if>
  277. >>>>>>> upgrade-release-devops
  278.  
  279.  
  280. <!-- language selection -->
  281. <li class="header_lang nav-item">
  282. <a class="nav-link" href="/switchRegion">
  283. <img alt="MSA logo" src="${request.contextPath}/images/flag_us.png" />
  284. <span class='flag_${currentLanguage.isocode}'>&nbsp;${currentLanguage.isocode}</span>
  285. </a>
  286. </li>
  287.  
  288. <c:if test="${displayLogin}">
  289.  
  290. <!-- not logged in -->
  291. <sec:authorize access="!hasRole('ROLE_CUSTOMERGROUP')">
  292.  
  293. <ycommerce:testId code="header_Login_link">
  294. <li class="nav-item">
  295. <a class="header-login-link nav-link" href="<c:url value='/login'/>">
  296. <c:choose>
  297. <c:when test="${!generalMonitors}">
  298. <spring:theme code="header.link.forPartners" />
  299. </c:when>
  300. <c:otherwise>
  301. <spring:theme code="header.link.login" />
  302. </c:otherwise>
  303. </c:choose>
  304. </a>
  305. </li>
  306. </ycommerce:testId>
  307.  
  308. </sec:authorize>
  309.  
  310. <!-- logged in -->
  311. <sec:authorize access="hasRole('ROLE_CUSTOMERGROUP')">
  312.  
  313. <li class="nav-item dropdown">
  314. <a class=" dropdown-toggle nav-link" id="msa-user-dropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"
  315. <c:if test="${!generalMonitors}">href="<c:url value='/my-account/home'/>"</c:if>>
  316. <c:choose>
  317. <c:when test="${euSite}">
  318. <spring:theme code="header.welcome" arguments="${user.firstName }"/>
  319. </c:when>
  320. <c:otherwise>
  321. <spring:theme code="header.welcomeuser" arguments="${user.firstName }"/>
  322. </c:otherwise>
  323. </c:choose>
  324. </a>
  325.  
  326. <div class="dropdown-menu dropdown-menu-right" aria-labelledby="msa-user-dropdown">
  327.  
  328. <c:if test="${!generalMonitors}">
  329.  
  330. <a class="dropdown-item" href="<c:url value='/my-account/home'/>">
  331. <spring:theme code="header.link.account" />
  332. </a>
  333.  
  334. </c:if>
  335.  
  336. <c:set var="group">
  337. <user:groupPermission/>
  338. </c:set>
  339.  
  340. <c:if test="${group >= 2}">
  341. <c:if test="${!generalMonitors}">
  342.  
  343. <a class="dropdown-item" href="<c:url value='/my-account/orders'/>">
  344. <spring:theme code="user.account.viewOrders" />
  345. </a>
  346.  
  347. <a class="dropdown-item" href="<c:url value='/my-account/invoices'/>">
  348. <spring:theme code="user.account.viewInvoices" />
  349. </a>
  350.  
  351. </c:if>
  352. </c:if>
  353.  
  354. <a class="dropdown-item" href="<c:url value='/my-account/profile'/>">
  355. <spring:theme code="user.account.profileSettings" />
  356. </a>
  357.  
  358. <a class="dropdown-item" href="<c:url value='/logout'/>">
  359. <spring:theme code="header.link.logout" />
  360. </a>
  361.  
  362. </div>
  363.  
  364. </li>
  365.  
  366. </sec:authorize>
  367. </c:if>
  368.  
  369. <!-- not in use in new design
  370.  
  371. <c:if test="${not empty soldToHeader and not generalMonitors}">
  372. <li class="soldToInfo">
  373. <ul>
  374. <c:if test="${currentCountry eq 'BR'}" >
  375. <li>
  376. <spring:theme code="header.cnpj" />
  377. <span>${soldToHeader.cnpj }</span>
  378. </li>
  379. </c:if>
  380. <li>
  381. <spring:theme code="header.soldto.id" />
  382. <span>${soldToHeader.id }</span>
  383. </li>
  384. <li>
  385. <spring:theme code="header.soldto.name" />
  386. <span>${soldToHeader.name }</span>
  387. </li>
  388. </ul>
  389. </li>
  390. </c:if>
  391.  
  392. if has wishlist
  393.  
  394. <c:if test="${isShoppingListEnabled}">
  395. <sec:authorize access="!hasRole('ROLE_CUSTOMERGROUP')">
  396. <div id="shopping-list-data" class="header-link-wishlist">
  397. <a href="/shoppingList">
  398. <img src="${request.contextPath}/_ui/common/images/commerce/icon-shopping-list.png" alt="people icon" height="18" width="23" class="shoppingListIcon">
  399. <spring:theme text="List" code="shoppinglist.items" arguments="${totalWishListItems}"/>
  400. </a>
  401. </div>
  402. </sec:authorize>
  403. </c:if>
  404.  
  405.  
  406.  
  407. <c:if test="${displaySwitchSoldTo}">
  408.  
  409. <a href="<c:url value='/choose-b2b-unit'/>">
  410. <spring:theme code="user.account.switchSoldTos" />
  411. </a>
  412.  
  413. </c:if>
  414. -->
  415.  
  416. </ul>
  417. </div>
  418. </nav>
  419. <%--<cms:slot var="component" contentSlot="${slots['Section4A']}">
  420. <cms:component component="${component}" />
  421. </cms:slot>--%>
  422. <cms:slot var="component" contentSlot="${slots['HeaderSearch']}">
  423. <cms:component component="${component}"/>
  424. </cms:slot>
  425. </div>
  426. </header>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement