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