Large batch of Help and i18n. Also, make sure that the
Shop plugin for the Account always has an array ref in it.
This commit is contained in:
parent
fd39a8dcc2
commit
5d490fbeb6
12 changed files with 449 additions and 11 deletions
70
lib/WebGUI/Help/Account.pm
Normal file
70
lib/WebGUI/Help/Account.pm
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
package WebGUI::Help::Account;
|
||||
|
||||
use strict;
|
||||
|
||||
our $HELP = {
|
||||
'layout template' => {
|
||||
title => 'account layout template',
|
||||
body => '',
|
||||
isa => [
|
||||
{
|
||||
tag => 'common vars',
|
||||
namespace => 'Account',
|
||||
},
|
||||
{
|
||||
tag => "template variables",
|
||||
namespace => "Asset_Template",
|
||||
},
|
||||
],
|
||||
fields => [ ],
|
||||
variables => [
|
||||
{
|
||||
name => "account_loop",
|
||||
variables => [
|
||||
{
|
||||
name => "title",
|
||||
description => "account title",
|
||||
},
|
||||
{
|
||||
name => "identifier",
|
||||
description => "account identifier",
|
||||
},
|
||||
{
|
||||
name => "className",
|
||||
description => "account className",
|
||||
},
|
||||
{
|
||||
name => "is_[[IDENTIFIER]]",
|
||||
},
|
||||
{
|
||||
name => "account url",
|
||||
},
|
||||
{
|
||||
name => "is_method_[[METHOD]]",
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
related => [ ],
|
||||
},
|
||||
|
||||
'common vars' => {
|
||||
title => 'common account variables',
|
||||
body => '',
|
||||
private => 1,
|
||||
isa => [ ],
|
||||
fields => [ ],
|
||||
variables => [
|
||||
{ name => "user_full_name", },
|
||||
{ name => "user_member_since", },
|
||||
{ name => "view_profile_url", },
|
||||
{ name => "root_url", },
|
||||
{ name => "back_url", },
|
||||
],
|
||||
related => [ ],
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
#vim:ft=perl
|
||||
72
lib/WebGUI/Help/Account_Contributions.pm
Normal file
72
lib/WebGUI/Help/Account_Contributions.pm
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
package WebGUI::Help::Account_Contributions;
|
||||
|
||||
use strict;
|
||||
|
||||
our $HELP = {
|
||||
'layout template' => {
|
||||
title => 'account contributions layout template',
|
||||
body => '',
|
||||
isa => [
|
||||
{
|
||||
tag => 'template variables',
|
||||
namespace => 'Asset_Template',
|
||||
},
|
||||
{
|
||||
tag => 'pagination template variables',
|
||||
namespace => 'WebGUI',
|
||||
},
|
||||
],
|
||||
fields => [ ],
|
||||
variables => [
|
||||
{
|
||||
name => 'title_url',
|
||||
},
|
||||
{
|
||||
name => 'type_url',
|
||||
},
|
||||
{
|
||||
name => 'dateStamp_url',
|
||||
},
|
||||
{
|
||||
name => 'rpp_url',
|
||||
},
|
||||
{
|
||||
name => 'has_contributions',
|
||||
},
|
||||
{
|
||||
name => 'contributions_total',
|
||||
},
|
||||
{
|
||||
name => 'user_full_name',
|
||||
},
|
||||
{
|
||||
name => 'user_member_since',
|
||||
},
|
||||
{
|
||||
name => 'view_profile_url',
|
||||
namespace => 'Account',
|
||||
},
|
||||
{
|
||||
name => 'root_url',
|
||||
namespace => 'Account',
|
||||
},
|
||||
{
|
||||
name => 'back_url',
|
||||
namespace => 'Account',
|
||||
},
|
||||
{
|
||||
name => 'contributions_loop',
|
||||
variables => [
|
||||
{
|
||||
name => 'contributions_variables',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
related => [ ],
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
#vim:ft=perl
|
||||
33
lib/WebGUI/Help/Account_Inbox.pm
Normal file
33
lib/WebGUI/Help/Account_Inbox.pm
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
package WebGUI::Help::Account_Inbox;
|
||||
|
||||
use strict;
|
||||
|
||||
our $HELP = {
|
||||
|
||||
'common vars' => {
|
||||
title => 'common account variables',
|
||||
body => '',
|
||||
private => 1,
|
||||
isa => [
|
||||
{
|
||||
tag => 'common vars',
|
||||
namespace => 'Account',
|
||||
},
|
||||
],
|
||||
fields => [ ],
|
||||
variables => [
|
||||
{ name => 'view_inbox_url', },
|
||||
{ name => 'view_invitations_url', },
|
||||
{ name => 'unread_message_count', },
|
||||
{ name => 'invitation_count', },
|
||||
{ name => 'invitations_enabled', },
|
||||
{ name => 'user_invitations_enabled', },
|
||||
{ name => 'invite_friend_url', },
|
||||
],
|
||||
related => [ ],
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
#vim:ft=perl
|
||||
28
lib/WebGUI/Help/Account_Shop.pm
Normal file
28
lib/WebGUI/Help/Account_Shop.pm
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
package WebGUI::Help::Account_Shop;
|
||||
|
||||
use strict;
|
||||
|
||||
our $HELP = {
|
||||
|
||||
'common vars' => {
|
||||
title => 'common account variables',
|
||||
body => '',
|
||||
private => 1,
|
||||
isa => [
|
||||
{
|
||||
tag => 'common vars',
|
||||
namespace => 'Account',
|
||||
},
|
||||
],
|
||||
fields => [ ],
|
||||
variables => [
|
||||
{ name => "manage_purchases_url", },
|
||||
{ name => "managePurchasesIsActive", },
|
||||
],
|
||||
related => [ ],
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
#vim:ft=perl
|
||||
24
lib/WebGUI/Help/Account_User.pm
Normal file
24
lib/WebGUI/Help/Account_User.pm
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
package WebGUI::Help::Account_User;
|
||||
|
||||
use strict;
|
||||
|
||||
our $HELP = {
|
||||
'layout template' => {
|
||||
title => 'user layout template title',
|
||||
body => 'user layout template body',
|
||||
isa => [
|
||||
],
|
||||
fields => [ ],
|
||||
variables => [ ],
|
||||
related => [
|
||||
{
|
||||
tag => 'display account template',
|
||||
namespace => 'Auth',
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
#vim:ft=perl
|
||||
|
|
@ -139,7 +139,7 @@ our $HELP = {
|
|||
'matrix asset template variables' => {
|
||||
private => 1,
|
||||
title => 'matrix asset template variables title',
|
||||
body => 'matrix asset template variables body',
|
||||
body => '',
|
||||
isa => [
|
||||
{ namespace => "Asset_Wobject",
|
||||
tag => "wobject template variables",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue