improved performance a littl...
|
1 |
<% |
2 |
my $stylesheets = stash('stylesheets') || []; |
|
add commits atom alternate t...
|
3 |
my $user = stash('user'); |
4 |
$user = '' unless defined $user; |
|
5 |
my $project = stash('project'); |
|
6 |
$project = '' unless defined $project; |
|
7 |
my $rev = stash('rev'); |
|
8 |
if (length $user && length $project && !defined $rev) { |
|
9 |
$rev = app->manager->default_branch($user, $project); |
|
10 |
} |
|
11 |
$rev = '' unless $rev; |
|
improved performance a littl...
|
12 |
%> |
desinged blob page source
|
13 |
<!DOCTYPE html> |
copy gitweblite soruce code
|
14 |
<html> |
15 |
<head> |
|
desinged blob page source
|
16 |
<meta charset="UTF-8"> |
copy gitweblite soruce code
|
17 |
<meta name="robots" content="index, nofollow" > |
add title
|
18 |
% my $title = stash('title'); |
19 |
<title><%= $title ? "$title \x{30fb} Gitprep" : 'Gitprep' %></title> |
|
add Mojolicious::Plugin::DBV...
|
20 |
%= stylesheet '/css/common.css', rel => 'stylesheet', media => 'screen'; |
improved performance a littl...
|
21 |
% for my $stylesheet (@$stylesheets) { |
22 |
%= stylesheet $stylesheet; |
|
23 |
% } |
|
upgrade jquery to 1.9.0
|
24 |
%= javascript '/js/jquery-1.9.0.min.js'; |
improved performance a littl...
|
25 |
%= javascript '/js/bootstrap.min.js'; |
added google code prettify a...
|
26 |
|
copy gitweblite soruce code
|
27 |
<link rel="shortcut icon" href="<%= url_for('/git-favicon.png') %>" type="image/png" > |
add commits atom alternate t...
|
28 |
% if (length $user && length $project && length $rev) { |
29 |
<link href="<%= url_for("/$user/$project/commits/$rev.atom")->to_abs %>" rel="alternate" title="Recent Commits to <%= "$project:$rev" %>" type="application/atom+xml"> |
|
30 |
% } |
|
copy gitweblite soruce code
|
31 |
</head> |
32 |
<body> |
|
33 |
%= content; |
|
34 |
</body> |
|
35 |
</html> |