[Rt-commit] rt branch, 4.4/keyboard-shortcuts, repushed

Dustin Graves dustin at bestpractical.com
Tue Sep 29 16:37:55 EDT 2015


The branch 4.4/keyboard-shortcuts was deleted and repushed:
       was 6909b3b2f8dd8bb3a3f8a635122066491e2680d4
       now 81647af20974d2ff0ccf9f928541b17d5755e851

1:  6909b3b ! 1:  81647af add global / page-specific keyboard shortcuts
    @@ -84,34 +84,36 @@
     +<%ARGS>
     +</%ARGS>
     +<link href="/static/css/tipso.min.css" rel="stylesheet">
    -+<div>
    ++<span clas="keyboard-shortcuts-link">
     +    <a align="right" href="#">
    -+        <img src="<% RT->Config->Get('WebPath') %>/static/images/keyboard-shortcuts.svg" alt="<% loc('Keyboard Shortcuts') %>" style="border-style: none" height="13"/>
    ++        <img src="<% RT->Config->Get('WebPath') %>/static/images/keyboard-shortcuts.svg" alt="<% loc('Keyboard Shortcuts') %>" style="border-style: none" height="15" />
     +    </a>
    -+</div>
    ++</span>
     +<script src="/static/js/tipso.min.js"></script>
     +<script>
     +jQuery(function() {
     +    var liKeyboardShortcuts = jQuery('#li-page-keyboard-shortcuts')
     +    liKeyboardShortcuts.tipso({
    ++        delay: 0,
    ++        speed: 10,
     +        content:
     +            '<div class="keyboard-shortcuts"><table><tbody>' +
     +                '<tr>' +
     +                    '<td><span class="key">/</span></td>' +
    -+                    '<td>Quick Search</td>' +
    ++                    '<td><% loc("Quick Search") %></td>' +
     +                '</tr>' +
     +                '<tr>' +
     +                    '<td><span class="key">gh</span></td>' +
    -+                    '<td>Return Home</td>' +
    ++                    '<td><% loc("Return Home") %></td>' +
     +                '</tr>' +
     +                '<tr>' +
     +                    '<td><span class="key">gb</span> <span class="sm">/</span> <span class="key">gf</span></td>' +
    -+                    '<td>Go Back / Forward</td>' +
    ++                    '<td><% loc("Go Back / Forward") %></td>' +
     +                '</tr>' +
     +            '</tbody></table></div>',
     +        background: '#eee',
     +        color: '#000',
    -+        titleContent: 'Keyboard Shortcuts',
    ++        titleContent: '<% loc("Keyboard Shortcuts") %>',
     +        titleBackground: '#547CCC',
     +        position: 'bottom',
     +        tooltipHover: true
    @@ -212,8 +214,8 @@
     --- a/share/static/css/base/misc.css
     +++ b/share/static/css/base/misc.css
     @@
    -     width: 1em;
    -     border-style: none;
    + .dashboard-subscription tr.frequency .value input {
    +     margin-bottom: 0.75em;
      }
     +
     +.keyboard-shortcuts.short {
    @@ -234,6 +236,29 @@
     +    font-size: 75%;
     +}
     
    +diff --git a/share/static/css/base/nav.css b/share/static/css/base/nav.css
    +--- a/share/static/css/base/nav.css
    ++++ b/share/static/css/base/nav.css
    +@@
    + }
    + 
    + #li-page-bookmark .toggle-bookmark a,
    +-#li-page-timer .timer-link a {
    ++#li-page-timer .timer-link a,
    ++#li-page-keyboard-shortcuts .keyboard-shortcuts-link a,
    ++{
    +     padding: 0.5em 1em;
    +     border-style: none;
    + }
    + 
    + #li-page-bookmark a img,
    +-#li-page-timer a img {
    ++#li-page-timer a img,
    ++#li-page-keyboard-shortcuts a img {
    +     height: 1.25em;
    +     width: 1.25em;
    + }
    +
     diff --git a/share/static/css/tipso.min.css b/share/static/css/tipso.min.css
     new file mode 100644
     --- /dev/null
    @@ -252,7 +277,7 @@
     +<!-- Generator: Adobe Illustrator 15.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
     +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
     +<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" width="512px" height="403.983px" viewBox="0 0 512 403.983" enable-background="new 0 0 512 403.983" xml:space="preserve">
    -+<path d="M32.002,0h447.985C497.672,0,512,14.329,512,31.998V256c0,17.664-14.328,31.992-32.013,31.992H32.002  C14.329,287.992,0,273.664,0,256V31.998C0,14.329,14.329,0,32.002,0z M47.999,47.999v191.995h416.002V47.999H47.999z M80.001,64  h79.996v79.996H80.001V64z M175.999,64h63.995v79.996h-63.995V64z M80.001,160.003h79.996v63.984H80.001V160.003z M175.999,160.003  h159.987v63.984H175.999V160.003z M255.995,64h79.991v79.996h-79.991V64z M351.992,64h79.997v79.996h-79.997V64z M351.992,160.003  h79.997v63.984h-79.997V160.003z M187.998,335.991h135.988l-67.991,67.992L187.998,335.991z" fill="#000000"/>
    ++<path d="M32.002,0h447.985C497.672,0,512,14.329,512,31.998V256c0,17.664-14.328,31.992-32.013,31.992H32.002  C14.329,287.992,0,273.664,0,256V31.998C0,14.329,14.329,0,32.002,0z M47.999,47.999v191.995h416.002V47.999H47.999z M80.001,64  h79.996v79.996H80.001V64z M175.999,64h63.995v79.996h-63.995V64z M80.001,160.003h79.996v63.984H80.001V160.003z M175.999,160.003  h159.987v63.984H175.999V160.003z M255.995,64h79.991v79.996h-79.991V64z M351.992,64h79.997v79.996h-79.997V64z M351.992,160.003  h79.997v63.984h-79.997V160.003z M187.998,335.991h135.988l-67.991,67.992L187.998,335.991z" fill="#404040"/>
     +</svg>
     
     diff --git a/share/static/js/keyboard-shortcuts/global.js b/share/static/js/keyboard-shortcuts/global.js



More information about the rt-commit mailing list