File: ping_table.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 (117 lines) | stat: -rw-r--r-- 7,807 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
<mt:setvarblock name="action_buttons">
    <mt:unless name="filter_spam">
        <mt:if name="state_editable"><a href="javascript:void(0)"
            onclick="doForMarkedInThisWindow(getByID('<$mt:var name="object_type"$>-listing-form'), '<__trans phrase="TrackBack" escape="js">', '<__trans phrase="TrackBacks" escape="js">', 'id', 'approve_item', {}, '<__trans phrase="to publish" escape="js">'); return false;"
            accesskey="p"
            title="<__trans phrase="Publish selected [_1] (p)" params="<$mt:var name="object_label_plural"$>">"
            ><__trans phrase="Publish"></a></mt:if>
    </mt:unless>
        <a href="javascript:void(0)"
            onclick="doRemoveItems(getByID('<$mt:var name="object_type"$>-listing-form'), '<__trans phrase="TrackBack" escape="js">', '<__trans phrase="TrackBacks" escape="js">'); return false;"
            accesskey="x"
            title="<__trans phrase="Delete selected [_1] (x)" params="<$mt:var name="object_label_plural"$>">"
            ><__trans phrase="Delete"></a>
    <mt:unless name="filter_spam">
        <mt:if name="state_editable"><a href="javascript:void(0)"
            onclick="doItemsAreJunk(getByID('<$mt:var name="object_type"$>-listing-form'), '<__trans phrase="TrackBack" escape="js">', '<__trans phrase="TrackBacks" escape="js">'); return false;"
            accesskey="j"
            title="<__trans phrase="Report selected [_1] as Spam (j)" params="<$mt:var name="object_label_plural"$>">"
            ><__trans phrase="Spam"></a></mt:if>
    <mt:else>
        <mt:if name="state_editable"><a href="javascript:void(0)"
            onclick="doItemsAreNotJunk(getByID('<$mt:var name="object_type"$>-listing-form'), '<__trans phrase="TrackBack" escape="js">', '<__trans phrase="TrackBacks" escape="js">'); return false;"
            accesskey="j"
            title="<__trans phrase="Report selected [_1] as Not Spam and Publish (j)" params="<$mt:var name="object_label_plural"$>">"
            ><__trans phrase="Not Spam"></a></mt:if>
        <mt:if name="can_empty_junk"><a href="javascript:void(0)" mt:command="submit" mt:mode="empty_junk"
            mt:confirm-msg="<__trans phrase="Are you sure you want to remove all TrackBacks reported as spam?">"
            title="<__trans phrase="Deletes all [_1] reported as Spam" params="<$mt:var name="object_label_plural"$>">"
            ><__trans phrase="Empty"></a></mt:if>
    </mt:unless>
    <mt:if name="is_ip_filter">
        <a href="javascript:void(0)"
            onclick="doBanIP('<mt:var name="filter_val" escape="js">'); return false;"
            ><__trans phrase="Ban This IP"></a>
    </mt:if>
