From 64ff0ad4d4956321b70d684721fe3420fcc940ae Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Wed, 4 Mar 2009 00:27:26 +0000 Subject: [PATCH] Template help and i18n for the view template. --- lib/WebGUI/Help/Asset_StoryArchive.pm | 59 +++++++++++++++++++ lib/WebGUI/i18n/English/Asset_StoryArchive.pm | 48 +++++++++++++++ 2 files changed, 107 insertions(+) create mode 100644 lib/WebGUI/Help/Asset_StoryArchive.pm diff --git a/lib/WebGUI/Help/Asset_StoryArchive.pm b/lib/WebGUI/Help/Asset_StoryArchive.pm new file mode 100644 index 000000000..11f96069c --- /dev/null +++ b/lib/WebGUI/Help/Asset_StoryArchive.pm @@ -0,0 +1,59 @@ +package WebGUI::Help::Asset_StoryArchive; +use strict; + +our $HELP = { + + 'view template' => { + title => 'view template', + body => '', + isa => [ + { namespace => "Asset_StoryArchive", + tag => "storyarchive asset template variables" + }, + { namespace => "Asset_Template", + tag => "template variables" + }, + { namespace => "Asset", + tag => "asset template" + }, + { tag => 'pagination template variables', + namespace => 'WebGUI' + }, + ], + fields => [], + variables => [ + { 'name' => 'date_loop', + 'variables' => [ + { 'name' => 'epochDate' }, + { 'name' => 'story_loop', + 'variables' => [ + { 'name' => 'url' }, + { 'name' => 'title' }, + { 'name' => 'creationDate' }, + ], + }, + ] + }, + ], + related => [] + }, + + 'storyarchive asset template variables' => { + private => 1, + title => 'storyarchive asset template variables title', + body => '', + isa => [ + { namespace => "Asset_Wobject", + tag => "wobject template variables" + }, + ], + fields => [], + variables => [ + ], + related => [] + }, + + +}; + +1; diff --git a/lib/WebGUI/i18n/English/Asset_StoryArchive.pm b/lib/WebGUI/i18n/English/Asset_StoryArchive.pm index e08d97106..e25680a37 100644 --- a/lib/WebGUI/i18n/English/Asset_StoryArchive.pm +++ b/lib/WebGUI/i18n/English/Asset_StoryArchive.pm @@ -117,6 +117,54 @@ our $I18N = { lastUpdated => 0, }, + 'storyarchive asset template variables title' => { + message => q|Story Archive Asset Template Variables.|, + context => q|Title of a help page for asset level template variables.|, + lastUpdated => 0, + }, + + 'view template' => { + message => q|Story Archive, View Template|, + context => q|Title of a help page.|, + lastUpdated => 0, + }, + + 'date_loop' => { + message => q|A loop containing stories in the date they were submitted, with subloops for each day. The loop is paginated.|, + context => q|Template variable.|, + lastUpdated => 0, + }, + + 'epochDate' => { + message => q|The epoch that is the beginning of the day for a day where stories were submitted to the Story Archive.|, + context => q|Template variable.|, + lastUpdated => 0, + }, + + 'story_loop' => { + message => q|A loop containing all stories there were submitted on the day given by epochDate.|, + context => q|Template variable.|, + lastUpdated => 0, + }, + + 'url' => { + message => q|The URL to view a story.|, + context => q|Template variable.|, + lastUpdated => 0, + }, + + 'title' => { + message => q|The title of a story.|, + context => q|Template variable.|, + lastUpdated => 0, + }, + + 'creationDate' => { + message => q|The epoch date when this story was created, or submitted, to the Story Archive.|, + context => q|Template variable.|, + lastUpdated => 0, + }, + }; 1;