0
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
1 |
<!DOCTYPE html>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
2 |
<html>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
3 |
<head>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
4 |
<title><%= title %></title>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
5 |
<!--[if lt IE 9]>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
6 |
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
7 |
<![endif]-->
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
8 |
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
9 |
%= stylesheet '/assets/css/bootstrap.css'
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
10 |
%= stylesheet '/assets/css/bootstrap-responsive.css'
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
11 |
%= stylesheet begin
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
12 |
body {
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
13 |
padding-top: 60px;
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
14 |
}
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
15 |
% end
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
16 |
% if ( $self->app->mode eq 'development'){
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
17 |
%= javascript '/assets/js/jquery.js'
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
18 |
%= javascript '/assets/js/bootstrap.js'
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
19 |
%} else {
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
20 |
%= javascript '/assets/js/jquery-min.js'
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
21 |
%= javascript '/assets/js/bootstrap-min.js'
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
22 |
%}
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
23 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
24 |
</head>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
25 |
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
26 |
<body>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
27 |
<div class="navbar navbar-fixed-top">
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
28 |
<div class="navbar-inner">
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
29 |
<div class="container">
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
30 |
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
31 |
<span class="icon-bar"></span>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
32 |
<span class="icon-bar"></span>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
33 |
<span class="icon-bar"></span>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
34 |
</a>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
35 |
%= link_to 'Crash test' => url_for('index') => (class => 'brand')
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
36 |
<!--
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
37 |
<ul class="nav">
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
38 |
<li class="wactive"><a href="#">Home</a></li>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
39 |
<li><a href="#about">About</a></li>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
40 |
<li><a href="#contact">Contact</a></li>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
41 |
</ul>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
42 |
-->
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
43 |
</div>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
44 |
</div>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
45 |
</div>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
46 |
<div class="container">
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
47 |
% content_for 'success_messages' => begin
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
48 |
% if ( defined($self->session->{success_messages}) && ( scalar( @{ $self->session->{success_messages}} ) > 0 ) ){
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
49 |
%foreach my $notice ( @{ $self->session->{success_messages}} ){
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
50 |
<div class="alert alert-success">
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
51 |
<a class="close" data-dismiss="alert">×</a>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
52 |
<p><%= $notice; %></p>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
53 |
</div>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
54 |
%}
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
55 |
%delete($self->session->{success_messages});
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
56 |
%}
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
57 |
%end
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
58 |
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
59 |
% content_for 'noticed_messages' => begin
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
60 |
% if ( defined($self->session->{notice_messages}) && ( scalar( @{ $self->session->{notice_messages}} ) > 0 ) ){
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
61 |
%foreach my $notice ( @{ $self->session->{notice_messages}} ){
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
62 |
<div class="alert alert-info">
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
63 |
<a class="close" data-dismiss="alert">×</a>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
64 |
<p><%= $notice; %></p>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
65 |
</div>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
66 |
%}
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
67 |
%delete($self->session->{notice_messages});
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
68 |
%}
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
69 |
%end
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
70 |
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
71 |
% content_for 'error_messages' => begin
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
72 |
% if ( defined($self->session->{error_messages}) && ( scalar( @{ $self->session->{error_messages}} ) > 0 ) ){
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
73 |
<div id="error-messages" class="error-messages">
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
74 |
%foreach my $error ( @{ $self->session->{error_messages}} ){
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
75 |
<div class="alert alert-error">
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
76 |
<a class="close" data-dismiss="alert">×</a>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
77 |
<p><%= $error; %></p>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
78 |
</div>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
79 |
%}
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
80 |
%delete($self->session->{error_messages});
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
81 |
</div>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
82 |
%}
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
83 |
%end
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
84 |
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
85 |
<%= content_for 'hero_unit' %>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
86 |
<%= content_for 'error_messages' %>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
87 |
<%= content_for 'noticed_messages' %>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
88 |
<%= content_for 'success_messages' %>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
89 |
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
90 |
<%= content %>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
91 |
</div>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
92 |
</body>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
93 |
</html>
|