Skip to content
Browse files

Tabified dashboard.

  • Loading branch information...
1 parent 03ed31d commit 6896ac798deb517062396e4a44ada11530288aae John Goodsen committed
Showing with 57 additions and 31 deletions.
  1. +1 −2 ui/views/rcumbers/edit.html.erb
  2. +56 −29 ui/views/rcumbers/index.html.erb
View
3 ui/views/rcumbers/edit.html.erb
@@ -40,13 +40,12 @@ var myTabs = new YAHOO.widget.TabView("demo");
</fieldset>
</p></div>
-
<% unless @rcumber.last_results.nil? %>
<div class="cucumber_results"><p>
<%= render :partial => 'rcumbers/actions' %>
<pre><%= @rcumber.last_results.to_s %></pre>
- </p></div>
<% end %>
+ </p></div>
</div><!-- yui-content -->
View
85 ui/views/rcumbers/index.html.erb
@@ -1,32 +1,59 @@
-<div id="cucumber_index">
-
-<h1><img src="/images/rcumber.gif"/>Cucumber Dashboard</h1>
-<%= link_to 'run all tests', rcumber_runall_path + demo_parameters, :confirm => "This will clear the known state of every test that you have run up to this point." %>
-| <%= link_to 'create a new cucumber', new_rcumber_path + demo_parameters %>
-<% if @rcumbers.empty? %>
- <p>You don't have any Cucumber tests in the ./feature directory of your project. <br/>
- Either create some, or you can look at these <%= link_to 'demo cucumber tests', rcumbers_path + "?demos=true" %>
- </p>
-<% else %>
- <table class="cucumbers">
- <thead>
- <tr><td>Name</td><td>State</td><td>Actions</td></tr>
- </thead>
- <tbody>
- <% @rcumbers.each do |rcumber| %>
- <tr>
- <td><%= rcumber.name %></td>
- <%# rcumber.state = :passing %>
- <td class="<%= rcumber.state.to_s %>"><%= rcumber.state.to_s %></td>
- <td>
- <%= link_to 'run it', rcumber_run_path(rcumber.uid) + demo_parameters %>
- | <%= link_to 'view', rcumber_path(rcumber.uid) + demo_parameters %>
- | <%= link_to 'edit', edit_rcumber_path(rcumber.uid) + demo_parameters %>
- </td>
- </tr>
- <% end %>
- <tbody>
-<% end %>
+<div id="demo" class="yui-navset">
+ <ul class="yui-nav">
+ <li class="<%= 'selected' %>">
+ <a href="#tab1"><em>
+ All Tests
+ </em></a>
+ </li>
+ <li>
+ <a href="#tab2"><em>
+ Cucumber Documentation
+ </em></a>
+ </li>
+ </ul>
+
+ <div class="yui-content">
+
+ <div><p>
+ <div id="cucumber_index">
+
+ <h1><img src="/images/rcumber.gif"/>Cucumber Dashboard</h1>
+ <%= link_to 'run all tests', rcumber_runall_path + demo_parameters, :confirm => "This will clear the known state of every test that you have run up to this point." %>
+ | <%= link_to 'create a new cucumber', new_rcumber_path + demo_parameters %>
+ <% if @rcumbers.empty? %>
+ <p>You don't have any Cucumber tests in the ./feature directory of your project. <br/>
+ Either create some, or you can look at these <%= link_to 'demo cucumber tests', rcumbers_path + "?demos=true" %>
+ </p>
+ <% else %>
+ <table class="cucumbers">
+ <thead>
+ <tr><td>Name</td><td>State</td><td>Actions</td></tr>
+ </thead>
+ <tbody>
+ <% @rcumbers.each do |rcumber| %>
+ <tr>
+ <td><%= rcumber.name %></td>
+ <%# rcumber.state = :passing %>
+ <td class="<%= rcumber.state.to_s %>"><%= rcumber.state.to_s %></td>
+ <td>
+ <%= link_to 'run it', rcumber_run_path(rcumber.uid) + demo_parameters %>
+ | <%= link_to 'view', rcumber_path(rcumber.uid) + demo_parameters %>
+ | <%= link_to 'edit', edit_rcumber_path(rcumber.uid) + demo_parameters %>
+ </td>
+ </tr>
+ <% end %>
+ <tbody>
+ <% end %>
+
+ </div>
+
+ </p></div>
+
+
+
+
+ </div><!-- yui-content -->
+
</div>

0 comments on commit 6896ac7

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