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
|
|
@ -173,6 +173,7 @@ sub www_managePurchases {
|
|||
my $url = $session->url;
|
||||
|
||||
my $var = {};
|
||||
$var->{transactions} = [];
|
||||
|
||||
# build list
|
||||
foreach my $id (@{WebGUI::Shop::Transaction->getTransactionIdsForUser($session)}) {
|
||||
|
|
|
|||
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",
|
||||
|
|
|
|||
|
|
@ -9,6 +9,96 @@ our $I18N = {
|
|||
context => q{Error message in Account.pm},
|
||||
},
|
||||
|
||||
'account layout template' => {
|
||||
message => q{Account Layout Template},
|
||||
context => q{Help title},
|
||||
lastUpdated => 1230844137,
|
||||
},
|
||||
|
||||
'common account variables' => {
|
||||
message => q{Common Account Variables},
|
||||
context => q{Help title},
|
||||
lastUpdated => 1230844137,
|
||||
},
|
||||
|
||||
'user_full_name' => {
|
||||
message => q{The full name of the user},
|
||||
context => q{template variable},
|
||||
lastUpdated => 1230844137,
|
||||
},
|
||||
|
||||
'user_member_since' => {
|
||||
message => q{The date this user created their account on the site, in epoch format. Use the Date macro to change the format.},
|
||||
context => q{template variable},
|
||||
lastUpdated => 1230844137,
|
||||
},
|
||||
|
||||
'view_profile_url' => {
|
||||
message => q{A URL to view the user's profile.},
|
||||
context => q{template variable},
|
||||
lastUpdated => 1230844137,
|
||||
},
|
||||
|
||||
'root_url' => {
|
||||
message => q{The URL to go back to the Account main screen.},
|
||||
context => q{template variable},
|
||||
lastUpdated => 1230844137,
|
||||
},
|
||||
|
||||
'back_url' => {
|
||||
message => q{A URL to leave the Account screen and go back to the website.},
|
||||
context => q{template variable},
|
||||
lastUpdated => 1230844137,
|
||||
},
|
||||
|
||||
'account_loop' => {
|
||||
message => q{A loop containing information about account plugins},
|
||||
context => q{template variable},
|
||||
lastUpdated => 1230844137,
|
||||
},
|
||||
|
||||
'account title' => {
|
||||
message => q{The title of this account plugin, from the config file. Macros in the title will be expanded.},
|
||||
context => q{template variable},
|
||||
lastUpdated => 1230844137,
|
||||
},
|
||||
|
||||
'account identifier' => {
|
||||
message => q{The identifier for this plugin, from the config file. Default identifiers are profile, inbox, friends, contributions, shop and user.},
|
||||
context => q{template variable. Note that the list of default identifiers should not be translated!},
|
||||
lastUpdated => 1230844137,
|
||||
},
|
||||
|
||||
'account className' => {
|
||||
message => q{The perl class name for this plugin.},
|
||||
context => q{template variable},
|
||||
lastUpdated => 1230844137,
|
||||
},
|
||||
|
||||
'is_[[IDENTIFIER]]' => {
|
||||
message => q{[[IDENTIFIER]] is replaced with the identifier from the plugin, for example, is_profile. The resulting boolean will be true for this plugin.},
|
||||
context => q{template variable},
|
||||
lastUpdated => 1230844137,
|
||||
},
|
||||
|
||||
'account url' => {
|
||||
message => q{The URL to activate this plugin.},
|
||||
context => q{template variable},
|
||||
lastUpdated => 1230845481,
|
||||
},
|
||||
|
||||
'is_method_[[METHOD]]' => {
|
||||
message => q{[[METHOD]] is replaced with the name of the default method for this plugin. The default name for this method is view.},
|
||||
context => q{template variable},
|
||||
lastUpdated => 1230844137,
|
||||
},
|
||||
|
||||
'is_active' => {
|
||||
message => q{This variable will be true if this plugin is currently being viewed.},
|
||||
context => q{template variable},
|
||||
lastUpdated => 1230844137,
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ our $I18N = {
|
|||
message => q|Layout Template|,
|
||||
lastUpdated => 1119068809
|
||||
},
|
||||
|
||||
|
||||
'contrib layout template hoverHelp' => {
|
||||
message => q{Choose a layout template in which to enclose the content from the various methods within the contributions tab},
|
||||
lastUpdated => 1119068809
|
||||
|
|
@ -33,7 +33,7 @@ our $I18N = {
|
|||
message => q|View Contributions Template|,
|
||||
lastUpdated => 1119068809
|
||||
},
|
||||
|
||||
|
||||
'contrib view template hoverHelp' => {
|
||||
message => q{Choose the template for displaying user contributions},
|
||||
lastUpdated => 1119068809
|
||||
|
|
@ -63,7 +63,62 @@ our $I18N = {
|
|||
message => q{total contributions},
|
||||
lastUpdated => 1119068809
|
||||
},
|
||||
|
||||
|
||||
'account contributions layout template' => {
|
||||
message => q{Account Contributions Layout Template},
|
||||
lastUpdated => 1230848105,
|
||||
},
|
||||
|
||||
'title_url' => {
|
||||
message => q{URL to sort contributions by title. Note that this URL also toggles the state of the sorting direction, ascending or descending.},
|
||||
lastUpdated => 1230848105,
|
||||
},
|
||||
|
||||
'type_url' => {
|
||||
message => q{URL to sort contributions by type of contribution. Note that this URL also toggles the state of the sorting direction, ascending or descending.},
|
||||
lastUpdated => 1230848105,
|
||||
},
|
||||
|
||||
'dateStamp_url' => {
|
||||
message => q{URL to sort contributions by date it was created. Note that this URL also toggles the state of the sorting direction, ascending or descending.},
|
||||
lastUpdated => 1230848105,
|
||||
},
|
||||
|
||||
'rpp_url' => {
|
||||
message => q{URL to change the number of results per page.},
|
||||
lastUpdated => 1230848105,
|
||||
},
|
||||
|
||||
'has_contributions' => {
|
||||
message => q{A boolean which will be true if the user has made contributions to the site.},
|
||||
lastUpdated => 1230848105,
|
||||
},
|
||||
|
||||
'contributions_total' => {
|
||||
message => q{The total number of contributions made by the user.},
|
||||
lastUpdated => 1230848105,
|
||||
},
|
||||
|
||||
'user_full_name' => {
|
||||
message => q{The name of the user whose contributions are being viewed.},
|
||||
lastUpdated => 1230848105,
|
||||
},
|
||||
|
||||
'user_member_since' => {
|
||||
message => q{The date, as an epoch, that the user whose contributions are being viewed created an account on this site.},
|
||||
lastUpdated => 1230848105,
|
||||
},
|
||||
|
||||
'contributions_loop' => {
|
||||
message => q{A loop containing information about all contributions made by this user.},
|
||||
lastUpdated => 1230848105,
|
||||
},
|
||||
|
||||
'contributions_variables' => {
|
||||
message => q{Every Asset variable that the asset provides will be in this loop, by name. The more common, useful ones will be title, url, menutitle, dateCreated, synopsis, lastModified, and so on.},
|
||||
lastUpdated => 1230866082,
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
|
|
|
|||
|
|
@ -485,6 +485,46 @@ our $I18N = {
|
|||
lastUpdated => 1181410226,
|
||||
},
|
||||
|
||||
'common account variables' => {
|
||||
message => q|Common Account, Inbox Plugin, Template Variables.|,
|
||||
lastUpdated => 1230867391,
|
||||
},
|
||||
|
||||
'view_inbox_url' => {
|
||||
message => q|URL to view the Inbox screen.|,
|
||||
lastUpdated => 1230867391,
|
||||
},
|
||||
|
||||
'view_invitations_url' => {
|
||||
message => q|URL to view the Invitations screen.|,
|
||||
lastUpdated => 1230867391,
|
||||
},
|
||||
|
||||
'unread_message_count' => {
|
||||
message => q|The number of unread messages in the Inbox.|,
|
||||
lastUpdated => 1230867391,
|
||||
},
|
||||
|
||||
'invitation_count' => {
|
||||
message => q|The number of Invitations this user has received.|,
|
||||
lastUpdated => 1230867391,
|
||||
},
|
||||
|
||||
'invitations_enabled' => {
|
||||
message => q|A boolean that is true if the user is willing to receive invitations to join Friends Networks on this site.|,
|
||||
lastUpdated => 1230867391,
|
||||
},
|
||||
|
||||
'user_invitations_enabled' => {
|
||||
message => q|A boolean that is true if this site is configured to send invitations to users outside of the site.|,
|
||||
lastUpdated => 1230867391,
|
||||
},
|
||||
|
||||
'invite_friend_url' => {
|
||||
message => q|The URL to invite this user to be join your Friend Network.|,
|
||||
lastUpdated => 1230867391,
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
|
|
|
|||
|
|
@ -11,30 +11,44 @@ our $I18N = {
|
|||
|
||||
'shop style template label' => {
|
||||
message => q|Style Template|,
|
||||
lastUpdated => 1119068809
|
||||
lastUpdated => 1119068809,
|
||||
},
|
||||
|
||||
'shop style template hoverHelp' => {
|
||||
message => q|Select a style template from the list to enclose the shop tab in.|,
|
||||
lastUpdated => 1119068809
|
||||
lastUpdated => 1119068809,
|
||||
},
|
||||
|
||||
'shop layout template label' => {
|
||||
message => q|Layout Template|,
|
||||
lastUpdated => 1119068809
|
||||
lastUpdated => 1119068809,
|
||||
},
|
||||
|
||||
|
||||
'shop layout template hoverHelp' => {
|
||||
message => q{Choose a layout template in which to enclose the content from the various methods within the shop tab},
|
||||
lastUpdated => 1119068809
|
||||
lastUpdated => 1119068809,
|
||||
},
|
||||
|
||||
'manage purchases label' => {
|
||||
message => q{Manage Purchases},
|
||||
lastUpdated => 1119068809
|
||||
lastUpdated => 1119068809,
|
||||
},
|
||||
|
||||
'manage_purchases_url' => {
|
||||
message => q{The URL to the manage purchases screen.},
|
||||
lastUpdated => 1119068809,
|
||||
},
|
||||
|
||||
'managePurchasesIsActive' => {
|
||||
message => q{A boolean that is true if the current screen is view, managePurchases or viewTransaction.},
|
||||
lastUpdated => 1119068809,
|
||||
},
|
||||
|
||||
'common account variables' => {
|
||||
message => q{Common Account, Shop Plugin, Template Variables.},
|
||||
lastUpdated => 1230867169,
|
||||
},
|
||||
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
|
|
|
|||
|
|
@ -34,6 +34,17 @@ our $I18N = {
|
|||
lastUpdated => 1119068809
|
||||
},
|
||||
|
||||
'user layout template title' => {
|
||||
message => q{Account User Layout Template},
|
||||
lastUpdated => 1230846973,
|
||||
},
|
||||
|
||||
'user layout template body' => {
|
||||
message => q{This Account plugin is only a wrapper for the WebGUI Auth system. Please see
|
||||
the display account templates for information about styling this screen.},
|
||||
lastUpdated => 1230846978,
|
||||
},
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue