gitprep / templates / tree.html.ep /
Newer Older
50 lines | 1.139kb
cleanup
Yuki Kimoto authored on 2013-01-28
1
<%
2
  # API
cleanup
Yuki Kimoto authored on 2013-03-19
3
  my $api = gitprep_api;
added branch long name featu...
Yuki Kimoto authored on 2013-05-12
4

            
5
  # Git
6
  my $git = app->git;
cleanup
Yuki Kimoto authored on 2013-01-28
7
  
8
  # Parameters
9
  my $user = param('user');
cleanup, rename repository t...
Yuki Kimoto authored on 2013-01-29
10
  my $project = param('project');
added branch long name featu...
Yuki Kimoto authored on 2013-05-12
11
  my $rev_dir = param('rev_dir');
12
  my ($rev, $dir) = $git->parse_rev_path($user, $project, $rev_dir);
cleanup
Yuki Kimoto authored on 2013-01-28
13
  
14
  # Tree id
rename parse_commit to get_c...
Yuki Kimoto authored on 2013-05-01
15
  my $commit = $git->get_commit($user, $project, $rev);
improved branch top page
Yuki Kimoto authored on 2013-02-02
16
  my $top;
cleanup
Yuki Kimoto authored on 2013-04-29
17
  $top = 1 unless defined $dir && $dir ne '';
cleanup
Yuki Kimoto authored on 2013-02-02
18

            
cleanup
Yuki Kimoto authored on 2013-01-28
19
  # Tree
cleanup
Yuki Kimoto authored on 2013-04-29
20
  my $trees = $git->trees($user, $project, $rev, $dir);
cleanup
Yuki Kimoto authored on 2013-01-28
21
  
22
  # Commits number
cleanup
Yuki Kimoto authored on 2013-03-19
23
  my $commits_number = $git->commits_number($user, $project, $rev);
cleanup
Yuki Kimoto authored on 2013-01-28
24
  
cleanup
Yuki Kimoto authored on 2013-02-02
25
  # Variable for included templates
cleanup
Yuki Kimoto authored on 2013-01-28
26
  stash(
27
    commit => $commit,
28
    trees => $trees,
added branch long name featu...
Yuki Kimoto authored on 2013-05-12
29
    rev => $rev,
30
    dir => $dir
cleanup
Yuki Kimoto authored on 2013-01-28
31
  );
32
%>
copy gitweblite soruce code
root authored on 2012-11-23
33

            
add title
Yuki Kimoto authored on 2013-06-12
34
% layout 'common', title => "$project/$dir at $rev \x{30fb} $user/$project";
cleanup
Yuki Kimoto authored on 2013-01-28
35
  
36
  %= include '/include/header';
37

            
cleanup tree page
Yuki Kimoto authored on 2013-03-15
38
  <div class="container">
39
    %= include '/include/project_header';
40
    %= include '/include/code_menu', display => 'files';
fixed top page blob link
Yuki Kimoto authored on 2013-01-28
41
    %= include '/include/page_path', type => 'tree', Path => $dir;
cleanup
Yuki Kimoto authored on 2013-01-28
42
    %= include '/include/tree';
improve CGI performace and d...
Yuki Kimoto authored on 2013-09-06
43
    
44
    % if (!defined $dir || $dir eq '') {
45
      %= include '/include/readme'
46
    % }
cleanup
Yuki Kimoto authored on 2013-01-28
47
  </div>
48
  
49
  %= include '/include/footer';
50