__section__
default
__description__
__title__

__page__
ajax
__lang__
en_US
__name__
prefs_d2
__template__

                [% IF tabbed == 1 %]
                <div style="margin-top: 1em; text-align: center;">
                &nbsp;
                <a href="" style="font-weight: bold; text-decoration: none; font-size: 14px;" onclick="getModalPrefs('d2_posting', 'Discussion 2', 1); return false;">Posting</a>
                &nbsp;|&nbsp;
                <span style="font-weight: bold; text-decoration: none; font-size: 14px; color: #ccc">Viewing</span>
                </div>
                [% END %]

<form id ="modal_prefs" method="post">

<input type="hidden" name="formname" value="d2_display">
<input type="hidden" name="uid" value="[% user.uid %]">
<input type="hidden" name="refreshable" value="">

<table width="100%">
        <tr>
        <td valign="middle">
                <input id="discussion2" type="checkbox" name="discussion2"[% constants.markup_checked_attribute IF user.discussion2 == 'slashdot'  %] onclick="void(document.forms['modal_prefs'].refreshable.value=1);">&nbsp;<label for="discussion2"><b>Enable Dynamic Discussions</b></label>&nbsp;<a href="#" onclick="displayModalPrefHelp('modalprefhelp_discussions');" class="help">?</a>
                <br>
                <div id="modalprefhelp_discussions" class="modalprefhelp" style="display: none;">
                        Toggle between Discussion 2 and the classic discussion system.
                </div>

                <br>

                [% IF user.discussion2 && user.discussion2 == "slashdot" %]
                	[% # i know the logic here is backward, but it still makes the most sense to me! -- pudge %]
                        <input type="checkbox" id="d2_keybindings_switch" name="d2_keybindings_switch"[% constants.markup_checked_attribute IF !user.d2_keybindings_switch %] onclick="D2.d2_keybindings_off($('#d2_keybindings_switch').attr('checked') ? 0 : 1)">&nbsp;<label for="d2_keybindings_switch"><b>Enable Dynamic Discussion Keybindings</b></label>&nbsp;<a href="#" onclick="displayModalPrefHelp('modalprefhelp_discussion_keys');" class="help">?</a>
                        <br>
                        <div id="modalprefhelp_discussion_keys" class="modalprefhelp" style="display: none;">
                                Toggle to enable <a href="http://slashdot.org/faq/com-mod.shtml#cm128">Discussion 2 keybindings</a>.
                        </div>
                        <br>

                        <input type="checkbox" id="d2_reverse_switch" name="d2_reverse_switch"[% constants.markup_checked_attribute IF user.d2_reverse_switch %] onclick="D2.d2_reverse_shift($('#d2_reverse_switch').attr('checked') ? 1 : 0)">&nbsp;<label for="d2_reverse_switch"><b>Collapse Comments After Reading</b></label>&nbsp;<a href="#" onclick="displayModalPrefHelp('modalprefhelp_discussion_shift_key');" class="help">?</a>
                        <br>
                        <div id="modalprefhelp_discussion_shift_key" class="modalprefhelp" style="display: none;">
                                Collapse a comment when you navigate away from it when using the <a href="http://slashdot.org/faq/com-mod.shtml#cm128">Discussion 2 keybindings</a>.
                        </div>
                        <br>

                        <div>
                        Retrieve [% comment_q_name = (user.is_subscriber || user.is_admin) ? 'd2_comment_q_all' : 'd2_comment_q';
                           comment_q = Slash.db.getDescriptions(comment_q_name);
                           Slash.createSelect('d2_comment_q', comment_q, user.d2_comment_q, 1) %] Comments&nbsp;<a href="#" onclick="displayModalPrefHelp('modalprefhelp_sortorder');" class="help">?</a>

                        <br>

                        Get [% comment_order = Slash.db.getDescriptions('d2_comment_order');
                           comment_order_def = user.d2_comment_order || 0; # score
                           Slash.createSelect('d2_comment_order', comment_order, comment_order_def, 1) %] Comments First
                        </div>
                [% END %]

                <div id="modalprefhelp_sortorder" class="modalprefhelp" style="display: none;">
                        Set the number of comments you want to retrieve at one time, and their sort order.
                </div>

                [% s_check = '';
                IF user.nosigs;
                        s_check = constants.markup_checked_attribute;
                END %]

                <br>

                <input type="checkbox" id="nosigs" name="nosigs"[% s_check %]>&nbsp;<label for="nosigs"><b>Disable Sigs</b></label>&nbsp;<a href="#" onclick="displayModalPrefHelp('modalprefhelp_sigs');" class="help">?</a>
                <br>
                <div id="modalprefhelp_sigs" class="modalprefhelp" style="display: none;">
                        Strip sig quotes from comments.
                </div>

                <br>

                [% n_check = '';
                IF user.noscores;
                        n_check = constants.markup_checked_attribute;
                END %]
                <input type="checkbox" id="noscores" name="noscores"[% n_check %]>&nbsp;<label for="noscores"><b>Do Not Display Scores</b></label>&nbsp;<a href="#" onclick="displayModalPrefHelp('modalprefhelp_scores');" class="help">?</a>
                <br>
                <div id="modalprefhelp_scores" class="modalprefhelp" style="display: none;">
                        Hide scores. They still <b>apply</b>, but you just don't see them.
                </div>

                <br>

                [% UNLESS user.domaintags.defined; user.domaintags = 2; END %]
                [% domaintags.${user.domaintags} = constants.markup_checked_attribute -%]

                <b>Display Link Domains?</b>&nbsp;<a href="#" onclick="displayModalPrefHelp('modalprefhelp_domains');" class="help">?</a>
                <br>
                <div id="modalprefhelp_domains" class="modalprefhelp" style="display: none;">
                        Show the actual domain of any link in brackets.
                </div>

                <div>
                <label><input type="radio" name="domaintags" value="0"[% domaintags.0 %]> Never show link domains</label><br>
                <label><input type="radio" name="domaintags" value="1"[% domaintags.1 %]> Show the links domain only in recommended situations</label><br>
                <label><input type="radio" name="domaintags" value="2"[% domaintags.2 %]> Always show link domains</label>
                </div>

        </td>
        </tr>
</table>
<br>
<input type="button" value="Save" onclick="saveModalPrefs()">
</form>
__seclev__
500
__version__
$Id$
