cleanup
|
1 |
<% |
2 |
# API |
|
cleanup
|
3 |
my $api = gitprep_api; |
added branch long name featu...
|
4 | |
5 |
# Git |
|
6 |
my $git = app->git; |
|
cleanup
|
7 |
|
8 |
# Parameters |
|
9 |
my $user = param('user'); |
|
cleanup, rename repository t...
|
10 |
my $project = param('project'); |
added branch long name featu...
|
11 |
my $rev_dir = param('rev_dir'); |
12 |
my ($rev, $dir) = $git->parse_rev_path($user, $project, $rev_dir); |
|
cleanup
|
13 |
|
14 |
# Tree id |
|
rename parse_commit to get_c...
|
15 |
my $commit = $git->get_commit($user, $project, $rev); |
improved branch top page
|
16 |
my $top; |
cleanup
|
17 |
$top = 1 unless defined $dir && $dir ne ''; |
cleanup
|
18 | |
cleanup
|
19 |
# Tree |
cleanup
|
20 |
my $trees = $git->trees($user, $project, $rev, $dir); |
cleanup
|
21 |
|
22 |
# Commits number |
|
cleanup
|
23 |
my $commits_number = $git->commits_number($user, $project, $rev); |
cleanup
|
24 |
|
cleanup
|
25 |
# Variable for included templates |
cleanup
|
26 |
stash( |
27 |
commit => $commit, |
|
28 |
trees => $trees, |
|
added branch long name featu...
|
29 |
rev => $rev, |
30 |
dir => $dir |
|
cleanup
|
31 |
); |
32 |
%> |
|
copy gitweblite soruce code
|
33 | |
add title
|
34 |
% layout 'common', title => "$project/$dir at $rev \x{30fb} $user/$project"; |
cleanup
|
35 |
|
36 |
%= include '/include/header'; |
|
37 | ||
cleanup tree page
|
38 |
<div class="container"> |
39 |
%= include '/include/project_header'; |
|
40 |
%= include '/include/code_menu', display => 'files'; |
|
fixed top page blob link
|
41 |
%= include '/include/page_path', type => 'tree', Path => $dir; |
cleanup
|
42 |
%= include '/include/tree'; |
improve CGI performace and d...
|
43 |
|
44 |
% if (!defined $dir || $dir eq '') { |
|
45 |
%= include '/include/readme' |
|
46 |
% } |
|
cleanup
|
47 |
</div> |
48 |
|
|
49 |
%= include '/include/footer'; |
|
50 |