Commit f76bd531 by Alex Bush

Minecraft style

1 parent fde21ea3
......@@ -7,7 +7,11 @@ plugin 'PODRenderer';
get '/' => sub {
my $self = shift;
$self->render('index');
$self->render(
template => 'index',
title => 'Welcome',
layout => 'default',
);
};
get '/download' => sub {
......@@ -24,17 +28,18 @@ get '/download' => sub {
$self->render(
template => 'download',
title => 'Download',
layout => 'default',
folders => $data,
);
};
get '/admin' => sub {
get '/wiki' => sub {
my $self = shift;
$self->render(
template => 'admin/files',
layout => 'admin',
template => 'wiki',
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 @@
<ul class="nav">
<li><a href="#">Home</a></li>
<li><a href="/download">Download</a></li>
<li><a href="/download">wiki</a></li>
<li><a href="/wiki">wiki</a></li>
</ul>
</div>
</div>
......
<!doctype html>
<html>
<head>
<title><%= title %></title>
<title>Minecraft style | <%= title %></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="/css/style.css" rel="stylesheet" media="screen">
<script src="http://code.jquery.com/jquery.js"></script>
......@@ -11,11 +11,11 @@
<div class="navbar">
<div class="navbar-inner">
<a class="brand" href="#"><%= title %></a>
<a class="brand" href="/">Minecraft style | <%= title %></a>
<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">wiki</a></li>
<li><a href="/wiki">wiki</a></li>
</ul>
</div>
</div>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!