make list of macros clearer as to which are enabled and which are not
This commit is contained in:
parent
934b6f9771
commit
44447f8315
2 changed files with 23 additions and 8 deletions
|
|
@ -30,19 +30,27 @@ our $HELP = {
|
||||||
##Build list of enabled macros, by namespace, by reversing session hash:
|
##Build list of enabled macros, by namespace, by reversing session hash:
|
||||||
my %macros = reverse %{ $session->config->get("macros") };
|
my %macros = reverse %{ $session->config->get("macros") };
|
||||||
|
|
||||||
|
my $i18n = WebGUI::International->new($session, 'Macros');
|
||||||
|
my $yes = $i18n->get(138, 'WebGUI');
|
||||||
|
my $no = $i18n->get(139, 'WebGUI');
|
||||||
my $macro_table =
|
my $macro_table =
|
||||||
join "\n",
|
join "\n",
|
||||||
map { join '', '<tr><td>', $_, '</td><td>',
|
map { join '', '<tr><td>', $_,
|
||||||
($macros{$_} ? ('^', $macros{$_}, '();') : ' '),
|
'</td><td>',
|
||||||
'</td></tr>' }
|
($macros{$_} ? $yes : $no),
|
||||||
@macros;
|
'</td><td>',
|
||||||
|
($macros{$_} ? ('^', $macros{$_}, '();') : ' '),
|
||||||
|
'</td></tr>'
|
||||||
|
} @macros;
|
||||||
|
|
||||||
my $i18n = WebGUI::International->new($session, 'Macros');
|
|
||||||
$macro_table =
|
$macro_table =
|
||||||
join("\n",
|
join("\n",
|
||||||
|
$i18n->get('macros list body'),
|
||||||
'<table border="1" cellpadding="3">',
|
'<table border="1" cellpadding="3">',
|
||||||
'<tr><th>',$i18n->get('macro name'),
|
'<tr><th>',$i18n->get('macro name'),
|
||||||
'</th><th>',
|
'</th><th>',
|
||||||
|
$i18n->get('macro enabled header'),
|
||||||
|
'</th><th>',
|
||||||
$i18n->get('macro shortcut'),
|
$i18n->get('macro shortcut'),
|
||||||
'</th></tr>',$macro_table,'</table>');
|
'</th></tr>',$macro_table,'</table>');
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,13 @@ our $I18N = {
|
||||||
|
|
||||||
'macro shortcut' => {
|
'macro shortcut' => {
|
||||||
message => q|Macro Shortcut|,
|
message => q|Macro Shortcut|,
|
||||||
lastUpdated => 1112591289
|
lastUpdated => 1112591289,
|
||||||
|
},
|
||||||
|
|
||||||
|
'macro enabled header' => {
|
||||||
|
message => q|Macro Enabled?|,
|
||||||
|
lastUpdated => 1112591289,
|
||||||
|
context => q|Table heading in List of Macros help page. Short for "Is this Macro enabled?"|,
|
||||||
},
|
},
|
||||||
|
|
||||||
'macros list title' => {
|
'macros list title' => {
|
||||||
|
|
@ -18,10 +24,11 @@ our $I18N = {
|
||||||
},
|
},
|
||||||
|
|
||||||
'macros list body' => {
|
'macros list body' => {
|
||||||
message => q|<p>The set of available Macros is defined in the WebGUI configuration file. These Macros are available for use on your site:</p>
|
message => q|<p>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.</p>
|
||||||
|,
|
|,
|
||||||
context => 'Content for dynamically generated macro list',
|
context => 'Content for dynamically generated macro list',
|
||||||
lastUpdated => 1114134745,
|
lastUpdated => 1150994876,
|
||||||
},
|
},
|
||||||
|
|
||||||
'macro enabled' => {
|
'macro enabled' => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue