Free cookie consent management tool by TermsFeed Policy Generator

source: branches/WebApplication/MVC2/HeuristicLabWeb.PluginHost/HLWebPluginHost/Views/Shared/Site.Master @ 6479

Last change on this file since 6479 was 6312, checked in by dkahn, 13 years ago

#1198 Don't show plugin menu items if user isn't authenticated

File size: 3.0 KB
Line 
1<%@ Master Language="C#" Inherits="System.Web.Mvc.ViewMasterPage" %>
2
3<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4<html xmlns="http://www.w3.org/1999/xhtml">
5<head runat="server">
6  <title>
7    <asp:ContentPlaceHolder ID="TitleContent" runat="server" />
8  </title>
9  <script src="../../Content/jQuery/js/jquery-1.5.1.min.js" type="text/javascript"></script>
10  <script src="../../Content/jQuery/js/jquery-ui-1.8.13.custom.min.js" type="text/javascript"></script>
11  <script src="../../Content/jQuery/jQueryPlugins/DataTables-1.7.6/media/js/jquery.dataTables.min.js" type="text/javascript"></script>
12  <link href="../../Content/themes/hl/Site.css" rel="stylesheet" type="text/css" />
13  <link href="../../Content/jQuery/css/datatable_jui.css" rel="stylesheet" type="text/css" />
14  <link href="../../Content/jQuery/css/ui-smoothness/jquery-ui-1.8.13.custom.css" rel="stylesheet"
15    type="text/css" />
16  <script src="../../Content/HLStyling.js" type="text/javascript"></script>
17  <!-- Microsoft Ajax -->
18  <script src="<%= Url.Content("~/Scripts/MicrosoftAjax.debug.js") %>" type="text/javascript"></script>
19  <script src="<%= Url.Content("~/Scripts/MicrosoftMvcAjax.debug.js") %>" type="text/javascript"></script>
20</head>
21<body>
22  <div id="master-page">
23    <div id="master-header">
24      <div class="logo">
25        <%: Html.ActionLink("HeuristicLabWeb", "Index", "Home")%>
26      </div>
27      <div class="login">
28        <% Html.RenderPartial("LogOnUserControl"); %>
29      </div>
30    </div>
31    <div id="master-mainmenu">
32      <ul id="menu">
33        <li <% if(ViewContext.RouteData.Values["controller"].ToString() == "Home") {%> class="selected"
34          <%}%>>
35          <%: Html.ActionLink("Home", "Index", "Home")%></li>
36          <% if (Request.IsAuthenticated) {%>
37        <% foreach (var pluginLink in
38          HLWebPluginHost.PluginLib.PluginHelper.GetPluginActions()) {  %>
39        <li <% if(ViewContext.RouteData.Values["controller"].ToString() == pluginLink.Controller) {%>
40          class="selected" <%}%>>
41          <%: Html.ActionLink(pluginLink.Name,
42                            pluginLink.Action,
43                            pluginLink.Controller)%>
44        </li>
45        <% }
46        }%>
47        <li <% if(ViewContext.RouteData.Values["action"].ToString() == "About") {%> class="selected"
48          <%}%>>
49          <%: Html.ActionLink("About", "About", "Home")%></li>
50
51      </ul>
52    </div>
53    <div id="master-main">
54      <div id="master-submenu">
55        <asp:ContentPlaceHolder ID="SubMenuContent" runat="server" />
56      </div>
57      <div id="master-MainContent">
58        <asp:ContentPlaceHolder ID="MainContent" runat="server" />
59      </div>
60      <div id="master-footer">
61        <div class="logo">
62          <a href="http://www.heuristiclab.com/" target="_blank" title="Visit the HeuristicLab website">
63            <img src="../../Content/themes/hl/images/hl-logo.png" alt="HeuristicLab" /></a>
64        </div>
65      </div>
66    </div>
67  </div>
68</body>
69</html>
Note: See TracBrowser for help on using the repository browser.