Sha256: d0a7051785dc7dbed1570dfb85286aeb62d5dddad1ebe90ce8e0d64c170aac76

Contents?: true

Size: 1.73 KB

Versions: 5

Compression:

Stored size: 1.73 KB

Contents

<!-- XRAY BAR -->

<div id="xray-bar" style="display:none">
  <% if Xray.request_info.present? %>
    <div id="xray-bar-controller-path">
      <% if Xray.request_info[:controller] %>
        <span class="xray-bar-btn xray-bar-controller xray-icon-flash" data-path="<%= Xray.request_info[:controller][:path] %>">
          <b></b>
          <%= Xray.request_info[:controller][:name] %><span class="xray-bar-controller-action">#<%= Xray.request_info[:controller][:action] %></span>
        </span>
      <% end %>
      <% if Xray.request_info[:view] %>
        <% layout_path = lookup_context.find(Xray.request_info[:view][:layout]).identifier %>
        <span class="xray-bar-btn xray-bar-layout xray-icon-columns" data-path="<%= layout_path %>">
          <b></b>
          <%= layout_path.split('/').last %>
        </span>
        <span class="xray-bar-btn xray-bar-view xray-icon-doc" data-path="<%= Xray.request_info[:view][:path] %>">
          <%= Xray.request_info[:view][:path].split('/').last %>
        </span>
      <% end %>
    </div>
  <% end %>
  <div id="xray-bar-togglers">
    <span class="xray-bar-btn xray-bar-all-toggler xray-icon-search"></span>
    <span class="xray-bar-btn xray-bar-templates-toggler">
      templates
    </span>
    <span class="xray-bar-btn xray-bar-views-toggler">
      views
    </span>
  </div>
  <span class="xray-bar-settings-btn xray-icon-cog"></span>
  <div id="xray-settings" style="display:none">
    <form>
      <label for="xray-editor-input">Editor</label>
      <input id="xray-editor-input" type="text" value="<%= Xray.config.editor %>">
      <button type="submit">Save</button>
      <p>Settings are saved to ~/.xrayconfig</p>
  </form>
  </div>
  <%= stylesheet_link_tag :xray %>
</div>

<!-- /XRAY BAR -->

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
xray-rails-0.1.5 app/views/_xray_bar.html.erb
xray-rails-0.1.4 app/views/_xray_bar.html.erb
xray-rails-0.1.3 app/views/_xray_bar.html.erb
xray-rails-0.1.2 app/views/_xray_bar.html.erb
xray-rails-0.1.1 app/views/_xray_bar.html.erb