Skip to content

Commit

Permalink
Getting started page
Browse files Browse the repository at this point in the history
  • Loading branch information
edjafarov committed Sep 26, 2011
1 parent 8dcb638 commit e58bd3e
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 4 deletions.
1 change: 0 additions & 1 deletion main.js
@@ -1,5 +1,4 @@
#!/usr/bin/env node
var CONTROLLERS_PATH = "./controllers/";

var SRC_PATH = "./src";
var PORT = process.env.PORT || process.env.npm_package_config_port;
Expand Down
15 changes: 15 additions & 0 deletions src/controllers/AriesSiteController.js
Expand Up @@ -47,3 +47,18 @@ AriesSiteController.prototype.aboutpage = function(request, response){
this.doNext(request,response);
};

/**
*@RequestMapping(value="/start")
*/
AriesSiteController.prototype.startpage = function(request, response){
this.setView("/ejs/Layout.html",
{
head:
{title:"aries-node: {let's start!}"},
bodyPath:"/ejs/startPageBody.html",
topNavBar:{activeItem:"/start"}
});

this.doNext(request,response);
};

Binary file not shown.
Binary file not shown.
Empty file.
6 changes: 3 additions & 3 deletions src/views/ejs/topNavBar.html
Expand Up @@ -5,9 +5,9 @@
<h3><a href="/">Aries</a></h3>
<ul class="nav">
<li <% if(topNavBar.activeItem == "/") {%>class="active" <%}%>><a href="/">Home</a></li>
<li <% if(topNavBar.activeItem == "/docs") {%>class="active" <%}%>><a href="/docs">Documentation</a></li>
<li <% if(topNavBar.activeItem == "/about") {%>class="active" <%}%>><a href="/about">Getting started</a></li>
<li <% if(topNavBar.activeItem == "/about") {%>class="active" <%}%>><a href="/about">About</a></li>
<!--<li <% if(topNavBar.activeItem == "/docs") {%>class="active" <%}%>><a href="/docs">Documentation</a></li>-->
<li <% if(topNavBar.activeItem == "/start") {%>class="active" <%}%>><a href="/start">Getting started</a></li>
<!--<li <% if(topNavBar.activeItem == "/about") {%>class="active" <%}%>><a href="/about">About</a></li>-->
</ul>
<ul class="nav secondary-nav">
<li><a href="https://github.com/edjafarov/AriesNode">Commit</a></li>
Expand Down

0 comments on commit e58bd3e

Please sign in to comment.