diff --git a/lib/WebGUI/Help/Workflow_Activity.pm b/lib/WebGUI/Help/Workflow_Activity.pm index 77c7e0b19..5bbfc73e4 100644 --- a/lib/WebGUI/Help/Workflow_Activity.pm +++ b/lib/WebGUI/Help/Workflow_Activity.pm @@ -24,6 +24,53 @@ our $HELP = { ], }, + 'list of installed activities' => { + title => 'list of installed activities', + body => sub { + my $session = shift; + my $dir = join '/', $session->config->getWebguiRoot,"lib","WebGUI","Workflow","Activity"; + opendir (DIR,$dir) or $session->errorHandler->fatal("Can't open Activity directory: $dir!"); + my @installedActivities = sort map { s/\.pm//; $_; } + grep { /\.pm$/ } + readdir(DIR); ##list of namespaces + closedir(DIR); + + ##Build list of enabled activities, by namespace, by reversing session hash: + my %workflows = %{ $session->config->get("workflowActivities") }; + my %activities = map { s/^WebGUI::Workflow::Activity:://; $_ => 1 } + map { @{ $workflows{$_} } } + keys %workflows; + + my $i18n = WebGUI::International->new($session, 'Workflow_Activity'); + my $yes = $i18n->get(138, 'WebGUI'); + my $no = $i18n->get(139, 'WebGUI'); + my $activity_table = + join "\n", + map { join '', '', $_, + '', + ($activities{$_} ? $yes : $no), + '' + } @installedActivities; + + $activity_table = + join("\n", + $i18n->get('activities list body'), + '', + '',$activity_table,'
',$i18n->get('activity name'), + '', + $i18n->get('activity enabled header'), + '
'); + }, + isa => [ + ], + fields => [ + ], + variables => [ + ], + related => [ + ], + }, + }; 1; ##All perl modules must return true diff --git a/lib/WebGUI/i18n/English/Macros.pm b/lib/WebGUI/i18n/English/Macros.pm index cb2179c67..6f19ba863 100644 --- a/lib/WebGUI/i18n/English/Macros.pm +++ b/lib/WebGUI/i18n/English/Macros.pm @@ -24,8 +24,15 @@ our $I18N = { }, 'macros list body' => { - message => q|

The set of available Macros is defined in the WebGUI configuration file. The table below shows all macros that are available for use on your site, and which ones have - been enabled on your use. If the macro is enabled, the table will list the shortcut that is used to call it.

+ message => q|

Making a macro available for use on your site is a two step process.

+
+
    +
  1. The macro must be put in the Macros directory in the WebGUI source code: lib/WebGUI/Macros/.
  2. +
  3. The macro must be enabled in your WebGUI.conf file, in the "macros" section. In that section, you can assign a shortcut that is different from the macro's name.
  4. +
+
+

The table below shows which macros are installed on your site and which have been configured in your WebGUI.conf file.

+ |, context => 'Content for dynamically generated macro list', lastUpdated => 1150994876, diff --git a/lib/WebGUI/i18n/English/Workflow_Activity.pm b/lib/WebGUI/i18n/English/Workflow_Activity.pm index e549f6172..ed999b2a2 100644 --- a/lib/WebGUI/i18n/English/Workflow_Activity.pm +++ b/lib/WebGUI/i18n/English/Workflow_Activity.pm @@ -37,8 +37,38 @@ our $I18N = { lastUpdated => 0, }, + 'list of installed activities' => { + message => q|List of Installed Workflow Activities|, + lastUpdated => 0, + }, + + 'activities list body' => { + message => q|

Making a Workflow Activity available for use on your site is a two step process.

+
+
    +
  1. The activity must be put in the Activities directory in the WebGUI source code: lib/WebGUI/Workflow/Activities.
  2. +
  3. The activity must be enabled in your WebGUI.conf file, in the "workflowActivities" section.
  4. +
+
+

The table below shows which activities are installed on your site and which have been configured in your WebGUI.conf file. It does not say if the activity is used in a Workflow.

+|, + lastUpdated => 0, + }, + + 'activity enabled header' => { + message => q|Activity Enabled?|, + lastUpdated => 1112591289, + context => q|Table heading in List of Activities help page. Short for "Is this Activity enabled?"|, + }, + + 'activity name' => { + message => q|Activity Name|, + lastUpdated => 1112591289, + context => q|Table heading in List of Activities help page. Short for "Is this Activity enabled?"|, + }, + 'topicName' => { - message => q|Base Workflow Activity|, + message => q|Workflow Activities|, context => q|The name of this workflow activity.|, lastUpdated => 0, },