Skip to content
Browse files

partials for the views

  • Loading branch information...
1 parent 04cf0d6 commit 34beaf758f8f0c91510a3015b6cc53b03afd906d @themattharris committed Apr 22, 2012
View
6 app/views/categories/_teaser_listing.html.erb
@@ -0,0 +1,6 @@
+
+ <div class="well">
+ <% things.each do |i| %>
+ <%= content_tag(:span, link_to(truncate(h(i.to_s), :length => 55, :omission => '...'), category_path(i.slug)), :class => "label #{random_label_variant}") %>
+ <% end %>
+ </div>
View
6 app/views/curators/_teaser_listing.html.erb
@@ -0,0 +1,6 @@
+
+ <div class="well">
+ <% things.each do |i| %>
+ <%= content_tag(:span, link_to(truncate(h(i.to_s), :length => 55, :omission => '...'), curator_path(i.id)), :class => "label #{random_label_variant}") %>
+ <% end %>
+ </div>
View
6 app/views/data_sources/_mini.html.erb
@@ -0,0 +1,6 @@
+
+ <div class="span4">
+ <h2><%= h ds.title %></h2>
+ <p><%= truncate(h(ds.content), :length => 200, :omission => '...') %></p>
+ <p><%= link_to "View details &raquo;", data_source_path(ds), :class => 'btn' %>
+ </div>
View
13 app/views/layouts/fluid.html.erb
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html lang="en">
+<%= render :partial => "shared/header" %>
+ <body>
+<%= render :partial => "shared/navigation" %>
+ <div class="container-fluid">
+ <%= yield %>
+ <hr>
+<%= render :partial => "shared/footer" %>
+ </div>
+<%= render :partial => "shared/bootstrap_assets" %>
+ </body>
+</html>
View
10 app/views/shared/_data_sources_grid.html.erb
@@ -0,0 +1,10 @@
+
+ <% count = 0 %>
+ <% data_sources.each do |ds| %>
+ <% if count % 3 == 0 %>
+ </div>
+ <div class="row-fluid">
+ <% end %>
+ <%= render :partial => "data_sources/mini", :locals => { :ds => ds } %>
+ <% count+=1 %>
+ <% end %>
View
6 app/views/tags/_teaser_listing.html.erb
@@ -0,0 +1,6 @@
+
+ <div class="well">
+ <% things.each do |i| %>
+ <%= content_tag(:span, link_to(truncate(h(i.to_s), :length => 55, :omission => '...'), tag_path(i.slug)), :class => "label #{random_label_variant}") %>
+ <% end %>
+ </div>

0 comments on commit 34beaf7

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