<mt:setvarblock name="action_buttons">
  <mt:unless name="filter_spam">
    <mt:if name="state_editable">
<button
   accesskey="p"
   title="<__trans phrase="Publish selected [_1] (p)" params="<$mt:var name="object_label_plural"$>">"
   class="button mt-pubish-trachbacks">
  <__trans phrase="Publish">
</button>
    </mt:if>
  </mt:unless>
<button
   accesskey="x"
   title="<__trans phrase="Delete selected [_1] (x)" params="<$mt:var name="object_label_plural"$>">"
   class="button mt-delete-trachbacks">
  <__trans phrase="Delete">
</button>
</mt:setvarblock>

<mtapp:listing>
  <mt:if name="__first__">
    <mt:setvarblock name="table_header">
    <tr>
      <th class="col head cb"><input type="checkbox" name="id-head" value="all" class="select" /></th>
    <mt:unless name="tab_junk">
      <th class="col head status 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 class="col head from primary"><span class="col-label"><__trans phrase="From"></span></th>
    <mt:unless name="is_blog">
      <th class="col head blog"><span class="col-label"><__trans phrase="Website/Blog"></span></th>
    </mt:unless>
      <th class="col head target"><span class="col-label"><__trans phrase="Target"></span></th>
      <th class="col head datetime"><span class="col-label"><__trans phrase="Date"></span></th>
    <mt:if name="show_ip_info">
      <th class="col head ip"><span class="col-label"><__trans phrase="IP address"></span></th>
    </mt:if>
    </tr>
    </mt:setvarblock>
  <thead>
    <mt:var name="table_header">
  </thead>
  <tfoot>
    <mt:var name="table_header">
  </tfoot>
  <tbody>
  </mt:if>
    <tr class="<mt:if name="__odd__">odd<mt:else>even</mt:if>">
      <td class="col 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="col si status-<mt:if name="visible">publish<mt:elseif name="junk_status">pending</mt:if>">
        <img src="<mt:var name="static_uri">images/spacer.gif" alt="" class="status-icon" width="9" height="9" />
      </td>
  </mt:unless>
      <td class="col excerpt" colspan="<mt:unless name="is_blog"><mt:if name="show_ip_info">5<mt:else>4</mt:if><mt:else><mt:if name="show_ip_info">4<mt:else>3</mt:if></mt:unless>">
  <mt:if name="excerpt">
    <mt:var name="excerpt" escape="html">
    <mt:if name="has_edit_access">
        <span class="actions-link">
          <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>
        </span>
    </mt:if>
  <mt:else>
        &nbsp;
  </mt:if>
      </td>
    </tr>
    <tr class="<mt:if name="__odd__">odd<mt:else>even</mt:if> slave">
      <td class="col">&nbsp;</td>
  <mt:unless name="tab_junk">
      <td class="col">&nbsp;</td>
  </mt:unless>
      <td class="col from"><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:unless name="is_blog">
      <td class="col blog"><a href="<mt:var name="script_url">?__mode=list&amp;_type=ping&amp;blog_id=<mt:var name="weblog_id">"><mt:var name="weblog_name" escape="html"></td>
  </mt:unless>
      <td class="col target"><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 class="col datetime"><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 class="col ip"><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 name="__last__">
    </tbody>
  </mt:if>
</mtapp:listing>

<mt:setvarblock name="jq_js_include" append="1">
    jQuery('button.mt-pubish-trachbacks').mtPublishItems({
        id: '<$mt:var name="object_type"$>-listing-form',
        singular: '<__trans phrase="TrackBack" escape="js">',
        plural: '<__trans phrase="TrackBacks" escape="js">',
        mode: 'approve_item',
        phrase: '<__trans phrase="to republish" escape="js">'
    });
    jQuery('button.mt-delete-trachbacks').mtDeleteItems({
        id: '<$mt:var name="object_type"$>-listing-form',
        singular: '<__trans phrase="TrackBack" escape="js">',
        plural: '<__trans phrase="TrackBacks" escape="js">',
        args: {<mt:if name="search">'search': '<mt:var name="search" escape="js">'</mt:if>}
    });
    jQuery('button.mt-<mt:var name="form_id">-action').mtDoPluginAction({
        id: '<mt:var name="form_id">',
        plural: '<mt:if name="object_label_plural"><mt:var name="object_label_plural" escape="js"></mt:if>',
        args: {<mt:if name="search">'search': '<mt:var name="search" escape="js">'</mt:if>},
        phrase: '<__trans phrase="to act upon" escape="js">'
    });
</mt:setvarblock>
