Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use skribit lightbox thing instead of sidebar item

  • Loading branch information...
commit 7f8c179e7a7a9e22a11b8612626ce173690d5253 1 parent f4c5983
@darkhelmet authored
View
2  Gemfile
@@ -26,7 +26,7 @@ gem 'pg', '0.8.0'
gem 'newrelic_rpm', '2.10.5'
if 'darkhelmet' == ENV['USER']
- gem 'memcached-northscale', '0.19.5.3', :require => 'memcached', :path => '~/dev/github/fauna/memcached'
+ gem 'memcached', :path => '~/dev/github/fauna/memcached'
else
gem 'memcached-northscale', '0.19.5.3', :require => 'memcached'
end
View
15 lib/middleware.rb
@@ -17,4 +17,19 @@
var pageTracker = _gat._getTracker('#{Blog.google_analytics}');
pageTracker._trackPageview();
} catch(err) {}</script>}
+end if production?
+
+use Rack::Insert, :ignore => ignore do
+ %Q{<link rel='stylesheet' type='text/css' media='screen' charset='utf-8' href='http://assets.skribit.com/stylesheets/SkribitSuggest.css' />
+<style type="text/css" media="print" charset="utf-8">a#sk_tab{display:none !important;}</style>
+<script src="http://assets.skribit.com/javascripts/SkribitSuggest.js" type="text/javascript"></script>
+<script type="text/javascript" charset="utf-8">
+ var skribit_settings = {};
+ skribit_settings.placement = "right";
+ skribit_settings.color = "#333333";
+ skribit_settings.text_color = "white";
+ skribit_settings.distance_vert = "32%";
+ skribit_settings.distance_horiz = "";
+ SkribitSuggest.suggest('http://skribit.com/lightbox/verbose-logging', skribit_settings);
+</script>}
end if production?
View
2  views/_category_sidebar.haml
@@ -1,3 +1,3 @@
%ul
- - Post.find_by_sql(["SELECT DISTINCT category FROM posts WHERE published = 't' AND published_on < ? ORDER BY category", Time.now.utc]).map(&:category).each do |cat|
+ - Post.find_by_sql(['SELECT DISTINCT(category) FROM posts WHERE published = ? AND published_on < ? ORDER BY category', true, Time.now.utc]).map(&:category).each do |cat|
%li= category_link(cat)
View
8 views/_extra_sidebar.haml
@@ -1,12 +1,4 @@
.sidebar-item
- #writeSkribitHere
- = javascript_include_tag('http://assets.skribit.com/javascripts/SkribitWidget.js?renderTo=writeSkribitHere&amp;blog=5e91fca2cf7d25b4d74b682aa37d0908&amp;cnt=5', true)
- %noscript
- Sorry, but the
- = link_to('Skribit', 'http://skribit.com/', :title => "Skribit - Cure Writer's Block")
- widget only works on browsers with JavaScript support.
- = link_to('View suggestions for this blog here.', 'http://skribit.com/blogs/verbose-logging', :title => 'Skribit Suggestions for verbose logging')
-.sidebar-item
%h3{ :style => 'display: inline-block' } Tags
%span.small= link_to('(show all tags)', '#', :id => 'show-tags')
%br
Please sign in to comment.
Something went wrong with that request. Please try again.