Sha256: 84797f4cd36598637f634301764de0ff9727344a5028c7835d2b9258b09afa6c

Contents?: true

Size: 1.34 KB

Versions: 7

Compression:

Stored size: 1.34 KB

Contents

<html>
  <head>
    <title>Vanity Report: <%= Time.now.strftime("%b %d %Y, %I:%M:%P") %></title>
    <style>
      .vanity { margin: 2em auto; width: 40em; font-family: "Helvetica Neue", "Helvetica", "Verdana", sans-serif }
      .vanity h1 { margin: 1em 0; border-bottom: 3px solid #ccc }
      <%= File.read(Vanity.template("vanity.css")) %>
    </style>
    <script type="text/javascript"><%= File.read(Vanity.template("jquery.min.js")) %></script>
    <script type="text/javascript"><%= File.read(Vanity.template("flot.min.js")) %></script>
    <script type="text/javascript"><%= File.read(Vanity.template("vanity.js")) %></script>
    <% if respond_to?(:form_authenticity_token) %><script type="text/javascript">document.auth_token = "<%= form_authenticity_token %>"</script><% end %>
  </head>
  <body>
    <div class="vanity">
      <% experiments = Vanity.playground.experiments ; unless experiments.empty? %>
        <h2>Experiments</h2>
        <%= render Vanity.template("experiments"), :experiments=>experiments %>
      <% end %>
      <% metrics = Vanity.playground.metrics ; unless metrics.empty? %>
        <h2>Metrics</h2>
        <%= render Vanity.template("metrics"), :metrics=>metrics, :experiments=>experiments %>
      <% end %>
      <p class="footer">Generated by <a href="http://vanity.labnotes.org">Vanity</a></p>
    </div>
  </body>
</html>

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
vanity-1.4.0 lib/vanity/templates/_report.erb
vanity-1.4.0.beta lib/vanity/templates/_report.erb
vanity-1.3.0 lib/vanity/templates/_report.erb
mikeg-vanity-1.3.0 lib/vanity/templates/_report.erb
vanity-1.2.0 lib/vanity/templates/_report.erb
vanity-1.1.1 lib/vanity/templates/_report.erb
vanity-1.1.0 lib/vanity/templates/_report.erb