Fixed summary and changed a few links.
Dan Brook [Tue, 11 May 2010 21:30:39 +0000 (22:30 +0100)]
Having object and summary try to grab the same part of the request was never
going to work, my bad. Should also have support having summary point at
arbitrary commits like pretty much every other action.

Changed repo links to point to summary instead of shortlog.

lib/Gitalist/URIStructure/Repository.pm
root/fragment/collectionofrepositories.tt2
root/static/js/jquery.min.js [moved from root/static/js/jquery-min.js with 100% similarity]
root/wrapper.tt2

index 1bdf691..13c6ed8 100644 (file)
@@ -43,7 +43,7 @@ sub object : Chained('find') PathPart('') Args(1) {
 
 }
 
-sub summary : Chained('find') PathPart('') Args(0) {}
+sub summary : Chained('find') Args() {}
 
 sub heads : Chained('find') Args(0) {}
 
index 2b153d3..2bd62c5 100755 (executable)
@@ -3,7 +3,7 @@
        [%- repos_link = c.uri_for_action('/repository/summary', [p.name]) -%]
 <tr [% "class='invert'" IF loop.count % 2 %]>
     <td>[% loop.count %]</td>
-       <td><a href="[% repos_link %]/shortlog"><strong>[% p.name %]</strong></a></td>
+       <td><a href="[% repos_link %]/summary"><strong>[% p.name %]</strong></a></td>
     <td class="description"><div title="[% p.description %]">[% abridged_description(p.description) IF p.description != "Unnamed repository; edit this file to name it for gitweb." %]</div></td>
     <td class="time-since">[% time_since(p.last_change) %]</td>
     <td>[% p.owner %]</td>
index 1e35105..c03a4b2 100755 (executable)
@@ -1,7 +1,6 @@
 [%- IF no_wrapper || template.name.match('\.(css|js|txt)'); content; ELSE; -%]
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
-"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<!DOCTYPE html>
+<html>
 <head>
   <!-- git core binaries version [% git_version %] -->
   <meta charset="utf-8" />
@@ -21,7 +20,7 @@
    
        <link rel="stylesheet" type="text/css" href="[% c.uri_for('/core.css') %]" />
        <link rel="shortcut icon" href="[% c.uri_for('/static/favicon.ico') %]" />
-       <script src="[% c.uri_for('/static/js/jquery-min.js') %]"></script>
+       <script src="[% c.uri_for('/static/js/jquery.min.js') %]"></script>
        <script src="[% c.uri_for('/static/js/site.js') %]"></script>
 </head>
 
@@ -78,7 +77,7 @@
                        <a href="[% c.uri_for('/') %]">Home</a>
                
                        [%- IF Repository %]
-               / <a href="[% c.uri_for_action('/repository/summary', [Repository.name]) %]/shortlog">[% Repository.name %]</a>
+               / <a href="[% c.uri_for_action('/repository/summary', [Repository.name]) %]">[% Repository.name %]</a>
                        [%- END %]
                        /
                        [%- IF Repository %]