app/controllers/article_threads_controller.rb
# for share use in SchedulesController
# list up article details of a_thread
for share use in SchedulesController
list up article details of a_thread
for share use in SchedulesController list up article details of a_thread
def find_detail_of_thread(a_thread) 
    @receive_mode = @background_params[:receive_mode]
    @display_mode = @background_params[:display_mode] || params[:display_mode]
    @background_params.merge! :display_mode => @display_mode
    @def_items = Def_Thread_Items
    @thread_detail_items = Thread_Detail_Items 
    @thread =  ArticleThread.find :first,
                           :assert_time => :show_time,
                           :local_assert_time => local_assert_time_for_destination("articles.created_at"),
                           :scope      => a_net(),
                           :select     => select_items(@def_items, [:id, :run_id] + @thread_detail_items),
                           :conditions => merge_conditions(thread_restriction(a_thread), news_cond())
    flash_now @thread.no_of_articles <= 0, "このスレッドには現在受信する記事はありません．"
    @def_article_items        = Def_Article_Items
    @article_list_items       = @is_answer_response ? Answer_Response_List_Items : Article_List_Items
    @article_detail_items     = @is_answer_response ? Answer_Response_Detail_Items : Article_Detail_Items
    @destination_items        = Destination_Items
    @time_place_setting_items = Time_Place_Items
    @def_questionnaire_items  = QuestionnairesController::Def_Items
    @questionnaire_list_items = (q_article = a_thread.questionnaire_article) && q_article.sender? ?
                                    QuestionnairesController::Sender_List_Items : QuestionnairesController::List_Items
    @articles         = article_assocs()
    flash_now @articles.blank?, "現在，このスレッドには記事がありません．"
    @article_template = @is_answer_response ? "articles/answer_response" : "articles/entity"                               
  end
def find_detail_of_thread ( a_thread ) @receive_mode = @background_params [ :receive_mode ] @display_mode = @background_params [ :display_mode ] || params [ :display_mode ] @background_params . merge! :display_mode => @display_mode @def_items = Def_Thread_Items @thread_detail_items = Thread_Detail_Items @thread = ArticleThread . find :first , :assert_time => :show_time , :local_assert_time => local_assert_time_for_destination ( "articles.created_at" ) , :scope => a_net ( ) , :select => select_items ( @def_items , [ :id , :run_id ] + @thread_detail_items ) , :conditions => merge_conditions ( thread_restriction ( a_thread ) , news_cond ( ) ) flash_now @thread . no_of_articles <= 0 , "このスレッドには現在受信する記事はありません．" @def_article_items = Def_Article_Items @article_list_items = @is_answer_response ? Answer_Response_List_Items : Article_List_Items @article_detail_items = @is_answer_response ? Answer_Response_Detail_Items : Article_Detail_Items @destination_items = Destination_Items @time_place_setting_items = Time_Place_Items @def_questionnaire_items = QuestionnairesController :: Def_Items @questionnaire_list_items = ( q_article = a_thread . questionnaire_article ) && q_article . sender? ? QuestionnairesController :: Sender_List_Items : QuestionnairesController :: List_Items @articles = article_assocs ( ) flash_now @articles . blank? , "現在，このスレッドには記事がありません．" @article_template = @is_answer_response ? "articles/answer_response" : "articles/entity" end
for share use in SchedulesController
list up article details of a_thread
for share use in SchedulesController list up article details of a_thread
# re-assure access conditions # define article items    # items appeared in listing view of articles # items appeared in detail view of an article
a_thread
<not_specific>