__section__
default
__description__
Display user's pending submissions
* title = passed to titlebar
* width = passed to titlebar
* submissions = arrayref of submissions
__title__
__page__
submit
__lang__
en_US
__name__
yourPendingSubs
__template__
[% USE Slash %]
[% topics = Slash.db.getTopics(); # sigh %]
[% PROCESS titlebar title = "Your recent submissons" %]
Here are your recent submissions to [% constants.sitename %],
and their status within the system:
[% FOREACH submission = submissions %]
[% time = submission.0
subj = submission.1
section = submission.2
topic = topics.${submission.3}.name
del = submission.4
%]
- [% time %] [% subj %] ([% section %],[% topic %])
[% # this is a multiple ?: operator thingy ... i hope it makes sense ...
# if del == 1 it is rejected, if del == 2 it is accepted, else it is pending %]
[% del == 1 ? '(rejected)' : del == 2 ? '(accepted)' : '' %]
[% END %]
Summary:
[% FOREACH status = summary.keys %]
- [% status == 1 ? ' rejected ' : status == 2 ? ' accepted' : ' pending' %]
([% summary.$status %])
[% END %]
__seclev__
10000