File: edit_commenter.tmpl

package info (click to toggle)
movabletype-opensource 4.2.3-1%2Blenny3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 21,268 kB
  • ctags: 15,862
  • sloc: perl: 178,892; php: 26,178; sh: 161; makefile: 82
file content (175 lines) | stat: -rw-r--r-- 9,015 bytes parent folder | download
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
169
170
171
172
173
174
175
<$mt:setvar name="position_actions_bottom" value="1"$>
<mt:setvar name="page_title" value="<__trans phrase="Commenter Details">">
<MTSetVarBlock name="system_msg">
    <mt:if name="saved_commenter">
        <mtapp:statusmsg
            id="saved-commenter"
            class="success">
            <__trans phrase="Your changes have been saved.">
        </mtapp:statusmsg>
    </mt:if>
    <mt:if name="trusted">
        <mtapp:statusmsg
            id="trusted"
            class="success">
            <__trans phrase="The commenter has been trusted.">
        </mtapp:statusmsg>
    </mt:if>
    <mt:if name="banned">
        <mtapp:statusmsg
            id="banned"
            class="success">
            <__trans phrase="The commenter has been banned.">
        </mtapp:statusmsg>
    </mt:if>
</MTSetVarBlock>
<mt:setvarblock name="related_content">
    <mtapp:widget
        id="useful-links"
        label="<__trans phrase="Useful links">">
        <ul>
            <li><a href="<mt:var name="script_url">?__mode=list_comments&amp;blog_id=<mt:var name="blog_id" escape="url">&amp;filter_key=_comments_by_user&amp;filter_val=<mt:var name="id" escape="url">"><__trans phrase="Comments from [_1]" params="<mt:var name="nickname" escape="html" escape="html">"></a></li>
        </ul>
    </mtapp:widget>
    <$mtapp:PageActions$>
</mt:setvarblock>
<mt:setvarblock name="action_buttons">
    <mt:if name="can_edit_commenters"><mt:unless name="is_me">
        <mt:if name="id">
            <mt:unless name="type_author">
            <mt:unless name="commenter_approved">
        <button
            onclick="doForMarkedInThisWindow(this.form, '<__trans phrase="commenter" escape="js">', '<__trans phrase="commenters" escape="js">', 'id', 'trust_commenter', {}, '<__trans phrase="to act upon" escape="js">')"
            type="submit"
            accesskey="t"
            title="<__trans phrase="Trust user (t)">"
            ><__trans phrase="Trust"></button>
            <mt:else>
        <button
            onclick="doForMarkedInThisWindow(this.form, '<__trans phrase="commenter" escape="js">', '<__trans phrase="commenters" escape="js">', 'id', 'itemset_action', {action_name:'untrust'}, '<__trans phrase="to act upon" escape="js">')"
            type="submit"
            accesskey="t"
            title="<__trans phrase="Untrust user (t)">"
            ><__trans phrase="Untrust"></button>
            </mt:unless>
            </mt:unless>
            <mt:unless name="commenter_banned">
        <button
            onclick="doForMarkedInThisWindow(this.form, '<__trans phrase="commenter" escape="js">', '<__trans phrase="commenters" escape="js">', 'id', 'ban_commenter', {}, '<__trans phrase="to act upon" escape="js">')"
            type="submit"
            accesskey="b"
            title="<__trans phrase="Ban user (b)">"
            ><__trans phrase="Ban"></button>
            <mt:else>
        <button
            onclick="doForMarkedInThisWindow(this.form, '<__trans phrase="commenter" escape="js">', '<__trans phrase="commenters" escape="js">', 'id', 'itemset_action', {action_name:'unban'}, '<__trans phrase="to act upon" escape="js">')"
            type="submit"
            accesskey="b"
            title="<__trans phrase="Unban user (b)">"
            ><__trans phrase="Unban"></button>
            </mt:unless>
        <mt:else>
        <button
            onclick="doForMarkedInThisWindow(this.form, '<__trans phrase="commenter" escape="js">', '<__trans phrase="commenters" escape="js">', 'id', 'trust_commenter', {}, '<__trans phrase="to act upon" escape="js">')"
            type="submit"
            accesskey="t"
            title="<__trans phrase="Trust user (t)">"
            ><__trans phrase="Trust"></button>
        <button
            onclick="doForMarkedInThisWindow(this.form, '<__trans phrase="commenter" escape="js">', '<__trans phrase="commenters" escape="js">', 'id', 'ban_commenter', {}, '<__trans phrase="to act upon" escape="js">')"
            type="submit"
            accesskey="b"
            title="<__trans phrase="Ban user (b)">"
            ><__trans phrase="Ban"></button>
            />
        </mt:if>
    </mt:unless></mt:if>
</mt:setvarblock>
<mt:include name="include/header.tmpl">

