Skip to content
Browse files

Slightly enhanced views.

  • Loading branch information...
1 parent 6e82426 commit a04600f1fc8e77f5891d408330d877b39826e79a michael committed May 22, 2010
Showing with 14 additions and 14 deletions.
  1. +1 −1 app/views/collections/edit.html.mustache
  2. +13 −13 app/views/collections/show.html.erb
View
2 app/views/collections/edit.html.mustache
@@ -5,4 +5,4 @@
<input type="text" name="collection[uri]"/>
<input type="hidden" name="_method" value="put"/>
<input type="submit" value="Update collection"/>
-</form>
+</form>
View
26 app/views/collections/show.html.erb
@@ -1,22 +1,22 @@
<% content_for :head do %>
+ <script src="/javascripts/templates.js"></script>
<script src="/javascripts/browse.js"></script>
<% end %>
-
-<section id="search">
- <input type="text" name="searchstr"/>
-</section>
-
+<% if @collection %>
<section id="trail">
- <% @collection.views.each do |v| %>
- <a class="view" href="<%= collection_view_path(@collection.id, v.id)%>"><%= v.name %></a>
- <% end %>
-
+ <ul id="available-views">
+ <% @collection.views.each do |v| %>
+ <li id="view_<%= v.id %>" class="view<%= @collection.views.first.id == v.id ? " selected" : "" %>">
+ <a href="<%= collection_view_path(@collection.id, v.id)%>"><%= v.name %></a>
+ </li>
+ <% end %>
+ </ul>
</section>
-
<section id="facets">
-
</section>
-
<section id="results">
-
</section>
+<span style="display: none" id="collection_id"><%= @collection.id %></span>
+<% else %>
+ Collection does not exist
+<% end %>

0 comments on commit a04600f

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