Sha256: 57f84e190facc86c145f7832b53420222bdc340c45ace6526c2861f8fce7b987

Contents?: true

Size: 911 Bytes

Versions: 28

Compression:

Stored size: 911 Bytes

Contents

class Muck::VisitsController < ApplicationController
  
  unloadable

  before_filter :store_location

  def show
    @entry = Entry.find(params[:id])
    @page_title = @entry.title
    @resource_uri = @entry.resource_uri
    @share = Share.new(:title => @entry.title, :uri => @resource_uri, :entry_id => @entry.id) if GlobalConfig.enable_raker_shares

    if GlobalConfig.enable_raker_comments
      # Show the activities related to this entry
      @activities = @entry.activities.oldest.only_public.find(:all, :include => ['comments'])
      @comment_count = @activities.length + @activities.inject(0) {|n,activity| activity.comments.length + n }
    end
    
    respond_to do |format|
      format.html { render :template => 'visits/show', :layout => 'frame' }
      format.pjs { render :template => 'visits/show', :layout => false }
      format.json { render :json => @entry.as_json }
    end
  end

end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
muck-raker-0.2.11 app/controllers/muck/visits_controller.rb
muck-raker-0.2.10 app/controllers/muck/visits_controller.rb
muck-raker-0.2.9 app/controllers/muck/visits_controller.rb
muck-raker-0.2.8 app/controllers/muck/visits_controller.rb
muck-raker-0.2.7 app/controllers/muck/visits_controller.rb
muck-raker-0.2.6 app/controllers/muck/visits_controller.rb
muck-raker-0.2.5 app/controllers/muck/visits_controller.rb
muck-raker-0.2.4 app/controllers/muck/visits_controller.rb
muck-raker-0.2.3 app/controllers/muck/visits_controller.rb
muck-raker-0.2.2 app/controllers/muck/visits_controller.rb
muck-raker-0.2.0 app/controllers/muck/visits_controller.rb
muck-raker-0.1.49 app/controllers/muck/visits_controller.rb
muck-raker-0.1.48 app/controllers/muck/visits_controller.rb
muck-raker-0.1.47 app/controllers/muck/visits_controller.rb
muck-raker-0.1.46 app/controllers/muck/visits_controller.rb
muck-raker-0.1.45 app/controllers/muck/visits_controller.rb
muck-raker-0.1.43 app/controllers/muck/visits_controller.rb
muck-raker-0.1.42 app/controllers/muck/visits_controller.rb
muck-raker-0.1.41 app/controllers/muck/visits_controller.rb
muck-raker-0.1.40 app/controllers/muck/visits_controller.rb