Skip to content

Commit

Permalink
nav and protect index
Browse files Browse the repository at this point in the history
  • Loading branch information
xsir317 committed Dec 3, 2014
1 parent 38d8646 commit 3cc1ad7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
6 changes: 1 addition & 5 deletions publisher/app/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@
|
*/

Route::get('/', function()
{
return View::make('hello');
});
Route::get('home/welcome', 'HomeController@showWelcome');
Route::get('/', array('before' => 'auth', 'uses' => 'HomeController@showWelcome'));

//项目
Route::get('projects/index', array('before' => 'auth', 'uses' => 'ProjectsController@allProjects'));
Expand Down
12 changes: 2 additions & 10 deletions publisher/app/views/layouts/master.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,21 @@
<body>
<div class="uk-container uk-container-center uk-margin-top uk-margin-large-bottom">
<nav class="uk-navbar uk-margin-large-bottom">
<a class="uk-navbar-brand uk-hidden-small" href="layouts_frontpage.html">Brand</a>
<ul class="uk-navbar-nav uk-hidden-small">
<li>
<a href="/">首页</a>
</li>
<li>
<a href="#">Portfolio</a>
<a href="https://github.com/xsir317/svn_publisher" target="_blank">On Github</a>
</li>
<li>
<a href="#">Blog</a>
</li>
<li>
<a href="#">产品介绍</a>
</li>
<li>
<a href="#">联系我们</a>
<a href="mailto:[email protected]">联系我们</a>
</li>
<li>
<a href="/logout">Login</a>
</li>
</ul>
<a href="#offcanvas" class="uk-navbar-toggle uk-visible-small" data-uk-offcanvas></a>
<div class="uk-navbar-brand uk-navbar-center uk-visible-small">Brand</div>
</nav>
<div class="uk-grid" data-uk-grid-margin>
<div class="uk-width-medium-1-5">
Expand Down

0 comments on commit 3cc1ad7

Please sign in to comment.