diff --git a/app/controllers/stories_controller.rb b/app/controllers/stories_controller.rb index 175b858..f5a540b 100644 --- a/app/controllers/stories_controller.rb +++ b/app/controllers/stories_controller.rb @@ -97,6 +97,8 @@ class StoriesController < ApplicationController @page_title = "[Story removed]" end + @short_url = @story.short_id_url + @comments = Comment.ordered_for_story_or_thread_for_user(@story.id, nil, @user ? @user.id : nil) @comment = Comment.new diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 6a1f3e1..daebb4d 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -5,6 +5,10 @@ + <% if @short_url %> + + <% end %> <%= @page_title ? "#{@page_title} | Lobsters" : "Lobsters" %> <%= stylesheet_link_tag "application", :media => "all" %> <%= javascript_include_tag "application" %>