Newer Older
76 lines | 2.554kb
cleanup
Yuki Kimoto authored on 2013-04-29
1
<%
2
  my $dir = stash('dir');
fix mail bug
Yuki Kimoto authored on 2016-04-21
3
  my $commit_author_email = $commit->{author_email};
add user page link from user...
Yuki Kimoto authored on 2016-04-11
4
  my $commit_author_id = app->dbi->model('user')->select(
5
    'id',
fix mail bug
Yuki Kimoto authored on 2016-04-21
6
    where => {email => $commit_author_email}
add user page link from user...
Yuki Kimoto authored on 2016-04-11
7
  )->value;
cleanup
Yuki Kimoto authored on 2013-04-29
8
%>
9

            
complete blob page design
Yuki Kimoto authored on 2016-01-09
10
<div>
improve tree header design
Yuki Kimoto authored on 2016-01-06
11
  <div class="commit-summary">
12
    <div class="commit-summary-left-container">
add user page link from user...
Yuki Kimoto authored on 2016-04-11
13
      <span class="commit-summary-author" title="<%= $commit->{author_email} %>">
14
        % if (defined $commit_author_id) {
15
          <a href="<%= url_for("/$commit_author_id") %>"><%= $commit_author_id %></a>
16
        % } else {
17
          <%= $commit->{author_name} %>
18
        % }
19
      </span>
improve tree header design
Yuki Kimoto authored on 2016-01-06
20
      <a href="<%= url_for("/$user/$project/commit/$rev") %>">
21
        <%= $commit->{title} %>
22
      </a>
23
    </div>
24
    <div class="commit-summary-right-container">
25
      Latest commit
26
      <a href="<%= url_for("/$user/$project/commit/$commit->{id}") %>">
27
        <%= substr($commit->{id}, 0, 7) %>
28
      </a>
29
      <%= $commit->{age_string} %>
30
    </div>
added tree page
Yuki Kimoto authored on 2012-12-12
31
  </div>
improve tree design
Yuki Kimoto authored on 2016-01-07
32
  <ul class="file-list">
33
    % for (my $i = 0; $i <@$trees; $i++) {
34
      <%
35
        my $last = $i == @$trees - 1;
36
        my $tree = $trees->[$i];
37
        my $type = $tree->{type};
38
        my $name = $tree->{name};
39
        my $commit = $tree->{commit};
40
        my $mode_str = $tree->{mode_str};
41
      %>
42
      
43
      <li>
44
        <div class="file-list-name">
45
          % my $child_dir = defined $dir && length $dir ? join('/', $dir, $name) : $name;
46
          % if ($mode_str eq 'm---------') {
47
            <i class="icon-folder-close"></i>
48
            <a href="<%= url_for("/$user/$project/submodule/$rev/$child_dir") %>">
49
              <%= $name %>
improve submodule design
Yuki Kimoto authored on 2016-02-08
50
            </a>
51
            <small>[submodule]</small>              
improve tree design
Yuki Kimoto authored on 2016-01-07
52
          % } elsif ($type eq 'blob') {
53
            % my $file = defined $dir && $dir ne '' ? "$dir/$name" : $name;
54
            <i class="icon-file"></i>
55
            <a href="<%= url_for("/$user/$project/blob/$rev/$file") %>">
56
              <%= $name %>
cleanup
Yuki Kimoto authored on 2013-03-15
57
            </a>
improve tree design
Yuki Kimoto authored on 2016-01-07
58
          % } elsif ($tree) {
59
            <i class="icon-folder-close"></i>
60
            <a href="<%= url_for("/$user/$project/tree/$rev/$child_dir") %>">
61
              <%= $name %>
62
            </a>
63
          % }
cleanup
Yuki Kimoto authored on 2013-03-15
64
        </div>
improve tree design
Yuki Kimoto authored on 2016-01-07
65
        <div class="file-list-commit">
66
          <a href="<%= url_for("/$user/$project/commit/$commit->{id}") %>">
67
            <%= $commit->{title_short} %>
68
          </a>
69
        </div>
70
        <div class="file-list-age">
71
          <span title="<%= $commit->{age_string_datetime_local} %>"><%= $commit->{age_string} %></span>
72
        </div>
73
      </li>
74
    % }
75
  </ul>
added tree page
Yuki Kimoto authored on 2012-12-12
76
</div>