gitprep / templates / main / log.html.ep /
bf01392 11 years ago
1 contributor
40 lines | 1.474kb
% layout 'common';
  %= include '/include/header', title => 'Log', project => $project;
  %= include '/include/current_directory', home_ns => $home_ns, home => $home;
  %= include '/include/page_navi', current => 'log',project_ns => $project_ns;

  <%= include '/include/page_navi2', current => 'log', id => $id,
    page => $page, page_count => $page_count, commits => $commits;
  %>
  
  % for my $commit (@$commits) {
    <div class="header">
      <a class="title" href="<%= url_for('commit', project => $project_ns, id => $commit->{id}) %>">
        <span class="age" style="font-size:70%">
          <%= $commit->{age_string} %>
        </span>
        &nbsp;
        <%= $commit->{title} %>
      </a>
    </div>
    <div class="title_text">
      <div class="log_link">
        <a href="<%= url_for('commit', project => $project_ns, id => $commit->{id}) %>">commit</a> |
        <a href="<%= url_for('commitdiff', project => $project_ns, diff => $commit->{id}) %>">
          commitdiff
        </a>
        |
        <a href="<%= url_for('tree', project => $project_ns,
            id_dir => $commit->{id}) %>">
          tree
        </a><br/>
      </div>
      <span class="author_date"><%= $commit->{author_name} %> [<%= $commit->{author_date} %>]</span>
      <br/>
    </div>
    <div class="log_body">
      %= include 'include/refs', project_ns => $project_ns, commit => $commit, refs => $refs;
      <%= $commit->{title} %><br/>
    <br/>
    </div>
  % }