Bumping version and updated Changes appropriately.
[catagits/Gitalist.git] / root / wrapper.tt2
index a44a2e4..0842b9f 100755 (executable)
@@ -20,7 +20,7 @@
   [% INCLUDE '_header_feeds.tt2' %]
    
        <link rel="stylesheet" type="text/css" href="[% c.uri_for('/core.css') %]" />
-       <link rel="shortcut icon" href="[% c.uri_for('/static/git-favicon.png') %]" type="image/png" />
+       <link rel="shortcut icon" href="[% c.uri_for('/static/favicon.ico') %]" />
        <script type="text/javascript">
        // FIXME: this should be in an external js file once c.uri_for works in js files
        function compareDiffs(repo, path){
@@ -44,7 +44,7 @@
                                }
                        }
                }
-               document.location.href = "[% c.uri_for("/") %]" + repo + "/"+ sha1 + "/diff/" + sha2 + "/" + path;
+               document.location.href = "[% c.uri_for("/") %]" + repo + "/"+ sha2 + "/diff/" + sha1 + "/" + path;
        }
        // handles hover sub menus in IE
        startList = function() {
 
                                
                                <li id="branch_selector">
-                                       [%# FIXME: convert to c.uri_for_action  #%]
-                                       
                                        Branches 
-                                       <select onchange="document.location.href='/[% Repository.name %]/'+this.options[this.selectedIndex].text + '/shortlog';">
+                                       <select onchange="document.location.href='[% c.uri_for("/") %][% Repository.name %]/'+this.options[this.selectedIndex].text + '/shortlog';">
                                                <option value="">HEAD</option>
                                        
                                        [% FOREACH branch_head IN Repository.heads %]
                        
                        
                        [%- 
+                               
+                               #FIXME on a history view of a folder, don't show extra actions in dropdown
+                               SET on_file_page = 1;
+                               
                                SET actions_list = {
                                                "blob"          => 1,
                                                "raw"           => 1,
                                                                        .replace("fancy","")
                                                                        .replace("index","Repositories");
                                action_name_ucfirst = action_name FILTER ucfirst;
-                               IF actions_list.$action_name;
+                               IF actions_list.$action_name && on_file_page;
                                        '<a href="#" id="actions_nav_link"><span>' _ action_name_ucfirst _ '</span></a>';
                                ELSE;
                                        action_name_ucfirst;
        [% USE Dumper %]
        <pre>
        [% Repository.path %]
-       [%# Dumper.dump(c.req.path) %]
+       [%# Dumper.dump(Commit) %]
        </pre>
        
        </div>