Free cookie consent management tool by TermsFeed Policy Generator

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

Last change on this file since 5532 was 5072, checked in by dkahn, 14 years ago

#1198 Created design and modified views to create submenus

File size: 3.1 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  <link href="../../Content/themes/hl/Site.css" rel="stylesheet" type="text/css" />
10</head>
11<body>
12  <div id="master-page">
13    <div id="master-header">
14      <div class="logo">
15        <%: Html.ActionLink("HeuristicLabWeb", "Index", "Home")%>
16      </div>
17      <div class="login">
18        <% Html.RenderPartial("LogOnUserControl"); %>
19      </div>
20    </div>
21    <div id="master-mainmenu">
22      <ul id="menu">
23        <li <% if(ViewContext.RouteData.Values["controller"].ToString() == "Home") {%> class="selected"
24          <%}%>>
25          <%: Html.ActionLink("Home", "Index", "Home")%></li>
26        <% foreach (var pluginLink in
27          HLWebPluginHost.PluginLib.PluginHelper.GetPluginActions()) {  %>
28        <li <% if(ViewContext.RouteData.Values["controller"].ToString() == pluginLink.Controller) {%>
29          class="selected" <%}%>>
30          <%: Html.ActionLink(pluginLink.Name,
31                            pluginLink.Action,
32                            pluginLink.Controller)%>
33        </li>
34        <% } %>
35        <li <% if(ViewContext.RouteData.Values["action"].ToString() == "About") {%> class="selected"
36          <%}%>>
37          <%: Html.ActionLink("About", "About", "Home")%></li>
38      </ul>
39    </div>
40 
41    <div id="master-main">
42             <div id="master-submenu">
43        <asp:ContentPlaceHolder ID="SubMenuContent" runat="server" />
44      </div>
45      <div id="master-MainContent">
46        <asp:ContentPlaceHolder ID="MainContent" runat="server" />
47      </div>
48      <div id="master-footer">
49        <div class="logo">
50          <a href="http://www.heuristiclab.com/" target="_blank" title="Visit the HeuristicLab website">
51            <img src="../../Content/themes/hl/images/hl-logo.png" alt="HeuristicLab" /></a>
52        </div>
53      </div>
54    </div>
55  </div>
56  <!--
57  <div class="page">
58    <div id="header">
59      <div id="title">
60        <h1>
61          My MVC Application</h1>
62      </div>
63      <div id="logindisplay">
64        <% Html.RenderPartial("LogOnUserControl"); %>
65      </div>
66      <div id="menucontainer">
67        <ul id="menu">
68          <li>
69            <%: Html.ActionLink("Home", "Index", "Home")%></li>
70          <li>
71            <%: Html.ActionLink("About", "About", "Home")%></li>
72          <% foreach (var pluginLink in
73          HLWebPluginHost.PluginLib.PluginHelper.GetPluginActions()) {  %>
74          <li>
75            <%: Html.ActionLink(pluginLink.Name,
76                            pluginLink.Action,
77                            pluginLink.Controller)%>
78          </li>
79          <% } %>
80        </ul>
81      </div>
82    </div>
83    <div id="main">
84      <asp:ContentPlaceHolder ID="MainContent2" runat="server" />
85      <div id="footer">
86      </div>
87    </div>
88  </div>
89  -->
90</body>
91</html>
Note: See TracBrowser for help on using the repository browser.