Software Freedom Law Center

Changeset 81

Show
Ignore:
Timestamp:
05/01/08 21:36:23 (2 months ago)
Author:
bkuhn
Message:

r60@hughes: bkuhn | 2008-03-19 17:59:34 -0400

  • Brought in sync with r6719 of Trac upstream, which was accomplished via:

svk smerge /loblaw/local/branches/trac.upstream-r6719 .

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/trac/trac/htdocs/js/keyboard_nav.js

    r61 r81  
    11(function($){ 
    22  var SELECTED_FILE_ELEM = null; 
    3   var ENABLE_KEY_NAV = true; 
    43 
    54  $(document).keydown(function(event) { 
    6     if (!ENABLE_KEY_NAV) 
    7       return true; 
    85    var selection = SELECTED_FILE_ELEM; 
    96    switch (event.keyCode) { 
     
    4946    return false; 
    5047  }); 
    51  
    52   $(function() { 
    53     $('a,input,select,textarea,button') 
    54       .focus(function(event) { 
    55         ENABLE_KEY_NAV = false; 
    56       }) 
    57       .blur(function(event) { 
    58         ENABLE_KEY_NAV = true; 
    59       }); 
    60   }); 
    6148})(jQuery); 
  • trunk/trac/trac/templates/layout.html

    r61 r81  
    2929  </head></py:match> 
    3030 
     31  <div py:def="navigation(category)" id="${category}" class="nav"> 
     32    <ul py:if="chrome.nav[category]"> 
     33      <li py:for="idx, item in  enumerate(chrome.nav[category])" 
     34          class="${classes(first_last(idx, chrome.nav[category]), active=item.active)}">${item.label}</li> 
     35    </ul> 
     36  </div> 
     37   
    3138  <py:match path="body" once="true"><body> 
    3239    ${select('*|text()')} 
     40     
     41      <script type="text/javascript" py:if="chrome.late_links"> 
     42        <py:for each="link in chrome.late_links.get('stylesheet')"> 
     43          jQuery.loadStyleSheet("${link.href}", "${link.title}"); 
     44        </py:for> 
     45      </script> 
     46      <script py:for="script in chrome.late_scripts" 
     47              type="${script.type}" src="${script.href}"></script> 
    3348 
    34     <script type="text/javascript" py:if="chrome.late_links"> 
    35       <py:for each="link in chrome.late_links.get('stylesheet')"> 
    36         jQuery.loadStyleSheet("${link.href}", "${link.title}"); 
    37       </py:for> 
    38     </script> 
    39     <script py:for="script in chrome.late_scripts" 
    40             type="${script.type}" src="${script.href}"></script> 
    41  
    42     <div id="altlinks" py:if="'alternate' in chrome.links"> 
    43       <h3>Download in other formats:</h3> 
    44       <ul> 
    45         <li py:for="idx, link in enumerate(chrome.links.alternate)" 
    46             class="${first_last(idx, chrome.links.alternate)}"> 
    47           <a rel="nofollow" href="${link.href}" class="${link['class']}" 
    48              py:content="link.title" /> 
    49         </li> 
    50       </ul> 
    51     </div> 
    52   </body></py:match> 
    53  
     49      <div id="altlinks" py:if="'alternate' in chrome.links"> 
     50        <h3>Download in other formats:</h3> 
     51        <ul> 
     52          <li py:for="idx, link in enumerate(chrome.links.alternate)" 
     53              class="${first_last(idx, chrome.links.alternate)}"> 
     54            <a rel="nofollow" href="${link.href}" class="${link['class']}" 
     55               py:content="link.title" /> 
     56          </li> 
     57        </ul> 
     58      </div> 
     59    </body></py:match> 
     60     
     61  <xi:include href="$chrome.theme"><xi:fallback /></xi:include> 
    5462  <xi:include href="$chrome.theme"><xi:fallback /></xi:include> 
    5563  <xi:include href="site.html"><xi:fallback /></xi:include> 
  • trunk/trac/trac/templates/theme.html

    r61 r81  
    66      xmlns:py="http://genshi.edgewall.org/" 
    77      py:strip=""> 
    8  
    9   <div py:def="navigation(category)" id="${category}" class="nav"> 
    10     <ul py:if="chrome.nav[category]"> 
    11       <li py:for="idx, item in  enumerate(chrome.nav[category])" 
    12           class="${classes(first_last(idx, chrome.nav[category]), active=item.active)}">${item.label}</li> 
    13     </ul> 
    14   </div> 
    15  
    16   <py:match path="body" once="true" buffer="false"><body> 
     8  <py:match path="body" once="true"><body> 
    179    <div id="banner"> 
    1810      <div id="header" py:choose=""> 
  • trunk/trac/trac/versioncontrol/web_ui/browser.py

    r61 r81  
    386386                            href=req.href.browser(node.created_path,  
    387387                                                  rev=node.rev, 
    388                                                   annotate='blame')) 
     388                                                  annotate=1)) 
    389389        add_ctxtnav(req, _('Revision Log'),  
    390390                    href=req.href.log(path, rev=rev)) 

SFLC Main Page

[frdm] Support SFLC