Sha256: 5407fcaa8e4111f66bb454f2214b3ff9e3cd8ac196e53bcecec68d3a079fdb36

Contents?: true

Size: 998 Bytes

Versions: 6

Compression:

Stored size: 998 Bytes

Contents

<style>
  #rails-mini-profiler-badge {
    position: absolute;
    <%= @position %>
    display: flex;
    margin: 0;
    padding: .2em .2em;
    line-height: normal;
    align-items: center;
    z-index: 2147483641;
    overflow: auto;
    border-radius: 5px;
    text-decoration: none;
    opacity: 60%;
    background-color: #fff;
    color: #555;
    -moz-box-shadow: 0 1px 15px #555;
    -webkit-box-shadow: 0 1px 15px #555;
    box-shadow: 0 1px 15px #555;
    font-size: 14px;
  }

  #rails-mini-profiler-badge:hover {
    opacity: 100%;
      transition: opacity 0.3s;
  }

  #rails-mini-profiler-badge-icon {
    height: 18px;
    width: 18px;
    padding-bottom: 2px;
  }
</style>
<a id="rails-mini-profiler-badge" href="<%= profiled_request_path(@profiled_request.id) %>" data-turbolinks="false" title="View performance data">
  <%= inline_svg_tag('rails_mini_profiler/logo_variant', id: "rails-mini-profiler-badge-icon") %>
  <%= (@profiled_request.duration.to_f / 100).round %>ms
</a>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rails_mini_profiler-0.2.1 app/views/rails_mini_profiler/badge.html.erb
rails_mini_profiler-0.2.0 app/views/rails_mini_profiler/badge.html.erb
rails_mini_profiler-0.1.3 app/views/rails_mini_profiler/badge.html.erb
rails_mini_profiler-0.1.2 app/views/rails_mini_profiler/badge.html.erb
rails_mini_profiler-0.1.1 app/views/rails_mini_profiler/badge.html.erb
rails_mini_profiler-0.1.0 app/views/rails_mini_profiler/badge.html.erb