Tatsuki SUGIURA
sugi****@users*****
2006年 7月 12日 (水) 21:22:13 JST
Index: slashjp/plugins/Admin/templates/author_activity;misc;default diff -u /dev/null slashjp/plugins/Admin/templates/author_activity;misc;default:1.2 --- /dev/null Wed Jul 12 21:22:13 2006 +++ slashjp/plugins/Admin/templates/author_activity;misc;default Wed Jul 12 21:22:13 2006 @@ -0,0 +1,34 @@ +__section__ +default +__description__ +You should describe stuff here. +__title__ +Useless title to template +__page__ +misc +__lang__ +en_US +__name__ +author_activity +__template__ +<table> +[% IF daddy %] + <tr class="data_hl1"><td><a href="[% $gSkin.rootdir %]/shifts.pl">Daddypants:</a> [% daddy.nickname | strip_literal %]</td></tr> +[% END %] +[% seen_uids = {}; num = 0 %] +[% FOREACH act = activity %] + [% NEXT IF seen_uids.${act.uid}; %] + [% class = num % 2 ? "data_hl1" : "data_hl2"; %] + [% IF act.title %] + <tr class="[% class %]"><td> + [% act.nickname | strip_literal %] [% act.verb %] <a href="[% gSkin.rootdir %]/[% IF act.sid %]admin.pl?op=edit&sid=[% act.sid %][% ELSIF act.subid %]submit.pl?op=viewsub&subid=[% act.subid %][% END %]">[% act.title %]</a> [% act.usertime %] + [% seen_uids.${act.uid} = 1 %] + [% num = !num %] + </td></tr> + [% END %] +[% END %] +</table> +__seclev__ +10000 +__version__ +$Id: author_activity;misc;default,v 1.2 2006/07/12 12:22:13 sugi Exp $ Index: slashjp/plugins/Admin/templates/signoff;misc;default diff -u /dev/null slashjp/plugins/Admin/templates/signoff;misc;default:1.2 --- /dev/null Wed Jul 12 21:22:13 2006 +++ slashjp/plugins/Admin/templates/signoff;misc;default Wed Jul 12 21:22:13 2006 @@ -0,0 +1,27 @@ +__section__ +default +__description__ +stoid = stoid of story signoff is for +storylink = is this to be included in a listing of storylinks on index.pl (if so we'll put it inside a list item) +checked = should this box be checked? +__title__ +Signoff checkbox +__page__ +misc +__lang__ +en_US +__name__ +signoff +__template__ +[% IF constants.plugin.Ajax && constants.signoff_use %] +[% checked = Slash.db.hasUserSignedStory(stoid, user.uid); %] +[% IF storylink %] +<li class="signoff">[% END %] +[% PROCESS ajax_reskey_signoff reskey_label => 'signoff-reskey-' _ stoid, reskey_name => 'ajax_admin' %] +<input type="checkbox" name="adminsignoff" value="[% stoid %]" onclick="admin_signoff(this);"[% IF checked; constants.markup_checked_attribute; END %]><span id="signoff_[% stoid %]"><b>Sign</b></span> +[% IF storylink %]</li>[% END %] +[% END %] +__seclev__ +10000 +__version__ +$Id: signoff;misc;default,v 1.2 2006/07/12 12:22:13 sugi Exp $ Index: slashjp/plugins/Admin/templates/signoff_box;misc;default diff -u /dev/null slashjp/plugins/Admin/templates/signoff_box;misc;default:1.2 --- /dev/null Wed Jul 12 21:22:13 2006 +++ slashjp/plugins/Admin/templates/signoff_box;misc;default Wed Jul 12 21:22:13 2006 @@ -0,0 +1,28 @@ +__section__ +default +__description__ +You should describe stuff here. +__title__ +Useless title to template +__page__ +misc +__lang__ +en_US +__name__ +signoff_box +__template__ +[% IF header %]<b>[% header %]</b><br>[% END %] +[% IF signoffs.size == 0; + content = "<b>No Signoffs</b>"; +ELSE; + content = content _ "<table>"; + FOREACH signoff = signoffs; + content = content _ "<tr><td>" _ signoff.nickname _ "</td><td>" _ Slash.timeCalc(signoff.signoff_time, "%m-%d %H:%M:%S", 0) _"</td><td>" _ signoff.signoff_type _"</td></tr>"; + END; + content = content _ "</table>"; + END %] +[% content %] +__seclev__ +10000 +__version__ +$Id: signoff_box;misc;default,v 1.2 2006/07/12 12:22:13 sugi Exp $ Index: slashjp/plugins/Admin/templates/signoff_stats;misc;default diff -u /dev/null slashjp/plugins/Admin/templates/signoff_stats;misc;default:1.2 --- /dev/null Wed Jul 12 21:22:13 2006 +++ slashjp/plugins/Admin/templates/signoff_stats;misc;default Wed Jul 12 21:22:13 2006 @@ -0,0 +1,47 @@ +__section__ +default +__description__ +You should describe stuff here. +__title__ +Useless title to template +__page__ +misc +__lang__ +en_US +__name__ +signoff_stats +__seclev__ +10000 +__template__ +<table class="data"> +<tr class="data_head"> + <td></td> + [% FOREACH days = num_days %] + <td colspan="2">[% days %] days<br> + [% num_stories = stoids_for_days.$days.keys.size || 0 %] + [% num_stories %] stories + </td> + [% END %] +</tr> + +[% FOREACH author = author_info.keys %] + <tr class="data_hl1"><td>[% author_info.$author.nickname %]</td> + [% FOREACH days = num_days %] + [% num_stories = stoids_for_days.$days.keys.size || 0 %] + [% cnt = author_info.$author.$days.cnt || 0 %] + <td>[% cnt %] of [% num_stories %]</td> + <td> + [% IF cnt > 0 %] + [% avg_time = author_info.$author.$days.tot_time / cnt %] + [% avg_time.int %] m + [% ELSE %] + N/A + [% END %] + </td> + [% END %] + </tr> +[% END %] +</table> +__version__ +$Id: signoff_stats;misc;default,v 1.2 2006/07/12 12:22:13 sugi Exp $ + Index: slashjp/plugins/Admin/templates/spellcheck;admin;default diff -u /dev/null slashjp/plugins/Admin/templates/spellcheck;admin;default:1.2 --- /dev/null Wed Jul 12 21:22:13 2006 +++ slashjp/plugins/Admin/templates/spellcheck;admin;default Wed Jul 12 21:22:13 2006 @@ -0,0 +1,40 @@ +__section__ +default +__description__ +Displays a table listing misspelt words and any available corrections. +__title__ + +__page__ +admin +__lang__ +en_US +__name__ +spellcheck +__template__ +<table border="0" cellpadding="6" cellspacing="0" class="data" style="background: #ccc; width: 150px;" id="spellcheck_[% form_element %]"> + <tr class="data_head" style="background: #066;"> + <td>Spellcheck</td> + <td></td> + </tr> +[% FOREACH misspelled_word = words.keys %] + <tr class="data_hl3" id="[% misspelled_word %]_[% form_element %]_correction"> + <td><span style="color: #000;">[% misspelled_word %]</span></td> + + [% escaped_word = misspelled_word.replace("'", "\\'") %] + + <td><select name="select_[% form_element %]_[% misspelled_word %]" onChange="make_spelling_correction('[% escaped_word %]', '[% form_element %]');"> + <option value=''>Suggestions + <option style="color:#c00;" value=''>- Learn - + [% FOREACH correction = words.$misspelled_word %] + <option value="[% correction %]">[% correction %] + [% END %] + </select> + </td> + </tr> +[% END %] +</table> + +__seclev__ +10000 +__version__ +$Id: spellcheck;admin;default,v 1.2 2006/07/12 12:22:13 sugi Exp $