Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding CSS classes to the dashboard, for easier customization

  • Loading branch information...
commit 996359bc59b344d2e379a35ee07551120fbe67d4 1 parent 59c5f6e
@patio11 patio11 authored
View
6 lib/abingo/views/dashboard/_experiment.erb
@@ -1,20 +1,20 @@
<h3><%= experiment.test_name.titleize %> <%= %Q|<i>(Test completed)</i>| if experiment.status != "Live" %> </h3>
<% short_circuit = Abingo.cache.read("Abingo::Experiment::short_circuit(#{experiment.test_name})".gsub(" ", "")) %>
<table class="experiment" style="border: 1px black;">
- <tr>
+ <tr class="header_row">
<th>Name</th>
<th>Participants</th>
<th>Conversions</th>
<th>Notes</th>
</tr>
- <tr>
+ <tr class="experiment_row">
<td>Experiment Total: </td>
<td><%= experiment.participants %> </td>
<td><%= experiment.conversions %> (<%= experiment.pretty_conversion_rate %>)</td>
<td></td>
</tr>
<% experiment.alternatives.each do |alternative| %>
- <tr>
+ <tr class="alternative_row">
<td>
<%= h alternative.content %>
</td>
View
4 lib/abingo/views/dashboard/index.erb
@@ -1,3 +1,4 @@
+<div id="abingo_dashboard">
<p><h1>Welcome to your A/Bingo dashboard!</h1>
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!
<%= render :partial => "dashboard/experiment", :locals => {:experiment => experiment} %>
<br/>
<% end %>
-</p>
+</p>
+</div>
Please sign in to comment.
Something went wrong with that request. Please try again.