Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed stylesheet typo, added link to skitter doc, expanded options fo…

…r skitter.
  • Loading branch information...
commit f95cf7eb6a38bbee3f3049f5e16c74833142dbca 1 parent 17985cb
Rob Yurkowski authored
View
2  app/views/refinery/portfolio/admin/galleries/index.html.erb
@@ -7,4 +7,4 @@
</section>
<%= render '/refinery/admin/make_sortable', :tree => true if @galleries.many? %>
-<% content_for :stylesheets, stylesheet_link_tag('refinery/portfolio/frontend') %>
+<% content_for :stylesheets, stylesheet_link_tag('refinery/portfolio/admin/galleries') %>
View
2  app/views/refinery/portfolio/items/_item.html.erb
@@ -1,2 +1,2 @@
-<li><%= image_tag(item.image.url, {:id => dom_id(item)}) %><div class='label_text'><h2><%= item.title %></h2><p><%= item.caption %></p></div></li>
+<li><%= image_tag(item.image.url, {:id => dom_id(item)}) %><div class='label_text'><h2><%= item.title %></h2><p><%= raw item.caption %></p></div></li>
View
2  lib/generators/refinery/portfolio/templates/config/initializers/refinery/portfolio.rb.erb
@@ -1,5 +1,7 @@
Refinery::Portfolio.configure do |config|
# config.items_per_page = <%= Refinery::Portfolio.items_per_page.inspect %>
# config.cover_image_thumb_size = <%= Refinery::Portfolio.cover_image_thumb_size %>
+
+ # See http://thiagosf.net/projects/jquery/skitter/ for terrible documentation.
# config.skitter_options = <%= Refinery::Portfolio.skitter_options %>
end
View
10 lib/refinery/portfolio/configuration.rb
@@ -8,7 +8,15 @@ module Portfolio
self.cover_image_thumb_size = '300x200'
self.skitter_options = {
- :interval => 5000
+ :interval => 5000, # Duration of slides in ms
+ :animation => :circles, # Animation to use
+ :numbers => true, # Use number-based nav
+ :dots => false, # Use dot-based nav
+ :navigation => true, # Show navigation
+ :hideTools => false, # Hide tools (?)
+ :fullscreen => false, # Use fullscreen (no support, caveat spector)
+ :numbers_align => :center # Nav placement (left, right, center)
+ # :structure => "" # Use this to override the HTML if utterly necessary.
}
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.