jazz/08-02-22: trac.0.10.3-1etch2.accesskey.patch

File trac.0.10.3-1etch2.accesskey.patch, 14.3 KB (added by jazz, 17 years ago)
  • /usr/share/python-support/trac/trac/web/auth.py

    diff -Naur /usr/share/python-support/trac/trac/web/auth.py.org /usr/share/python-support/trac/trac/web/auth.py
    old new  
    8585        if req.authname and req.authname != 'anonymous':
    8686            yield ('metanav', 'login', 'logged in as %s' % req.authname)
    8787            yield ('metanav', 'logout',
    88                    html.A('Logout', href=req.href.logout()))
     88                   html.A('Logout(o)', href=req.href.logout(), accesskey='o'))
    8989        else:
    9090            yield ('metanav', 'login',
    91                    html.A('Login', href=req.href.login()))
     91                   html.A('Login(l)', href=req.href.login(), accesskey='l'))
    9292
    9393    # IRequestHandler methods
    9494
  • /usr/share/python-support/trac/trac/wiki/web_ui.py

    diff -Naur /usr/share/python-support/trac/trac/wiki/web_ui.py.org /usr/share/python-support/trac/trac/wiki/web_ui.py
    old new  
    6565        if not req.perm.has_permission('WIKI_VIEW'):
    6666            return
    6767        yield ('mainnav', 'wiki',
    68                html.A('Wiki', href=req.href.wiki(), accesskey=1))
     68               html.A('Wiki(1)', href=req.href.wiki(), accesskey=1))
    6969        yield ('metanav', 'help',
    70                html.A('Help/Guide', href=req.href.wiki('TracGuide'),
     70               html.A('Help/Guide(6)', href=req.href.wiki('TracGuide'),
    7171                      accesskey=6))
    7272
    7373    # IPermissionRequestor methods
  • /usr/share/python-support/trac/trac/versioncontrol/web_ui/browser.py

    diff -Naur /usr/share/python-support/trac/trac/versioncontrol/web_ui/browser.py.org /usr/share/python-support/trac/trac/versioncontrol/web_ui/browser.py
    old new  
    7878        if not req.perm.has_permission('BROWSER_VIEW'):
    7979            return
    8080        yield ('mainnav', 'browser',
    81                html.A('Browse Source', href=req.href.browser()))
     81               html.A('Browse Source(5)', href=req.href.browser(), accesskey='5'))
    8282
    8383    # IPermissionRequestor methods
    8484
  • /usr/share/python-support/trac/trac/Timeline.py

    diff -Naur /usr/share/python-support/trac/trac/Timeline.py.org /usr/share/python-support/trac/trac/Timeline.py
    old new  
    7777        if not req.perm.has_permission('TIMELINE_VIEW'):
    7878            return
    7979        yield ('mainnav', 'timeline',
    80                html.A('Timeline', href=req.href.timeline(), accesskey=2))
     80               html.A('Timeline(2)', href=req.href.timeline(), accesskey=2))
    8181
    8282    # IPermissionRequestor methods
    8383
  • /usr/share/python-support/trac/trac/Settings.py

    diff -Naur /usr/share/python-support/trac/trac/Settings.py.org /usr/share/python-support/trac/trac/Settings.py
    old new  
    3333
    3434    def get_navigation_items(self, req):
    3535        yield ('metanav', 'settings',
    36                html.A('Settings', href=req.href.settings()))
     36               html.A('Settings(t)', href=req.href.settings(), accesskey='t'))
    3737
    3838    # IRequestHandler methods
    3939
  • /usr/share/python-support/trac/trac/ticket/report.py

    diff -Naur /usr/share/python-support/trac/trac/ticket/report.py.org /usr/share/python-support/trac/trac/ticket/report.py
    old new  
    4646        if not req.perm.has_permission('REPORT_VIEW'):
    4747            return
    4848        yield ('mainnav', 'tickets',
    49                html.A('View Tickets', href=req.href.report()))
     49               html.A('View Tickets(8)', href=req.href.report(), accesskey=8))
    5050
    5151    # IPermissionRequestor methods 
    5252
  • /usr/share/python-support/trac/trac/ticket/web_ui.py

    diff -Naur /usr/share/python-support/trac/trac/ticket/web_ui.py.org /usr/share/python-support/trac/trac/ticket/web_ui.py
    old new  
    107107        if not req.perm.has_permission('TICKET_CREATE'):
    108108            return
    109109        yield ('mainnav', 'newticket',
    110                html.A('New Ticket', href=req.href.newticket(), accesskey=7))
     110               html.A('New Ticket(7)', href=req.href.newticket(), accesskey=7))
    111111
    112112    # IRequestHandler methods
    113113
  • /usr/share/python-support/trac/trac/ticket/roadmap.py

    diff -Naur /usr/share/python-support/trac/trac/ticket/roadmap.py.org /usr/share/python-support/trac/trac/ticket/roadmap.py
    old new  
    129129        if not req.perm.has_permission('ROADMAP_VIEW'):
    130130            return
    131131        yield ('mainnav', 'roadmap',
    132                html.a('Roadmap', href=req.href.roadmap(), accesskey=3))
     132               html.a('Roadmap(3)', href=req.href.roadmap(), accesskey=3))
    133133
    134134    # IPermissionRequestor methods
    135135
  • /usr/share/python-support/trac/trac/Search.py

    diff -Naur /usr/share/python-support/trac/trac/Search.py.org /usr/share/python-support/trac/trac/Search.py
    old new  
    132132        if not req.perm.has_permission('SEARCH_VIEW'):
    133133            return
    134134        yield ('mainnav', 'search',
    135                html.A('Search', href=req.href.search(), accesskey=4))
     135               html.A('Search(4)', href=req.href.search(), accesskey=4))
    136136
    137137    # IPermissionRequestor methods
    138138
  • /usr/share/trac/templates/wiki.cs

    diff -Naur /usr/share/trac/templates/wiki.cs.org /usr/share/trac/templates/wiki.cs
    old new  
    88   <li class="first"><?cs
    99     if:len(chrome.links.prev) ?> &larr;
    1010      <a class="prev" href="<?cs var:chrome.links.prev.0.href ?>" title="<?cs
    11        var:chrome.links.prev.0.title ?>">Previous Change</a><?cs
     11       var:chrome.links.prev.0.title ?>" accesskey='p'>(P)revious Change</a><?cs
    1212     else ?>
    1313      <span class="missing">&larr; Previous Change</span><?cs
    1414     /if ?>
    1515   </li>
    16    <li><a href="<?cs var:wiki.history_href ?>">Page History</a></li>
     16   <li><a href="<?cs var:wiki.history_href ?>" accesskey='h'>Page (H)istory</a></li>
    1717   <li class="last"><?cs
    1818     if:len(chrome.links.next) ?>
    1919      <a class="next" href="<?cs var:chrome.links.next.0.href ?>" title="<?cs
    20        var:chrome.links.next.0.title ?>">Next Change</a> &rarr; <?cs
     20       var:chrome.links.next.0.title ?>" accesskey='n'>(N)ext Change</a> &rarr; <?cs
    2121     else ?>
    2222      <span class="missing">Next Change &rarr;</span><?cs
    2323     /if ?>
    2424   </li><?cs
    2525  elif:wiki.action == "history" ?>
    26    <li class="last"><a href="<?cs var:wiki.current_href ?>">View Latest Version</a></li><?cs
     26   <li class="last"><a href="<?cs var:wiki.current_href ?>" accesskey='v'>(V)iew Latest Version</a></li><?cs
    2727  else ?>
    2828   <li><a href="<?cs var:trac.href.wiki ?>">Start Page</a></li>
    2929   <li><a href="<?cs var:trac.href.wiki ?>/TitleIndex">Index by Title</a></li>
    3030   <li><a href="<?cs var:trac.href.wiki ?>/RecentChanges">Index by Date</a></li>
    31    <li class="last"><a href="<?cs var:wiki.last_change_href ?>">Last Change</a></li><?cs
     31   <li class="last"><a href="<?cs var:wiki.last_change_href ?>" accesskey='h'>Last Change(h)</a></li><?cs
    3232  /if ?>
    3333 </ul>
    3434 <hr />
     
    201201  <?cs if:len(wiki.history) ?><form class="printableform" method="get" action="">
    202202   <input type="hidden" name="action" value="diff" />
    203203   <div class="buttons">
    204     <input type="submit" value="View changes" />
     204    <input type="submit" value="View (c)hanges" accesskey='c'/>
    205205   </div>
    206206   <table id="wikihist" class="listing" summary="Change history">
    207207    <thead><tr>
     
    319319      <input type="submit" name="preview" value="Preview" disabled="disabled" />&nbsp;
    320320      <input type="submit" name="save" value="Submit changes" disabled="disabled" />&nbsp;
    321321     <?cs else ?>
    322       <input type="submit" name="preview" value="Preview" accesskey="r" />&nbsp;
    323       <input type="submit" name="save" value="Submit changes" />&nbsp;
     322      <input type="submit" name="preview" value="Preview(p)" accesskey="p" />&nbsp;
     323      <input type="submit" name="save" value="Submit changes(s)" accesskey="s" />&nbsp;
    324324     <?cs /if ?>
    325325     <input type="submit" name="cancel" value="Cancel" />
    326326    </div>
     
    360360     <form method="get" action="<?cs var:wiki.current_href ?>"><div>
    361361      <input type="hidden" name="action" value="edit" />
    362362      <input type="submit" value="<?cs if:wiki.exists ?>Edit<?cs
    363         else ?>Create<?cs /if ?> this page" accesskey="e" />
     363        else ?>Create<?cs /if ?> this page(e)" accesskey="e" />
    364364     </div></form><?cs
    365365     if:wiki.exists ?>
    366366      <form method="get" action="<?cs var:wiki.attach_href ?>"><div>
    367367       <input type="hidden" name="action" value="new" />
    368        <input type="submit" value="Attach file" />
     368       <input type="submit" value="Attach file(a)" accesskey="a" />
    369369      </div></form><?cs
    370370     /if ?><?cs
    371371    /if ?><?cs
     
    374374      <input type="hidden" name="action" value="delete" />
    375375      <input type="hidden" name="version" value="<?cs var:wiki.version ?>" /><?cs
    376376      if:wiki.version == wiki.latest_version ?>
    377        <input type="submit" name="delete_version" value="Delete this version" /><?cs
     377       <input type="submit" name="delete_version" value="Delete this version(d)" accesskey="d" /><?cs
    378378      /if ?>
    379379      <input type="submit" value="Delete page" />
    380380     </div></form>
  • /usr/share/trac/templates/report.cs

    diff -Naur /usr/share/trac/templates/report.cs.org /usr/share/trac/templates/report.cs
    old new  
    55 <h2>Report Navigation</h2>
    66 <ul><li class="first"><?cs
    77   if:chrome.links.up.0.href ?><a href="<?cs
    8     var:chrome.links.up.0.href ?>">Available Reports</a><?cs
     8    var:chrome.links.up.0.href ?>" accesskey='a'>(A)vailable Reports</a><?cs
    99   else ?>Available Reports<?cs
    1010  /if ?></li><?cs
    1111  if:report.query_href ?><li class="last"><a href="<?cs
  • /usr/share/trac/templates/browser.cs

    diff -Naur /usr/share/trac/templates/browser.cs.org /usr/share/trac/templates/browser.cs
    old new  
    33
    44<div id="ctxtnav" class="nav">
    55 <ul>
    6   <li class="first"><a href="<?cs var:browser.restr_changeset_href ?>">
    7    Last Change</a></li>
    8   <li class="last"><a href="<?cs var:browser.log_href ?>">
    9    Revision Log</a></li>
     6  <li class="first"><a href="<?cs var:browser.restr_changeset_href ?>" accesskey='c'>
     7   Last (C)hange</a></li>
     8  <li class="last"><a href="<?cs var:browser.log_href ?>" accesskey='r'>
     9   (R)evision Log</a></li>
    1010 </ul>
    1111</div>
    1212
  • /usr/share/trac/templates/log.cs

    diff -Naur /usr/share/trac/templates/log.cs.org /usr/share/trac/templates/log.cs
    old new  
    44<div id="ctxtnav" class="nav">
    55 <ul>
    66  <li class="first <?cs if:len(chrome.links.prev)+len(chrome.links.next) == 0 ?>last<?cs /if ?>">
    7    <a href="<?cs var:log.browser_href ?>">View Latest Revision</a>
     7   <a href="<?cs var:log.browser_href ?>" accesskey='v'>(V)iew Latest Revision</a>
    88  </li><?cs
    99  if:len(chrome.links.prev) ?>
    1010   <li class="<?cs if:!len(chrome.links.next) ?> last<?cs /if ?>">
     
    7878 </div>
    7979
    8080 <form  class="printableform" action="<?cs var:log.changeset_href ?>" method="get">
    81   <div class="buttons"><input type="submit" value="View changes"
    82        title="Diff from Old Revision to New Revision (select them below)" />
     81  <div class="buttons"><input type="submit" value="View (c)hanges"
     82       title="Diff from Old Revision to New Revision (select them below)" accesskey='c'/>
    8383 </div>
    8484 <table id="chglist" class="listing">
    8585  <thead>
  • /usr/share/trac/templates/changeset.cs

    diff -Naur /usr/share/trac/templates/changeset.cs.org /usr/share/trac/templates/changeset.cs
    old new  
    1414    <li class="first"><?cs
    1515     if:len(links.prev) ?> &larr;
    1616      <a class="prev" href="<?cs var:links.prev.0.href ?>" title="<?cs
    17        var:links.prev.0.title ?>">Previous <?cs var:change ?></a> <?cs
     17       var:links.prev.0.title ?>" accesskey='p'>(P)revious <?cs var:change ?></a> <?cs
    1818     else ?>
    1919      <span class="missing">&larr; Previous <?cs var:change ?></span><?cs
    2020     /if ?>
     
    2222    <li class="last"><?cs
    2323     if:len(links.next) ?>
    2424      <a class="next" href="<?cs var:links.next.0.href ?>" title="<?cs
    25        var:links.next.0.title ?>">Next <?cs var:change ?></a> &rarr; <?cs
     25       var:links.next.0.title ?>" accesskey='n'>(N)ext <?cs var:change ?></a> &rarr; <?cs
    2626     else ?>
    2727      <span class="missing">Next <?cs var:change ?> &rarr;</span><?cs
    2828     /if ?>
    2929    </li><?cs
    3030   else ?>
    31     <li class="last"><a href="<?cs var:changeset.reverse_href ?>">Reverse Diff</a></li><?cs
     31    <li class="last"><a href="<?cs var:changeset.reverse_href ?>" accesskey='r'>(R)everse Diff</a></li><?cs
    3232   /if ?>
    3333  </ul><?cs
    3434 /with ?>
  • /usr/share/trac/templates/newticket.cs

    diff -Naur /usr/share/trac/templates/newticket.cs.org /usr/share/trac/templates/newticket.cs
    old new  
    111111 /if ?>
    112112
    113113 <div class="buttons">
    114   <input type="submit" name="preview" value="Preview" accesskey="r" />&nbsp;
    115   <input type="submit" value="Submit ticket" />
     114  <input type="submit" name="preview" value="(P)review" accesskey="p" />&nbsp;
     115  <input type="submit" value="(S)ubmit ticket" accesskey="s"/>
    116116 </div>
    117117</form>
    118118