Permalink
Browse files

Broke the user navigation and main navigation out into partials.

  • Loading branch information...
Russ Johnson
Russ Johnson committed Dec 30, 2009
1 parent ee199e4 commit f607f08fa166777e9cdbe7b448c37432a1a494cd
Showing with 23 additions and 18 deletions.
  1. +6 −18 views/layout.cfm
  2. +9 −0 views/shared/_main_navigation.cfm
  3. +8 −0 views/shared/_user_navigation.cfm
View
@@ -12,24 +12,12 @@
<body>
<div id="container">
<div id="header">
- <h1><a href="index.html">Listy</a></h1>
- <div id="user-navigation">
- <ul>
- <li><a href="#">Profile</a></li>
- <li><a href="#">Settings</a></li>
- <li><a class="logout" href="#">Logout</a></li>
- </ul>
- <div class="clear"></div>
- </div>
- <div id="main-navigation">
- <ul>
- <li class="first"><a href="#block-text">Main Page</a></li>
- <li class="active"><a href="#block-text">Active</a></li>
- <li><a href="#block-login">Login</a></li>
- <li><a href="#block-signup">Signup</a></li>
- </ul>
- <div class="clear"></div>
- </div>
+ <h1><a href="index.html">Listy</a></h1>
+ <cfoutput>
+ #includePartial('/shared/user_navigation')#
+
+ #includePartial('/shared/main_navigation')#
+ </cfoutput>
</div>
<div id="wrapper">
<div id="main">
@@ -0,0 +1,9 @@
+<div id="main-navigation">
+ <ul>
+ <li class="first"><a href="#block-text">Main Page</a></li>
+ <li class="active"><a href="#block-text">Active</a></li>
+ <li><a href="#block-login">Login</a></li>
+ <li><a href="#block-signup">Signup</a></li>
+ </ul>
+ <div class="clear"></div>
+</div>
@@ -0,0 +1,8 @@
+<div id="user-navigation">
+ <ul>
+ <li><a href="#">Profile</a></li>
+ <li><a href="#">Settings</a></li>
+ <li><a class="logout" href="#">Logout</a></li>
+ </ul>
+ <div class="clear"></div>
+</div>

0 comments on commit f607f08

Please sign in to comment.