Sha256: 38c484c7ce2e3b71b062b25253702ae8bb014e0197be3e00d15b49c4b03da2bf

Contents?: true

Size: 1.46 KB

Versions: 20

Compression:

Stored size: 1.46 KB

Contents

<html>
  <head>
    <title>Keyboard Shortcuts</title>
    <% watermark  = File.expand_path(File.join(Redcar.root, %w(plugins html_view views watermark-48.png))) %>
    <% redcar_css = File.expand_path(File.join(Redcar.root, %w(plugins html_view views default.css))) %>
    <link rel="stylesheet" href="file://<%= redcar_css %>" type="text/css" media="screen">
    <%= javascript_controller_actions %>
    <script type="text/javascript" src="file://<%= Redcar::HtmlView.jquery_path %>"></script>
    <script>
    function addKeyBinding(command) {
      var key = prompt("Key for " + command, "");
      Controller.addKeyBinding(key, command);
      window.location.href = "controller/index";
    }
  </script>
  </head>
  <body>
    <div id="top">
      <img src="file://<%=watermark%>" id="watermark"/>
      <h1>Keyboard Shortcuts</h1>
      <a href="controller/index">Refresh List</a>
    </div>
    <div class="main">
      <p><i>Click an action name to change the shortcut</i><p>
      <table>
        <tr>
          <th>Action</th>
          <th>Shortcut</th>
        </tr>
        <% i = 0 %>
        <% Redcar.app.main_keymap.map.sort_by{|key, command| clean_name(command)}.each do |key, command| %>
        <tr class="<%= i % 2 == 0 ? 'even':'odd'%>">
          <td><a href="javascript:addKeyBinding('<%=command %>');"><%= clean_name(command) %></a></td>
          <td><%= key %></td>
          <% i = i + 1%>
        </tr>
        <% end %>
      </table>
    </div>
  </body>
</html>

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
redcar-0.13 plugins/help/views/index.html.erb
redcar-dev-0.13.5dev plugins/help/views/index.html.erb
redcar-dev-0.13.4dev plugins/help/views/index.html.erb
redcar-dev-0.13.3dev plugins/help/views/index.html.erb
redcar-dev-0.13.2dev plugins/help/views/index.html.erb
redcar-dev-0.13.1dev plugins/help/views/index.html.erb
redcar-0.12.1 plugins/help/views/index.html.erb
redcar-dev-0.13.0dev plugins/help/views/index.html.erb
redcar-0.12 plugins/help/views/index.html.erb
redcar-dev-0.12.27dev plugins/help/views/index.html.erb
redcar-dev-0.12.26dev plugins/help/views/index.html.erb
redcar-dev-0.12.25dev plugins/help/views/index.html.erb
redcar-dev-0.12.24dev plugins/help/views/index.html.erb
redcar-dev-0.12.23dev plugins/help/views/index.html.erb
redcar-dev-0.12.22dev plugins/help/views/index.html.erb
redcar-dev-0.12.21dev plugins/help/views/index.html.erb
redcar-dev-0.12.20dev plugins/help/views/index.html.erb
redcar-dev-0.12.19dev plugins/help/views/index.html.erb
redcar-dev-0.12.18dev plugins/help/views/index.html.erb
redcar-dev-0.12.17dev plugins/help/views/index.html.erb