| author | Vincent Tondellier <tonton+hg@team1664.org> |
| Mon, 04 Aug 2014 14:51:09 +0200 | |
| changeset 30 | f65708dc1be1 |
| parent 28 | 0df70b8735e3 |
| child 57 | cebbfcd7deff |
| 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 |
||
|
28
0df70b8735e3
Update Twitter bootstrap to 3.2.0
Vincent Tondellier <tonton+hg@team1664.org>
parents:
9
diff
changeset
|
9 |
% if ( $self->app->mode eq 'development'){
|
| 0 | 10 |
%= stylesheet '/assets/css/bootstrap.css' |
|
28
0df70b8735e3
Update Twitter bootstrap to 3.2.0
Vincent Tondellier <tonton+hg@team1664.org>
parents:
9
diff
changeset
|
11 |
%= stylesheet '/assets/css/bootstrap-theme.css' |
|
0df70b8735e3
Update Twitter bootstrap to 3.2.0
Vincent Tondellier <tonton+hg@team1664.org>
parents:
9
diff
changeset
|
12 |
%} else {
|
|
0df70b8735e3
Update Twitter bootstrap to 3.2.0
Vincent Tondellier <tonton+hg@team1664.org>
parents:
9
diff
changeset
|
13 |
%= stylesheet '/assets/css/bootstrap.min.css' |
|
0df70b8735e3
Update Twitter bootstrap to 3.2.0
Vincent Tondellier <tonton+hg@team1664.org>
parents:
9
diff
changeset
|
14 |
%= stylesheet '/assets/css/bootstrap-theme.min.css' |
|
0df70b8735e3
Update Twitter bootstrap to 3.2.0
Vincent Tondellier <tonton+hg@team1664.org>
parents:
9
diff
changeset
|
15 |
%} |
| 0 | 16 |
%= stylesheet begin |
17 |
body {
|
|
18 |
padding-top: 60px; |
|
19 |
} |
|
20 |
% end |
|
21 |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|
22 |
</head> |
|
23 |
||
24 |
<body> |
|
|
28
0df70b8735e3
Update Twitter bootstrap to 3.2.0
Vincent Tondellier <tonton+hg@team1664.org>
parents:
9
diff
changeset
|
25 |
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation"> |
|
0df70b8735e3
Update Twitter bootstrap to 3.2.0
Vincent Tondellier <tonton+hg@team1664.org>
parents:
9
diff
changeset
|
26 |
<div class="container-fluid"> |
|
0df70b8735e3
Update Twitter bootstrap to 3.2.0
Vincent Tondellier <tonton+hg@team1664.org>
parents:
9
diff
changeset
|
27 |
%= link_to 'Crash test' => url_for('index') => (class => 'navbar-brand')
|
| 0 | 28 |
</div> |
29 |
</div> |
|
| 9 | 30 |
<div class="container-fluid"> |
| 0 | 31 |
% content_for 'success_messages' => begin |
32 |
% if ( defined($self->session->{success_messages}) && ( scalar( @{ $self->session->{success_messages}} ) > 0 ) ){
|
|
33 |
%foreach my $notice ( @{ $self->session->{success_messages}} ){
|
|
34 |
<div class="alert alert-success"> |
|
35 |
<a class="close" data-dismiss="alert">×</a> |
|
36 |
<p><%= $notice; %></p> |
|
37 |
</div> |
|
38 |
%} |
|
39 |
%delete($self->session->{success_messages});
|
|
40 |
%} |
|
41 |
%end |
|
42 |
||
43 |
% content_for 'noticed_messages' => begin |
|
44 |
% if ( defined($self->session->{notice_messages}) && ( scalar( @{ $self->session->{notice_messages}} ) > 0 ) ){
|
|
45 |
%foreach my $notice ( @{ $self->session->{notice_messages}} ){
|
|
46 |
<div class="alert alert-info"> |
|
47 |
<a class="close" data-dismiss="alert">×</a> |
|
48 |
<p><%= $notice; %></p> |
|
49 |
</div> |
|
50 |
%} |
|
51 |
%delete($self->session->{notice_messages});
|
|
52 |
%} |
|
53 |
%end |
|
54 |
||
55 |
% content_for 'error_messages' => begin |
|
56 |
% if ( defined($self->session->{error_messages}) && ( scalar( @{ $self->session->{error_messages}} ) > 0 ) ){
|
|
57 |
<div id="error-messages" class="error-messages"> |
|
58 |
%foreach my $error ( @{ $self->session->{error_messages}} ){
|
|
59 |
<div class="alert alert-error"> |
|
60 |
<a class="close" data-dismiss="alert">×</a> |
|
61 |
<p><%= $error; %></p> |
|
62 |
</div> |
|
63 |
%} |
|
64 |
%delete($self->session->{error_messages});
|
|
65 |
</div> |
|
66 |
%} |
|
67 |
%end |
|
68 |
||
69 |
<%= content_for 'hero_unit' %> |
|
70 |
<%= content_for 'error_messages' %> |
|
71 |
<%= content_for 'noticed_messages' %> |
|
72 |
<%= content_for 'success_messages' %> |
|
73 |
||
74 |
<%= content %> |
|
75 |
</div> |
|
|
3
2ff78fe4abda
Create helper to shorten signatures and create links to the repository
Vincent Tondellier <tonton+hg@team1664.org>
parents:
1
diff
changeset
|
76 |
% 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
|
77 |
%= 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
|
78 |
%= 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
|
79 |
%} else {
|
|
2ff78fe4abda
Create helper to shorten signatures and create links to the repository
Vincent Tondellier <tonton+hg@team1664.org>
parents:
1
diff
changeset
|
80 |
%= 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
|
81 |
%= 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
|
82 |
%} |
|
2ff78fe4abda
Create helper to shorten signatures and create links to the repository
Vincent Tondellier <tonton+hg@team1664.org>
parents:
1
diff
changeset
|
83 |
%= javascript '/assets/js/application.js' |
| 0 | 84 |
</body> |
85 |
</html> |