Sha256: 2c6092e53c56290b2e9eb9a96509cffb0559b847e471cdf20f0aaca4cc14815b

Contents?: true

Size: 1.78 KB

Versions: 16

Compression:

Stored size: 1.78 KB

Contents

<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] && Xray.request_info.fetch(:controller, {})[:name] != "Rails::InfoController" %>
        <% 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 <%= Xray.config.config_file %></p>
  </form>
  </div>
  <%= stylesheet_link_tag :xray %>
</div>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
xray-rails-0.3.3 app/views/_xray_bar.html.erb
xray-rails-0.3.2 app/views/_xray_bar.html.erb
xray-rails-0.3.1 app/views/_xray_bar.html.erb
xray-rails-0.3.0 app/views/_xray_bar.html.erb
xray-rails-0.2.0 app/views/_xray_bar.html.erb
xray-rails-0.1.23 app/views/_xray_bar.html.erb
xray-rails-0.1.22 app/views/_xray_bar.html.erb
xray-rails-0.1.21 app/views/_xray_bar.html.erb
xray-rails-0.1.20 app/views/_xray_bar.html.erb
xray-rails-0.1.19 app/views/_xray_bar.html.erb
xray-rails-0.1.18 app/views/_xray_bar.html.erb
xray-rails-0.1.17 app/views/_xray_bar.html.erb
xray-rails-0.1.16 app/views/_xray_bar.html.erb
xray-rails-0.1.15 app/views/_xray_bar.html.erb
xray-rails-0.1.14 app/views/_xray_bar.html.erb
xray-rails-0.1.13 app/views/_xray_bar.html.erb