📄 permissions.html.tmpl
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.13#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1074451154', 'name' => 'account/prefs/permissions.html.tmpl', }, BLOCK => sub { my $context = shift || die "template sub called without context\n"; my $stash = $context->stash; my $output = ''; my $error; eval { BLOCK: { $output .= "\n"; $output .= "\n\n"; $output .= "\n"; #line 34 "template\en\default\account\prefs\permissions.html.tmpl" $output .= $context->process('global/variables.none.tmpl'); $output .= "\n\n<table align=\"center\">\n <tr>\n <td>"; #line 58 "template\en\default\account\prefs\permissions.html.tmpl" if ($stash->get(['has_bits', 0, 'size', 0])) { $output .= "\n You have the following permission "; #line 41 "template\en\default\account\prefs\permissions.html.tmpl" $output .= $stash->get(['terms', 0, 'bits', 0]); $output .= " set on your account:\n <p>\n <br>\n <table align=\"center\">"; #line 52 "template\en\default\account\prefs\permissions.html.tmpl" # FOREACH do { my ($value, $error, $oldloop); my $list = $stash->get('has_bits'); unless (UNIVERSAL::isa($list, 'Template::Iterator')) { $list = Template::Config->iterator($list) || die $Template::Config::ERROR, "\n"; } ($value, $error) = $list->get_first(); eval { $oldloop = $stash->get('loop') }; $stash->set('loop', $list); eval { LOOP: while (! $error) { $stash->{'bit_description'} = $value; $output .= "\n <tr>\n <td>"; #line 48 "template\en\default\account\prefs\permissions.html.tmpl" $output .= $stash->get(['bit_description', 0, 'name', 0]); $output .= "</td>\n <td>"; #line 49 "template\en\default\account\prefs\permissions.html.tmpl" $output .= $stash->get(['bit_description', 0, 'desc', 0]); $output .= "</td>\n </tr>";; ($value, $error) = $list->get_next(); } }; $stash->set('loop', $oldloop); die $@ if $@; $error = 0 if $error && $error eq Template::Constants::STATUS_DONE; die $error if $error; }; $output .= "\n </table>"; } else { $output .= "\n There are no permission "; #line 56 "template\en\default\account\prefs\permissions.html.tmpl" $output .= $stash->get(['terms', 0, 'bits', 0]); $output .= " set on your account."; } $output .= "\n"; #line 83 "template\en\default\account\prefs\permissions.html.tmpl" if ($stash->get(['user', 0, 'groups', 0, 'editusers', 0])) { $output .= "\n <br>\n You have editusers privileges. You can turn on and off\n all permissions for all users."; } elsif ($stash->get(['set_bits', 0, 'size', 0])) { $output .= "\n <br>\n And you can turn on or off the following "; #line 68 "template\en\default\account\prefs\permissions.html.tmpl" $output .= $stash->get(['terms', 0, 'bits', 0]); $output .= " for\n <a href=\"editusers.cgi\">other users</a>:\n <p>\n <table align=\"center\">"; #line 79 "template\en\default\account\prefs\permissions.html.tmpl" # FOREACH do { my ($value, $error, $oldloop); my $list = $stash->get('set_bits'); unless (UNIVERSAL::isa($list, 'Template::Iterator')) { $list = Template::Config->iterator($list) || die $Template::Config::ERROR, "\n"; } ($value, $error) = $list->get_first(); eval { $oldloop = $stash->get('loop') }; $stash->set('loop', $list); eval { LOOP: while (! $error) { $stash->{'bit_description'} = $value; $output .= "\n <tr>\n <td>"; #line 75 "template\en\default\account\prefs\permissions.html.tmpl" $output .= $stash->get(['bit_description', 0, 'name', 0]); $output .= "</td>\n <td>"; #line 76 "template\en\default\account\prefs\permissions.html.tmpl" $output .= $stash->get(['bit_description', 0, 'desc', 0]); $output .= "</td>\n </tr>";; ($value, $error) = $list->get_next(); } }; $stash->set('loop', $oldloop); die $@ if $@; $error = 0 if $error && $error eq Template::Constants::STATUS_DONE; die $error if $error; }; $output .= "\n </table>\n </p>"; } $output .= "\n </td>\n </tr>\n</table>\n"; } }; if ($@) { $error = $context->catch($@, \$output); die $error unless $error->type eq 'return'; } return $output; }, DEFBLOCKS => { },});
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -