Skip to content

Commit

Permalink
Remove Frontend JS and CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
Brice Sanchez committed Feb 16, 2015
1 parent d5e03c4 commit 68902f0
Show file tree
Hide file tree
Showing 17 changed files with 3 additions and 3,461 deletions.
7 changes: 0 additions & 7 deletions app/assets/javascripts/refinery/portfolio/portfolio.js.erb

This file was deleted.

56 changes: 0 additions & 56 deletions app/assets/stylesheets/refinery/portfolio/frontend.css.scss.erb

This file was deleted.

4 changes: 1 addition & 3 deletions app/views/refinery/portfolio/galleries/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
<%= render 'galleries', :galleries => @galleries %>
<% end %>
<%= render '/refinery/content_page' %>
<% content_for :stylesheets, stylesheet_link_tag('refinery/portfolio/frontend') %>
<% content_for :javascripts, javascript_include_tag('refinery/portfolio') %>
<%= render '/refinery/content_page' %>
2 changes: 1 addition & 1 deletion app/views/refinery/portfolio/items/_items.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<%- if items.present? -%>
<div class='slideshow box_skitter box_skitter_large' id='gallery_images'>
<div class='slideshow' id='gallery_images'>
<ul>
<%= render items %>
</ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ Refinery::Portfolio.configure do |config|
# How big should gallery thumbs be?
# config.cover_image_thumb_size = <%= Refinery::Portfolio.cover_image_thumb_size.inspect %>

# See http://thiagosf.net/projects/jquery/skitter/ for terrible documentation.
# config.skitter_options = <%= Refinery::Portfolio.skitter_options.inspect %>

# Display image title and description?
# config.display_item_text = <%= Refinery::Portfolio.display_item_text.inspect %>

Expand Down
15 changes: 1 addition & 14 deletions lib/refinery/portfolio/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,12 @@ module Refinery
module Portfolio
include ActiveSupport::Configurable

config_accessor :items_per_page, :cover_image_thumb_size, :skitter_options,
config_accessor :items_per_page, :cover_image_thumb_size,
:display_item_text, :display_gallery_text

self.items_per_page = 20
self.cover_image_thumb_size = '300x200'

# Be sure to see http://thiagosf.net/projects/jquery/skitter/ for terrible documentation.
self.skitter_options = {
: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.
}

self.display_item_text = true
self.display_gallery_text = true
end
Expand Down
Binary file removed vendor/assets/images/skitter/ajax-loader.gif
Binary file not shown.
Binary file removed vendor/assets/images/skitter/focus-button.png
Binary file not shown.
Binary file removed vendor/assets/images/skitter/next.png
Binary file not shown.
Binary file removed vendor/assets/images/skitter/pause-button.png
Binary file not shown.
Binary file removed vendor/assets/images/skitter/play-button.png
Binary file not shown.
Binary file removed vendor/assets/images/skitter/prev.png
Binary file not shown.
4 changes: 0 additions & 4 deletions vendor/assets/javascripts/skitter.js

This file was deleted.

This file was deleted.

205 changes: 0 additions & 205 deletions vendor/assets/javascripts/skitter/jquery.easing.1.3.js

This file was deleted.

Loading

0 comments on commit 68902f0

Please sign in to comment.