</mt:setvarblock>
<mtapp:listing>
    <mt:if __first__>
        <thead>
            <tr>
                <th class="cb"><input type="checkbox" name="id-head" value="all" class="select" /></th>
        <mt:unless name="tab_junk">
                <th id="pt-status" class="si"><img src="<mt:var name="static_uri">images/status_icons/invert-flag.gif" alt="<__trans phrase="Status">" title="<__trans phrase="Status">" width="9" height="9" /></th>
        </mt:unless>
                <th id="pt-excerpt"><__trans phrase="Excerpt"></th>
                <th id="pt-from"><__trans phrase="From"></th>
        <mt:if name="system_overview_nav">
                <th id="pt-weblog"><__trans phrase="Blog"></th>
        </mt:if>
                <th id="pt-target"><__trans phrase="Target"></th>
                <th id="pt-date"><__trans phrase="Date"></th>
        <mt:if name="show_ip_info">
                <th id="pt-ip"><__trans phrase="IP"></th>
        </mt:if>
            </tr>
        </thead>
        <tbody>
    </mt:if>
            <tr class="<mt:if name="__odd__">odd<mt:else>even</mt:if>">
                <td class="cb">
        <mt:if name="has_edit_access">
                    <input type="checkbox" name="id" value="<mt:var name="id">" class="select" />
        <mt:else>
                    &nbsp;
        </mt:if>
                </td>
        <mt:unless name="tab_junk">
                <td class="si status-<mt:if name="visible">publish<mt:else>pending</mt:if>">
            <mt:if name="visible">
                    <a href="<mt:var name="script_url">?__mode=list_pings&amp;blog_id=<mt:var name="blog_id">&amp;filter=status&amp;filter_val=approved" title="<__trans phrase="Only show published TrackBacks">"><img src="<mt:var name="static_uri">images/spacer.gif" alt="<__trans phrase="Published">" width="9" height="9" /></a>
            <mt:else>
                    <a href="<mt:var name="script_url">?__mode=list_pings&amp;blog_id=<mt:var name="blog_id">&amp;filter=status&amp;filter_val=pending" title="<__trans phrase="Only show pending TrackBacks">"><img src="<mt:var name="static_uri">images/spacer.gif" alt="<__trans phrase="Pending">" width="9" height="9" /></a>
            </mt:if>
                </td>
        </mt:unless>
                <td<mt:if name="view_expanded"> colspan="<mt:if name="system_overview_nav"><mt:if name="show_ip_info">6<mt:else>5</mt:if><mt:else><mt:if name="show_ip_info">5<mt:else>4</mt:if></mt:if>"</mt:if>>
        <mt:if name="excerpt">
            <mt:if name="has_edit_access">
                    <a href="<mt:var name="script_url">?__mode=view&amp;_type=ping&amp;id=<mt:var name="id">&amp;blog_id=<mt:var name="blog_id">" title="<__trans phrase="Edit this TrackBack">"><mt:var name="excerpt" escape="html"></a>
            <mt:else>
            <mt:var name="excerpt" escape="html">
            </mt:if>
        <mt:else>
                    &nbsp;
        </mt:if>
                </td>
        <mt:if name="view_expanded">
            </tr>
            <tr class="<mt:if name="__odd__">odd<mt:else>even</mt:if> slave">
                <td>&nbsp;</td>
            <mt:unless name="tab_junk">
                <td>&nbsp;</td>
            </mt:unless>
                <td>
            <mt:if name="has_edit_access">
                    <a href="<mt:var name="script_url">?__mode=view&amp;_type=ping&amp;id=<mt:var name="id">&amp;blog_id=<mt:var name="blog_id">" title="<__trans phrase="Edit this TrackBack">"><__trans phrase="Edit"></a>
            <mt:else>
                    &nbsp;
            </mt:if>
                </td></td>
        </mt:if>
                <td><mt:var name="blog_name" escape="html">: <a href="<mt:var name="source_url" escape="html">" title="<__trans phrase="Go to the source entry of this TrackBack">"><mt:var name="title" escape="html"></a> &#187;</td>
        <mt:if name="system_overview_nav">
                <td><a href="<mt:var name="script_url">?__mode=list_pings&amp;blog_id=<mt:var name="weblog_id">"><mt:var name="weblog_name" escape="html"></td>
        </mt:if>
                <td><a href="<mt:var name="target_link" escape="html">" title="<__trans phrase="View the [_1] for this TrackBack" params="<mt:var name="target_type">">"><mt:var name="target_title" escape="html"></a></td>
                <td><span title="<mt:var name="created_on_time_formatted">"><mt:if name="created_on_relative"><mt:if name="dates_relative"><mt:var name="created_on_relative"><mt:else><mt:var name="created_on_formatted"></mt:if><mt:else><mt:var name="created_on_formatted"></mt:if></span></td>
        <mt:if name="show_ip_info">
                <td>
                    <a href="<mt:var name="script_url">?__mode=search_replace&amp;_type=ping<mt:if name="blog_id">&amp;blog_id=<mt:var name="blog_id"></mt:if>&amp;is_limited=1&amp;search_cols=ip&amp;search=<mt:var name="ip" escape="url"><mt:if name="tab_junk">&amp;is_junk=1</mt:if>&amp;do_search=1" title="<__trans phrase="Search for all comments from this IP address">"><mt:var name="ip" escape="html"></a>
                </td>
        </mt:if>
            </tr>
    <mt:if __last__>
        </tbody>
    </mt:if>
</mtapp:listing>