Diff
Not logged in

Differences From Artifact [0f80f1278b]:

To Artifact [263e90df3d]:


747
748
749
750
751
752
753
754
755
756
757

758

759
760


761

762
763
764
765
766
767
768
    @ </div>
  }
  forumthread_delete(pThread);
  return target;
}

/*
** Callback for use with style.c:BundleEmitters. Emits all JS code
** required by this page.
*/
void forumpost_emit_js_bundle(void){

  style_emit_script_builtin(1, 0, "forum.js");

  style_emit_script_fossil_bootstrap(1);
  style_emit_script_dom(1, 0);


  style_emit_script_builtin(1, 0, "fossil.page.forumpost.js");

}

/*
** WEBPAGE: forumpost
**
** Show a single forum posting. The posting is shown in context with
** it's entire thread.  The selected posting is enclosed within







<
|

|
>
|
>
|
<
>
>
|
>







747
748
749
750
751
752
753

754
755
756
757
758
759
760

761
762
763
764
765
766
767
768
769
770
771
    @ </div>
  }
  forumthread_delete(pThread);
  return target;
}

/*

** Emits all JS code required by /forumpost.
*/
static void forumpost_emit_page_js(){
  static int once = 0;
  if(0==once){
    once = 1;
    style_emit_script_fossil_bootstrap(1);

    builtin_request_js("forum.js");
    builtin_request_js("fossil.dom.js");
    builtin_request_js("fossil.page.forumpost.js");
  }
}

/*
** WEBPAGE: forumpost
**
** Show a single forum posting. The posting is shown in context with
** it's entire thread.  The selected posting is enclosed within
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
    style_submenu_element("Complete Thread", "%R/%s/%s?t=a", g.zPath, zName);
    forum_display_history(froot, fpid, 1);
  }else{
    style_submenu_element("Chronological", "%R/%s/%s?t=c", g.zPath, zName);
    style_submenu_element("Unformatted", "%R/%s/%s?t=r", g.zPath, zName);
    forum_display_hierarchical(froot, fpid);
  }
  style_emit_script_bundle("forum.js");
  style_footer();
}

/*
** Return true if a forum post should be moderated.
*/
static int forum_need_moderation(void){







|







888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
    style_submenu_element("Complete Thread", "%R/%s/%s?t=a", g.zPath, zName);
    forum_display_history(froot, fpid, 1);
  }else{
    style_submenu_element("Chronological", "%R/%s/%s?t=c", g.zPath, zName);
    style_submenu_element("Unformatted", "%R/%s/%s?t=r", g.zPath, zName);
    forum_display_hierarchical(froot, fpid);
  }
  forumpost_emit_page_js();
  style_footer();
}

/*
** Return true if a forum post should be moderated.
*/
static int forum_need_moderation(void){