diff --git a/lib/WebGUI/Help/Thread.pm b/lib/WebGUI/Help/Thread.pm new file mode 100644 index 000000000..4404f773f --- /dev/null +++ b/lib/WebGUI/Help/Thread.pm @@ -0,0 +1,21 @@ +package WebGUI::Help::Thread; + +our $HELP = { + 'thread template variables' => { + title => 'thread template title', + body => 'thread template body', + related => [ + { + tag => 'template language', + namespace => 'Template' + }, + { + tag => 'post template variables', + namespace => 'Post' + }, + ] + }, + +}; + +1; diff --git a/lib/WebGUI/i18n/English/Thread.pm b/lib/WebGUI/i18n/English/Thread.pm new file mode 100644 index 000000000..2e5a96e7a --- /dev/null +++ b/lib/WebGUI/i18n/English/Thread.pm @@ -0,0 +1,106 @@ +package WebGUI::i18n::English::Thread; + +our $I18N = { + + 'thread template title' => { + message => q|Thread Template|, + lastUpdated => 1111253044, + }, + + 'thread template body' => { + message => q|The following variables are available in the Thread template. +
+
+user.isVisitor
+A conditional indicating that the current user is a Visitor.
+
+
+user.isModerator
+A conditional indicating that the current user is a Moderator.
+
+
+user.canPost
+A conditional indicating that the current user can add posts to this thread.
+
+
+user.canReply
+A conditional indicating that the current user can reply to posts in this thread.
+
+
+repliesAllowed
+A conditional indicating that replies are allowed in this thread.
+
+
+userProfile.url
+A URL to the profile of the owner of the Post.
+
+
+layout.nested.url
+A URL to change the layout to nest posts. This lists all posts with indentation to show which posts
+are replies to posts and which posts are new topics in a thread.
+
+
+layout.flat.url
+A URL to change the layout to flatten posts. This lists all posts in the thread in order
+of date submitted.
+
+
+layout.threaded.url
+A URL to change the layout to threaded posts. This is the default setting. Posts will be shown one at a time.
+
+
+layout.isFlat
+A conditional indicating if the current layout is flat.
+
+
+layout.isNested
+A conditional indicating if the current layout is nested.
+
+
+layout.isThreaded
+A conditional indicating if the current layout is threaded.
+
+
+user.isSubscribed
+A conditional that is true if the current user is subscribed to the thread.
+
+
+subscribe.url
+A URL to subscribe the current user to the thread.
+
+
+unsubscribe.url
+A URL to subscribe the current user from the thread.
+
+
+isSticky
+A conditional indicating if the current thread is sticky.
+
+
+stick.url
+The URL to make this thread sticky.
+
+
+unstick.url
+The URL to unstick this thread.
+
+
+isLocked
+A conditional indicating if the current thread is locked.
+
+
+lock.url
+The URL to lock this thread.
+
+
+unlock.url
+The URL to unlock this thread.
+
+ +|, + lastUpdated => 1111709371, + }, + +}; + +1;