[Slashdotjp-dev 421] CVS update: slashjp/plugins/Ajax/templates

アーカイブの一覧に戻る

Tatsuki SUGIURA sugi****@users*****
2006年 7月 12日 (水) 20:41:45 JST


Index: slashjp/plugins/Ajax/templates/ajax_reskey_signoff;misc;default
diff -u /dev/null slashjp/plugins/Ajax/templates/ajax_reskey_signoff;misc;default:1.1
--- /dev/null	Wed Jul 12 20:41:45 2006
+++ slashjp/plugins/Ajax/templates/ajax_reskey_signoff;misc;default	Wed Jul 12 20:41:44 2006
@@ -0,0 +1,29 @@
+__section__
+default
+__description__
+You should describe stuff here.
+__title__
+Useless title to template
+__page__
+misc
+__lang__
+en_US
+__name__
+ajax_reskey_signoff
+__template__
+[% reskey = Slash.getObject('Slash::ResKey');
+   IF !reskey_name;
+   	reskey_name = 'ajax_admin';
+   END;
+   rkey = reskey.key(reskey_name, { nostate => 1 });
+   IF rkey.create;
+   	PROCESS reskey_tag;
+   END;
+
+   # don't carry over to subsequent calls
+   reskey_name = '';
+   reskey_label = ''; %]
+__seclev__
+10000
+__version__
+$Id: ajax_reskey_signoff;misc;default,v 1.1 2006/07/12 11:41:44 sugi Exp $
Index: slashjp/plugins/Ajax/templates/ajax_reskey_tag;misc;default
diff -u /dev/null slashjp/plugins/Ajax/templates/ajax_reskey_tag;misc;default:1.1
--- /dev/null	Wed Jul 12 20:41:45 2006
+++ slashjp/plugins/Ajax/templates/ajax_reskey_tag;misc;default	Wed Jul 12 20:41:44 2006
@@ -0,0 +1,29 @@
+__section__
+default
+__description__
+You should describe stuff here.
+__title__
+Useless title to template
+__page__
+misc
+__lang__
+en_US
+__name__
+ajax_reskey_tag
+__template__
+[% reskey = Slash.getObject('Slash::ResKey');
+   IF !reskey_name;
+   	reskey_name = 'ajax_base';
+   END;
+   rkey = reskey.key(reskey_name, { nostate => 1 });
+   IF rkey.create;
+   	PROCESS reskey_tag;
+   END;
+
+   # don't carry over to subsequent calls
+   reskey_name = '';
+   reskey_label = ''; %]
+__seclev__
+10000
+__version__
+$Id: ajax_reskey_tag;misc;default,v 1.1 2006/07/12 11:41:44 sugi Exp $
Index: slashjp/plugins/Ajax/templates/data;ajax;default
diff -u /dev/null slashjp/plugins/Ajax/templates/data;ajax;default:1.1
--- /dev/null	Wed Jul 12 20:41:45 2006
+++ slashjp/plugins/Ajax/templates/data;ajax;default	Wed Jul 12 20:41:44 2006
@@ -0,0 +1,20 @@
+__section__
+default
+__description__
+You should describe stuff here.
+__title__
+Useless title to template
+__page__
+ajax
+__lang__
+en_US
+__name__
+data
+__seclev__
+10000
+__template__
+[% SWITCH value %]
+	
+[% CASE 'set_section_prefs_success_msg' %]
+	<a href="javascript:window.location.reload();" style="color:#fff;">Close</a>
+[% END %]
Index: slashjp/plugins/Ajax/templates/sectionpref;ajax;default
diff -u /dev/null slashjp/plugins/Ajax/templates/sectionpref;ajax;default:1.1
--- /dev/null	Wed Jul 12 20:41:45 2006
+++ slashjp/plugins/Ajax/templates/sectionpref;ajax;default	Wed Jul 12 20:41:44 2006
@@ -0,0 +1,71 @@
+__section__
+default
+__description__
+* nexusref = hashref of nexus information
+	$n = name (textname) for nexus with tid $n
+* nexustid_order = list of the fields of nexusref to display, in display order
+
+__title__
+
+__page__
+ajax
+__lang__
+en_US
+__name__
+sectionpref
+__template__
+[% style_enabled = "color: #000; background: #fff;" %]
+[% style_disabled = "color: #999; background: #ccc;" %]
+<form name="sectionprefs">
+<table border="0" cellpadding="1" cellspacing="0"">
+	<tr style="[% style_enabled %]">
+		<td>&nbsp;</td>
+		<td>
+			<img src="[% constants.imagedir %]/article_none.gif" alt="Never" title="Never"><br>
+		</td>
+		<td valign="top">
+			<img src="[% constants.imagedir %]/article_brief.gif" alt="Brief Best Only" title="Brief Best Only"><br>
+		</td>
+		<td valign="top">
+			<img src="[% constants.imagedir %]/article_full.gif" alt="Full Best Only" title="Full Best Only"><br>
+		</td>
+		<td valign="top">
+			<img src="[% constants.imagedir %]/article_brief.gif" alt="Brief All" title="Brief All"><br>
+			<img src="[% constants.imagedir %]/article_brief.gif" alt="Brief All" title="Brief All"><br>
+		</td>
+		<td valign="top">
+			<img src="[% constants.imagedir %]/article_full.gif" alt="Full / Brief" title="Full / Brief"><br>
+			<img src="[% constants.imagedir %]/article_brief.gif" alt="Full / Brief" title="Full / Brief"><br>
+		</td>
+		<td valign="top">
+			<img src="[% constants.imagedir %]/article_full.gif" alt="Full All" title="Full All"><br>
+			<img src="[% constants.imagedir %]/article_full.gif" alt="Full All" title="Full All">
+		</td>
+		
+	</tr>
+	<tr class="secpref_master" style="[% IF multiple_values == 0; style_enabled; ELSE; style_disabled; END; %]">
+		<td>All Sections</td>
+		<td>&nbsp;</td>
+		[% FOREACH value = [ 1 2 3 4 5] -%]
+			<td align="center"><input type="radio" name="nexus_master" value="[% value %]" onclick="masterChange(this); return true;"[% IF master_value != "" && master_value == value; constants.markup_checked_attribute; END; %]></td>
+		[%- END %]
+	</tr>
+[% FOREACH nexustid = nexustid_order %]
+	<tr align="center" class="secpref_nexus_row" style="[% IF multiple_values == 0; style_disabled; ELSE; style_enabled; END; %]">
+		[%-	# really should have nexusref have another field for the
+			# url of the (first) skin that uses it, and link this in
+			# here, but ... I'm in a hurry
+		-%]
+		<td align="left">[% nexusref.$nexustid | strip_literal %]</td>
+[% FOREACH value = [ 0 1 2 3 4 5] -%]
+		<td align="center"><input type="radio" name="nexustid[% nexustid %]" value="[% value %]"
+			[%- IF story023_default.nexus.$nexustid == value; constants.markup_checked_attribute; END %] onclick="individualChange(this); return true;"></td>
+[%- END %]
+	</tr>
+[%- END -%]
+</table>
+</form>
+__seclev__
+500
+__version__
+$Id: sectionpref;ajax;default,v 1.1 2006/07/12 11:41:44 sugi Exp $


Slashdotjp-dev メーリングリストの案内
アーカイブの一覧に戻る