Commit f76bd531 by Alex Bush

Minecraft style

1 parent fde21ea3
...@@ -7,7 +7,11 @@ plugin 'PODRenderer'; ...@@ -7,7 +7,11 @@ plugin 'PODRenderer';
get '/' => sub { get '/' => sub {
my $self = shift; my $self = shift;
$self->render('index'); $self->render(
template => 'index',
title => 'Welcome',
layout => 'default',
);
}; };
get '/download' => sub { get '/download' => sub {
...@@ -24,17 +28,18 @@ get '/download' => sub { ...@@ -24,17 +28,18 @@ get '/download' => sub {
$self->render( $self->render(
template => 'download', template => 'download',
title => 'Download',
layout => 'default', layout => 'default',
folders => $data, folders => $data,
); );
}; };
get '/admin' => sub { get '/wiki' => sub {
my $self = shift; my $self = shift;
$self->render( $self->render(
template => 'admin/files', template => 'wiki',
layout => 'admin', title => 'Wiki',
layout => 'default',
); );
}; };
......
<div class="row">
<div class="span3">
<ul></ul>
</div>
<div class="span9">
</div>
</div>
\ No newline at end of file
% layout 'default';
% title 'Minecraft style';
Добро пожаловать нах Добро пожаловать нах
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<ul class="nav"> <ul class="nav">
<li><a href="#">Home</a></li> <li><a href="#">Home</a></li>
<li><a href="/download">Download</a></li> <li><a href="/download">Download</a></li>
<li><a href="/download">wiki</a></li> <li><a href="/wiki">wiki</a></li>
</ul> </ul>
</div> </div>
</div> </div>
......
<!doctype html> <!doctype html>
<html> <html>
<head> <head>
<title><%= title %></title> <title>Minecraft style | <%= title %></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="/css/style.css" rel="stylesheet" media="screen"> <link href="/css/style.css" rel="stylesheet" media="screen">
<script src="http://code.jquery.com/jquery.js"></script> <script src="http://code.jquery.com/jquery.js"></script>
...@@ -11,11 +11,11 @@ ...@@ -11,11 +11,11 @@
<div class="navbar"> <div class="navbar">
<div class="navbar-inner"> <div class="navbar-inner">
<a class="brand" href="#"><%= title %></a> <a class="brand" href="/">Minecraft style | <%= title %></a>
<ul class="nav"> <ul class="nav">
<li><a href="#">Home</a></li> <li><a href="/">Home</a></li>
<li><a href="/download">Download</a></li> <li><a href="/download">Download</a></li>
<li><a href="/download">wiki</a></li> <li><a href="/wiki">wiki</a></li>
</ul> </ul>
</div> </div>
</div> </div>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!