Sha256: e7689583afcced1ae5949adbb627a3c316e1595ac8dc9791f66a1bf6776990a7

Contents?: true

Size: 1.08 KB

Versions: 20

Compression:

Stored size: 1.08 KB

Contents

%div.posterous
  - if defined?(@posts) && @posts.nil?
    %h3
      Sorry, there's a problem communicating with Posterous.com
  - else
    - @posts.each do |post|
      = haml :_post, :layout=>false, :locals=>{:post=>post}
    %nav#pagination
      - page = params[:page].to_i if defined?(params[:page])
      - page ||= 1
      - page = 1 if page < 1
      #next
        - if page > 1
          %a{:href=>"/posterous/#{page-1}"}
            Next
      
      #previous
        - if @posts
          %a{:href=>"/posterous/#{page+1}"}
            Previous
      
    - if Caboodle::Site.disqus
      :javascript
        (function() {
        	var links = document.getElementsByTagName('a');
        	var query = '?';
        	for(var i = 0; i < links.length; i++) {
        		if(links[i].href.indexOf('#disqus_thread') >= 0) {
        			query += 'url' + i + '=' + encodeURIComponent(links[i].href) + '&';
        		}
        	}
        	document.write('<script type="text/javascript" src="http://disqus.com/forums/#{Caboodle::Site.disqus}/get_num_replies.js' + query + '"></' + 'script>');
        	})();

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
caboodle-0.2.23 lib/caboodle/kits/posterous/views/posts.haml
caboodle-0.2.22 lib/caboodle/kits/posterous/views/posts.haml
caboodle-0.2.21 lib/caboodle/kits/posterous/views/posts.haml
caboodle-0.2.20 lib/caboodle/kits/posterous/views/posts.haml
caboodle-0.2.19 lib/caboodle/kits/posterous/views/posts.haml
caboodle-0.2.18 lib/caboodle/kits/posterous/views/posts.haml
caboodle-0.2.16 lib/caboodle/kits/posterous/views/posts.haml
caboodle-0.2.15 lib/caboodle/kits/posterous/views/posts.haml
caboodle-0.2.14 lib/caboodle/kits/posterous/views/posts.haml
caboodle-0.2.13 lib/caboodle/kits/posterous/views/posts.haml
caboodle-0.2.12 lib/caboodle/kits/posterous/views/posts.haml
caboodle-0.2.11 lib/caboodle/kits/posterous/views/posts.haml
caboodle-0.2.10 lib/caboodle/kits/posterous/views/posts.haml
caboodle-0.2.9 lib/caboodle/kits/posterous/views/posts.haml
caboodle-0.2.8 lib/caboodle/kits/posterous/views/posts.haml
caboodle-0.2.7 lib/caboodle/kits/posterous/views/posts.haml
caboodle-0.2.6 lib/caboodle/kits/posterous/views/posts.haml
caboodle-0.2.5 lib/caboodle/kits/posterous/views/posts.haml
caboodle-0.2.3 lib/caboodle/kits/posterous/views/posts.haml
caboodle-0.2.2 lib/caboodle/kits/posterous/views/posts.haml