<mt:unless name="tab_commenter">
<script type="text/javascript">
/* <![CDATA[ */
var tableSelect;
function init()
{
        // setup
        tableSelect = new TC.TableSelect( "selector" );
        tableSelect.rowSelect = true;
}
TC.attachLoadEvent(init);
/* ]]> */
</script>
</mt:unless>

<form method="post" action="<mt:var name="script_url">">
    <input type="hidden" name="blog_id" value="<mt:var name="blog_id" escape="html">" />
    <input type="hidden" name="id" value="<mt:var name="id" escape="html">" />
    <input type="hidden" name="__mode" value="save" />
    <input type="hidden" name="_type" value="commenter" />
    <input type="hidden" name="action_name" value="" />
    <input type="hidden" name="itemset_action_input" value="" />
    <input type="hidden" name="return_args" value="<mt:var name="return_args" escape="html">" />
    <input type="hidden" name="magic_token" value="<mt:var name="magic_token">" />

        <mt:if name="position_actions_top">
            <mt:include name="include/actions_bar.tmpl" bar_position="top" hide_pager="1">
        </mt:if>

        <mtapp:setting
            id="name"
            label="<__trans phrase="Name">"
            hint="<__trans phrase="The Name of the commenter">"
            show_hint="0">
            <mt:var name="nickname" escape="html">
            <a title="<__trans phrase="View all comments with this name">" href="<mt:var name="script_url">?__mode=search_replace&amp;_type=comment&amp;blog_id=<mt:var name="blog_id">&amp;search_cols=name&amp;search=<mt:var name="nickname" escape="url">&amp;do_search=1"><img src="<mt:var name="static_uri">images/filter.gif" alt="" width="8" height="8" /></a>
        </mtapp:setting>
    
        <mtapp:setting
            id="identity"
            label="<__trans phrase="Identity">"
            hint="<__trans phrase="The Identity of the commenter">"
            show_hint="0">
            <mt:if name="url"><a href="<mt:var name="url" escape="html">"><mt:var name="name" escape="html"> &raquo;</a><mt:else><mt:var name="name" escape="html"></mt:if>
        </mtapp:setting>
    
        <mtapp:setting
            id="email"
            label="<__trans phrase="Email">"
            hint="<__trans phrase="The Email of the commenter">"
            show_hint="0">
            <mt:if name="is_email_hidden"><__trans phrase="Withheld"><mt:else><mt:var name="email" escape="html"></mt:if>
            <mt:if name="is_email_hidden">&nbsp;<mt:else><a title="<__trans phrase="View all comments with this email address">" href="<mt:var name="script_url">?__mode=search_replace&amp;_type=comment&amp;blog_id=<mt:var name="blog_id">&amp;search_cols=email&amp;search=<mt:var name="email" escape="url">&amp;do_search=1"><img src="<mt:var name="static_uri">images/filter.gif" alt="" width="8" height="8" /></a></mt:if>        </mtapp:setting>
    
        <mtapp:setting
            id="url"
            label="<__trans phrase="URL">"
            hint="<__trans phrase="The URL of the commenter">"
            show_hint="0">
            <mt:if name="url"><a href="<mt:var name="url" escape="html">"><mt:var name="url" escape="html"> &raquo;</a><mt:else>&nbsp;</mt:if>
            <mt:if name="url"><a title="<__trans phrase="View all comments with this URL address">" href="<mt:var name="script_url">?__mode=search_replace&amp;_type=comment&amp;blog_id=<mt:var name="blog_id">&amp;search_cols=url&amp;search=<mt:var name="url" escape="url">&amp;do_search=1"><img src="<mt:var name="static_uri">images/filter.gif" alt="" width="8" height="8" /></a><mt:else>&nbsp;</mt:if>
        </mtapp:setting>
    
        <mtapp:setting
            id="status"
            label="<__trans phrase="Status">"
            hint="<__trans phrase="The trusted status of the commenter">"
            show_hint="0">
            <mt:if name="commenter_approved">
            <span class="icon-left-wide icon-trusted"><__trans phrase="Trusted"></span>
            <mt:else>
                <mt:if name="commenter_banned">
              <span class="icon-left-wide icon-banned"><__trans phrase="Banned"></span>
                <mt:else>
            <span class="icon-left-wide icon-authenticated"><__trans phrase="Authenticated"></span>
                </mt:if>
            </mt:if>
            <a title="<__trans phrase="View all commenters">" href="<mt:var name="script_url">?__mode=list_member&amp;blog_id=<mt:var name="blog_id">&amp;filter_key=commenter"><img src="<mt:var name="static_uri">images/filter.gif" alt="" width="8" height="8" /></a>
        </mtapp:setting>
    
        <mt:if name="position_actions_bottom">
            <mt:include name="include/actions_bar.tmpl" bar_position="bottom" hide_pager="1">
        </mt:if>
</form>

<mt:include name="include/footer.tmpl">