Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Adding CSS classes to the dashboard, for easier customization

  • Loading branch information...
commit 996359bc59b344d2e379a35ee07551120fbe67d4 1 parent 59c5f6e
Patrick McKenzie patio11 authored
6 lib/abingo/views/dashboard/_experiment.erb
... ... @@ -1,20 +1,20 @@
1 1 <h3><%= experiment.test_name.titleize %> <%= %Q|<i>(Test completed)</i>| if experiment.status != "Live" %> </h3>
2 2 <% short_circuit = Abingo.cache.read("Abingo::Experiment::short_circuit(#{experiment.test_name})".gsub(" ", "")) %>
3 3 <table class="experiment" style="border: 1px black;">
4   - <tr>
  4 + <tr class="header_row">
5 5 <th>Name</th>
6 6 <th>Participants</th>
7 7 <th>Conversions</th>
8 8 <th>Notes</th>
9 9 </tr>
10   - <tr>
  10 + <tr class="experiment_row">
11 11 <td>Experiment Total: </td>
12 12 <td><%= experiment.participants %> </td>
13 13 <td><%= experiment.conversions %> (<%= experiment.pretty_conversion_rate %>)</td>
14 14 <td></td>
15 15 </tr>
16 16 <% experiment.alternatives.each do |alternative| %>
17   - <tr>
  17 + <tr class="alternative_row">
18 18 <td>
19 19 <%= h alternative.content %>
20 20 </td>
4 lib/abingo/views/dashboard/index.erb
... ... @@ -1,3 +1,4 @@
  1 +<div id="abingo_dashboard">
1 2 <p><h1>Welcome to your A/Bingo dashboard!</h1>
2 3
3 4 See <a href="http://www.bingocardcreator.com/abingo">the official site</a> for documentation.
@@ -15,4 +16,5 @@ the view templates. Hack them to pieces -- please!
15 16 <%= render :partial => "dashboard/experiment", :locals => {:experiment => experiment} %>
16 17 <br/>
17 18 <% end %>
18   -</p>
  19 +</p>
  20 +</div>

0 comments on commit 996359b

Please sign in to comment.
Something went wrong with that request. Please try again.