| author | Vincent Tondellier <tonton+hg@team1664.org> |
| Mon, 09 Feb 2015 00:18:12 +0100 | |
| changeset 62 | b3786f800c59 |
| parent 57 | cebbfcd7deff |
| child 63 | 150e11f0fb7c |
| 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')
|
|
57
cebbfcd7deff
Add search box, using perl Search::Query syntax
Vincent Tondellier <tonton+hg@team1664.org>
parents:
28
diff
changeset
|
28 |
<form id="search-box" class="navbar-form navbar-right" method="get" action="<%= url_for("index") %>" role="search">
|
|
cebbfcd7deff
Add search box, using perl Search::Query syntax
Vincent Tondellier <tonton+hg@team1664.org>
parents:
28
diff
changeset
|
29 |
<div class="form-group"> |
|
cebbfcd7deff
Add search box, using perl Search::Query syntax
Vincent Tondellier <tonton+hg@team1664.org>
parents:
28
diff
changeset
|
30 |
<input name="search" type="text" class="form-control" placeholder="Search" value="<%= param("search") %>">
|
|
cebbfcd7deff
Add search box, using perl Search::Query syntax
Vincent Tondellier <tonton+hg@team1664.org>
parents:
28
diff
changeset
|
31 |
</div> |
|
cebbfcd7deff
Add search box, using perl Search::Query syntax
Vincent Tondellier <tonton+hg@team1664.org>
parents:
28
diff
changeset
|
32 |
<button type="submit" class="btn btn-default">Submit</button> |
|
cebbfcd7deff
Add search box, using perl Search::Query syntax
Vincent Tondellier <tonton+hg@team1664.org>
parents:
28
diff
changeset
|
33 |
</form> |
| 0 | 34 |
</div> |
35 |
</div> |
|
| 9 | 36 |
<div class="container-fluid"> |
| 0 | 37 |
% content_for 'success_messages' => begin |
38 |
% if ( defined($self->session->{success_messages}) && ( scalar( @{ $self->session->{success_messages}} ) > 0 ) ){
|
|
39 |
%foreach my $notice ( @{ $self->session->{success_messages}} ){
|
|
40 |
<div class="alert alert-success"> |
|
41 |
<a class="close" data-dismiss="alert">×</a> |
|
42 |
<p><%= $notice; %></p> |
|
43 |
</div> |
|
44 |
%} |
|
45 |
%delete($self->session->{success_messages});
|
|
46 |
%} |
|
47 |
%end |
|
48 |
||
49 |
% content_for 'noticed_messages' => begin |
|
50 |
% if ( defined($self->session->{notice_messages}) && ( scalar( @{ $self->session->{notice_messages}} ) > 0 ) ){
|
|
51 |
%foreach my $notice ( @{ $self->session->{notice_messages}} ){
|
|
52 |
<div class="alert alert-info"> |
|
53 |
<a class="close" data-dismiss="alert">×</a> |
|
54 |
<p><%= $notice; %></p> |
|
55 |
</div> |
|
56 |
%} |
|
57 |
%delete($self->session->{notice_messages});
|
|
58 |
%} |
|
59 |
%end |
|
60 |
||
61 |
% content_for 'error_messages' => begin |
|
62 |
% if ( defined($self->session->{error_messages}) && ( scalar( @{ $self->session->{error_messages}} ) > 0 ) ){
|
|
63 |
<div id="error-messages" class="error-messages"> |
|
64 |
%foreach my $error ( @{ $self->session->{error_messages}} ){
|
|
65 |
<div class="alert alert-error"> |
|
66 |
<a class="close" data-dismiss="alert">×</a> |
|
67 |
<p><%= $error; %></p> |
|
68 |
</div> |
|
69 |
%} |
|
70 |
%delete($self->session->{error_messages});
|
|
71 |
</div> |
|
72 |
%} |
|
73 |
%end |
|
74 |
||
75 |
<%= content_for 'hero_unit' %> |
|
76 |
<%= content_for 'error_messages' %> |
|
77 |
<%= content_for 'noticed_messages' %> |
|
78 |
<%= content_for 'success_messages' %> |
|
79 |
||
80 |
<%= content %> |
|
81 |
</div> |
|
|
3
2ff78fe4abda
Create helper to shorten signatures and create links to the repository
Vincent Tondellier <tonton+hg@team1664.org>
parents:
1
diff
changeset
|
82 |
% 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
|
83 |
%= 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
|
84 |
%= 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
|
85 |
%} else {
|
|
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/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
|
87 |
%= 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
|
88 |
%} |
|
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/application.js' |
| 0 | 90 |
</body> |
91 |
</html> |