Internationalize a Thingy template

Add a link from the manage screen back to the default view.
This commit is contained in:
Colin Kuskie 2008-11-27 02:33:08 +00:00
parent 2b3b3fd458
commit 27d7a73e53
5 changed files with 15 additions and 2 deletions

View file

@ -13,6 +13,7 @@
- fixed #9157: another typ-o in i18n
- fixed #9112: Thingy View Thing screen doesn't preserve newlines
- fixed #9155: purpose of "headblock" duplicates "extra head tags"
- fixed: Improve Thingy navigation.
7.6.4
- Survey now will show progress and time limit.

View file

@ -2805,9 +2805,10 @@ sub www_manage {
my $var = $self->get;
my $url = $self->getUrl;
$var->{canEditThings} = $self->canEdit;
$var->{canEditThings} = $self->canEdit;
$var->{"addThing_url"} = $session->url->append($url, 'func=editThing;thingId=new');
$var->{"manage_url"} = $session->url->append($url, 'func=manage');
$var->{"manage_url"} = $session->url->append($url, 'func=manage');
$var->{"view_url"} = $session->url->page;
#Get things in this Thingy
$things = $self->getThings;

View file

@ -14,6 +14,7 @@ our $HELP = {
},
],
variables => [
{ 'name' => 'view_url' },
{ 'name' => 'things_loop',
'variables' => [
{ 'name' => 'thing_editIcon' },

View file

@ -1002,6 +1002,16 @@ search has been done.|,
message => q|Error: You must assign fields to your new Thing.|,
lastUpdated => 1219424285,
},
'back to thingy default view' => {
message => q|Back to Thingy default view|,
lastUpdated => 1227736916,
},
'view_url' => {
message => q|The URL that will take the user back to the Thingy default view.|,
lastUpdated => 1227737813,
},
};
1;