Changeset 3017 for trunk


Ignore:
Timestamp:
Dec 11, 2006, 4:59:31 PM (17 years ago)
Author:
Martin Svensson
Message:

Added a 'refresh-page'- button to the menu bar.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/include/menu.jsp

    r2978 r3017  
    162162  try
    163163  {
     164    fillText.append("<a href=\"javascript:void(0)\" title=\"Refresh current page\"");
     165    fillText.append(" onclick=\"location.reload()\">");
     166    fillText.append("<img src=\""+root+"images/refresh.gif\" border=\"0\"></a><span class=\"menuseparator\">&nbsp;&nbsp;</span>");
     167   
    164168    fillText.append("<a href=\"javascript:void(0)\" title=\"Go to the most recently viewed item\"");
    165169    fillText.append(" onclick=\"Menu.toggleTopMenu(document.getElementById('mostRecent'), event.clientX-20, event.clientY); event.cancelBubble = true;\">");
    166     fillText.append("<b>Most recent</b> <img src=\""+root+"images/submenu_down.gif\" border=\"0\"></a><span class=\"menuseparator\">&nbsp;&nbsp;</span>");
     170    fillText.append("<b>Most recent</b> <img src=\""+root+"images/sort_asc.gif\" border=\"0\"></a><span class=\"menuseparator\">&nbsp;&nbsp;</span>");
    167171   
    168172    Project activeProject = sc.getActiveProjectId() == 0 ? null : Project.getById(dc, sc.getActiveProjectId());
    169     fillText.append("<b>Active project</b> <a href=\"javascript:void(0)\" title=\"Switch project\"");
     173    fillText.append("<img src=\""+root+"images/project.gif\" border=\"0\"> <a href=\"javascript:void(0)\" title=\"Switch project\"");
    170174    fillText.append(" onclick=\"Menu.toggleTopMenu(document.getElementById('projects'), event.clientX-100, event.clientY); event.cancelBubble = true;\">");
    171175    fillText.append(activeProject == null ? "<i>- none -</i>" : HTML.encodeTags(activeProject.getName()));
    172     fillText.append(" <img src=\""+root+"images/submenu_down.gif\" border=\"0\"></a><span class=\"menuseparator\">&nbsp;&nbsp;</span>");
     176    fillText.append(" <img src=\""+root+"images/sort_asc.gif\" border=\"0\"></a><span class=\"menuseparator\">&nbsp;&nbsp;</span>");
    173177   
    174178    User user = User.getById(dc, sc.getLoggedInUserId());
    175179    String userPrompt = sc.isImpersonated() ? "Impersonated" : "User";
    176     fillText.append("<b>").append(userPrompt).append("</b> <a href=\"javascript:void(0)\" title=\"Switch user/logout\"");
     180    fillText.append("<img src=\""+root+"images/take_ownership.png\" border=\"0\"><a href=\"javascript:void(0)\" title=\"Switch user/logout\"");
    177181    fillText.append(" onclick=\"javascript:Menu.toggleTopMenu(document.getElementById('switchuser'), event.clientX-100, event.clientY); event.cancelBubble = true;\">");
    178182    fillText.append(HTML.encodeTags(user.getLogin()));
    179     fillText.append(" (").append(user.getName()).append(") <img src=\""+root+"images/submenu_down.gif\" border=\"0\"></a>");
     183    fillText.append(" (").append(user.getName()).append(") <img src=\""+root+"images/sort_asc.gif\" border=\"0\"></a>");
    180184    %>
    181185    <%
Note: See TracChangeset for help on using the changeset viewer.