History is not used in the current interface. If its only for compat then it shouldn...
Tomas Doran [Mon, 18 Jan 2010 20:04:04 +0000 (20:04 +0000)]
lib/Gitalist/Controller/Root.pm
root/_history.tt2 [deleted file]
root/history.tt2 [deleted file]

index d39c867..419dc25 100644 (file)
@@ -115,22 +115,6 @@ sub blobdiff : Chained('base') Args(0) {
     unless $c->stash->{no_wrapper};
 }
 
-# For legacy support.
-sub history : Chained('base') Args(0) {
-    my ( $self, $c ) = @_;
-    $self->shortlog($c);
-    my $repository = $c->stash->{Repository};
-    my $file = $repository->get_object(
-        $repository->hash_by_path(
-            $repository->head_hash,
-            $c->stash->{filename}
-        )
-    );
-     $c->stash(
-               filetype => $file->type,
-           );
-}
-
 =head2 search_help
 
 Provides some help for the search form.
diff --git a/root/_history.tt2 b/root/_history.tt2
deleted file mode 100644 (file)
index 48e926d..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-<table class='history listing'>
- <thead>
-  <tr>
-   <th>sha1</th>
-   <th>time</th>
-   <th>author</th>
-   <th>message</th>
-   <th>actions</th>
-  </tr>
- </thead>
-
- <tfoot>
-  <tr>
-   <td>sha1</td>
-   <td>time</td>
-   <td>author</td>
-   <td>message</td>
-   <td>actions</td>
-  </tr>
- </tfoot>
-
- <tbody>
- [% FOREACH line IN log_lines %]
-  <tr>
-   <td class='sha1' title='[% line.sha1 %]'>[% INCLUDE 'inc/chroma_hash.tt2' sha1 = line.sha1.substr(0, 7) %]</td>
-   <td class='time-since' title='[% line.authored_time %]'>[% time_since(line.authored_time) %]</td>
-   <td class='author'>[% line.author.name | html %]</td>
-   <td>
-     [% short_cmt(line.comment) | html %]
-     [% INCLUDE '_refs.tt2' object = line.0 %]
-   </td>
-   <td class='action-list'>
-   [% IF filetype == 'tree' %]
-     <a href="[% c.uri_for("tree", {h=line.sha1, hb=line.sha1}) %]">tree</a>
-    [% ELSIF filetype == 'blob' %]
-     <a href="[% c.uri_for("blob", {hb=line.sha1, f=filename}) %]">blob</a>
-    [% END %]
-     <a href="[% c.uri_for("commitdiff", {h=line.sha1}) %]">commitdiff</a>
-    [% IF filetype == 'blob' %]
-     <a href="[% c.uri_for("blobdiff", {hb="HEAD", hpb=line.sha1, f=filename}) %]">diff to current</a>
-     [% END %]
-   </td>
-  </tr>
- [% END %]
- </tbody>
-</table>
diff --git a/root/history.tt2 b/root/history.tt2
deleted file mode 100644 (file)
index babb960..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-[% INCLUDE 'nav/actions.tt2' object = commit %]
-
-[%
-  INCLUDE '_log_pager.tt2';
-  INCLUDE '_history.tt2';
-  INCLUDE '_log_pager.tt2';
-%]