/
prefs_home;ajax;default
168 lines (136 loc) · 6.82 KB
/
prefs_home;ajax;default
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
__section__
default
__description__
__title__
__page__
ajax
__lang__
en_US
__name__
prefs_home
__template__
<form id ="modal_prefs" method="post">
<input type="hidden" name="formname" value="home">
<input type="hidden" name="uid" value="[% user.uid %]">
<input type="hidden" name="refreshable" value="">
[% IF tabbed == 1 %]
<div style="margin-top: 1em; text-align: center;">
<span style="font-weight: bold; text-decoration: none; font-size: 14px; color: #ccc">Homepage</span>
|
<a href="" style="font-weight: bold; text-decoration: none; font-size: 14px;" onclick="getModalPrefs('slashboxes', 'Slashboxes', 1); return false;">Slashboxes</a>
|
<a href="" style="font-weight: bold; text-decoration: none; font-size: 14px;" onclick="getModalPrefs('sectional', 'Sectional Display', 1); return false;">Sections</a>
|
<a href="" style="font-weight: bold; text-decoration: none; font-size: 14px;" onclick="getModalPrefs('authors', 'Authors', 1); return false;">Authors</a>
</div>
[% END %]
<br>
<label>Date/Time Format</label>
[%
formats = Slash.db.getDescriptions('dateformats');
Slash.createSelect('tzformat', formats, user.dfid, 1);
%]
<br>
<label>
Time Zone / Daylight Savings Time
</label>
[%
USE this_format = format('%+0.4d %s');
this_tzdescs = Slash.db.getDescriptions('tzdescription');
this_tzcodes = Slash.db.getDescriptions('tzcodes');
these_tzdescs = {};
FOREACH tz = this_tzcodes.keys;
this_num = this_tzcodes.$tz / 36;
this_num = this_num.replace('50$', '30');
these_tzdescs.$tz = this_format(this_num, this_tzdescs.$tz);
END;
this_tzcode = user.tzcode_orig || user.tzcode;
Slash.createSelect('tzcode',
these_tzdescs, this_tzcode, 1, 0, this_tzcodes.nsort
);
Slash.createSelect('dst', {
'' => 'Automatic',
'on' => 'Manual (On)',
'off' => 'Manual (Off)'
}, user.dst, 1);
%]
<br><br>
[% sd_check = '';
IF user.simpledesign;
sd_check = constants.markup_checked_attribute;
END
%]
<input type="checkbox" name="simpledesign"[% sd_check %]> <b>Simple Design</b> <a href="#" onclick="displayModalPrefHelp('modalprefhelp_simpledesign');" class="help">?</a>
<br>
<div id="modalprefhelp_simpledesign" class="modalprefhelp" style="display: none;">
Simplifies the design of [% constants.sitename %] to strip away some of the excesses of the UI.
</div>
<br>
[% lb_check = '';
IF user.lowbandwidth;
lb_check = constants.markup_checked_attribute;
END
%]
<input type="checkbox" name="lowbandwidth"[% lb_check %]> <b>Low Bandwidth</b> <a href="#" onclick="displayModalPrefHelp('modalprefhelp_lowbandwidth');" class="help">?</a>
<br>
<div id="modalprefhelp_lowbandwidth" class="modalprefhelp" style="display: none;">
Reduces the size of pages for people with slower network connections
</div>
<br>
[% i_check = '';
IF user.noicons;
i_check = constants.markup_checked_attribute;
END
%]
<input type="checkbox" name="noicons"[% i_check %]> <b>No Icons</b> <a href="#" onclick="displayModalPrefHelp('modalprefhelp_noicons');" class="help">?</a>
<br>
<div id="modalprefhelp_noicons" class="modalprefhelp" style="display: none;">
Disable topic icon images on stories.
</div>
<br>
<b>Maximum Stories</b> <input type="text" name="maxstories" size="3" value="[% user.maxstories %]"> <a href="#" onclick="displayModalPrefHelp('modalprefhelp_maxstories');" class="help">?</a>
<br>
<div id="modalprefhelp_maxstories" class="modalprefhelp" style="display: none;">
The default is 30. The main column displays 1/3rd of these at minimum, and all of today's stories at maximum.
</div>
<br>
[% w_check = '';
IF user.willing;
w_check = constants.markup_checked_attribute;
END
%]
<input type="checkbox" name="willing"[% w_check %]> <b>Willing to Moderate</b> <a href="#" onclick="displayModalPrefHelp('modalprefhelp_moderate');" class="help">?</a>
<br>
<div id="modalprefhelp_moderate" class="modalprefhelp" style="display: none;">
By default all users are willing to Moderate. Uncheck this if you aren't interested.
</div>
<br>
[% tag_check = '';
IF !user.tags_turnedoff;
tag_check = constants.markup_checked_attribute;
END
%]
<input type="checkbox" name="showtags"[%tag_check %]> <b>Show Tags</b> <a href="#" onclick="displayModalPrefHelp('modalprefhelp_showtags');" class="help">?</a>
<br>
<div id="modalprefhelp_showtags" class="modalprefhelp" style="display: none;">
Turn this off to ignore all tags.
</div>
<br>
[% osdn_navbar_check = '';
IF user.opt_osdn_navbar;
osdn_navbar_check = constants.markup_checked_attribute;
END
%]
<input type="checkbox" name="opt_osdn_navbar"[% osdn_navbar_check %]> <b>OSTG Navbar</b> <a href="#" onclick="displayModalPrefHelp('modalprefhelp_ostg');" class="help">?</a>
<br>
<div id="modalprefhelp_ostg" class="modalprefhelp" style="display: none;">
Turn this on to display the OSTG nav bar at the top of the screen.
</div>
<br>
<input type="button" value="Save" onclick="saveModalPrefs()">
</form>
__seclev__
500
__version__
$Id$