gitprep / templates / include / page_path.html.ep /
Newer Older
44 lines | 1.031kb
copy gitweblite soruce code
root authored on 2012-11-23
1
% use File::Basename 'basename';
added history page
Yuki Kimoto authored on 2013-01-29
2
<%
fixed bug that perl 5.8 don'...
Yuki Kimoto authored on 2013-04-12
3
  my $operation = stash('operation') || 'tree';
added history page
Yuki Kimoto authored on 2013-01-29
4
  unless ($operation eq 'commits' || $operation eq 'tree') {
5
    $operation = 'tree';
6
  }
fixed commit page blobdiff l...
Yuki Kimoto authored on 2013-02-01
7
  
8
  my $rev = stash('id') || stash('rev');
improved commits page design
Yuki Kimoto authored on 2013-04-30
9
  my $prefix = stash('prefix');
fix tree bug and improve tre...
Yuki Kimoto authored on 2015-12-19
10
  my $type = stash('type') || '';
added history page
Yuki Kimoto authored on 2013-01-29
11
%>
copy gitweblite soruce code
root authored on 2012-11-23
12

            
complete branch select desig...
Yuki Kimoto authored on 2016-01-06
13
<div class="page-path">
improved commits page design
Yuki Kimoto authored on 2013-04-30
14
  % if ($prefix) {
15
    <span class="muted">History for</span>
16
  % }
17

            
18
  <a href="<%= url_for("/$user/$project" . ($operation eq 'commits' ? '/commits' : '')) %>">
19
    <b><%= $project %></b>
added commit datetime to man...
Yuki Kimoto authored on 2013-05-03
20
  </a>
21
  
22
  % if (defined $Path) {
23
    /
24
    % my @parts = split('/', $Path);
25
    % my $path;
26
    % for (my $i = 0; $i < @parts; $i++) {
27
      % my $part = $parts[$i];
28
      % $path .= $part;
29
      
fix tree bug and improve tre...
Yuki Kimoto authored on 2015-12-19
30
      % if ($i == @parts - 1) {
added commit datetime to man...
Yuki Kimoto authored on 2013-05-03
31
        <b><%= $part %></b>
32
      % } else {
33
        <a href=
34
            "<%= url_for("/$user/$project/$operation/$rev/$path") %>">
35
          <%= $part %>
36
        </a>
37
        % $path .= '/';
38
      % }
39
      % unless ($type eq 'blob' && $i == @parts - 1) {
40
        /
41
      % }
copy gitweblite soruce code
root authored on 2012-11-23
42
    % }
improved commits page design
Yuki Kimoto authored on 2013-04-30
43
  % }
cleanup
Yuki Kimoto authored on 2013-03-15
44
</div>