/[drupal]/contributions/modules/abuse/abuse-report.tpl.php
ViewVC logotype

Diff of /contributions/modules/abuse/abuse-report.tpl.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.2.2 by btmash, Wed May 14 19:13:19 2008 UTC revision 1.1.2.3 by btmash, Fri Jul 18 15:52:50 2008 UTC
# Line 1  Line 1 
1    <?php
2    // $Id$
3    
4    /**
5     * @file
6     * Default theme implementation to moderate one piece of content.
7     *
8     *  * Available variables:
9     * - $object: The content that requires moderation
10     * - $account: Account of user that created content
11     * - $offences: Total offences by account
12     * - $warnings: Total email warnings sent to account
13     * - $moderate: Moderation form
14     *
15     * @see template_preprocess()
16     * @see template_preprocess_abuse_report()
17     */
18    ?>
19  <li class="abuse-report corners">  <li class="abuse-report corners">
20      <div class="summary">
21    <h2 class="title">      <h2><?php print l($object->title, $object->path['URL'], array('html' => TRUE, 'query' => $object->path['QUERY'], 'fragment' => $object->path['BREADCRUMB'])); ?></h2>
22      <?php print l($object->title, $object->path['URL'], array('query' => $object->path['QUERY'], 'fragment' => $object->path['BREADCRUMB'])); ?>      <dl>
23    </h2>        <dt><?php print t('Type:'); ?></dt>
24          <dd><?php print $object->type === 'comment' ? t('Comment') : t('Movie'); ?></dd>
25    <?php if(!empty($object->description)): ?>        <dt><?php print t('Status:'); ?></dt>
26      <p class="description">        <dd><?php print isset($object->abuse_status_string) ? $object->abuse_status_string : 'N/A'; ?></dd>
27        <?php print $object->description; ?>        <?php if (variable_get('abuse_assigned_moderators', FALSE)): ?>
28      </p>          <dt><?php print t('Assigned To:'); ?></dt>
29    <?php endif; ?>          <dd><?php print $object->abuse_assigned_to_name; ?></dd>
30          <?php endif; ?>
31    <!-- Info -->      </dl>
32    <dl class="info">      <?php if (!empty($object->description)): ?>
33      <dt><?php print t('By:') ?></dt>        <p><?php print $object->description; ?></p>
     <dd>  
       <?php print theme('username', $account);?>  
       <?php print t('( %offence offences | %warning warnings )', array('%offence' => $offences, '%warning' => $warnings)); ?>  
       <?php print l(t("history"), 'admin/abuse/status/user/'. $account->uid); ?>  
     </dd>  
     <dt><?php print t('Type:'); ?></dt>  
     <dd><?php print $object->type; ?></dd>  
     <dt><?php print t('Status:'); ?></dt>  
     <dd><?php print $object->abuse_status_string; ?></dd>  
     <?php if(variable_get('abuse_assigned_moderators', FALSE)): ?>  
       <dt><?php print t('Assigned To:'); ?></dt>  
       <dd><?php print $object->abuse_assigned_to_name; ?></dd>  
34      <?php endif; ?>      <?php endif; ?>
35    </dl>      <h4><?php print t('By: !username', array('!username' => theme('username', $account))); ?></h4>
36        <dl>
37    <!-- Actions -->        <dt><?php print t('Email'); ?>:</dt>
38    <p class="actions"><?php print $moderate; ?></p>        <dd><?php print $account->mail; ?></dd>
39          <dt><?php print t('Age'); ?>:</dt>
40    <div class="clear-block">        <dd><?php print theme('age', $account->uid); ?></dd>
41          <dt><?php print t('Offences'); ?>:</dt>
42      <!-- Left Column -->        <dd><?php print $offences; ?></dd>
43          <dt><?php print t('Warnings'); ?>:</dt>
44          <dd><?php print $warnings; ?></dd>
45        </dl>
46        <ul class="links">
47          <li><?php print l(t('Edit Account'), 'user/'. $account->uid .'/edit'); ?></li>
48          <li><?php print l(t('View Account History'), 'admin/abuse/status/user/'. $account->uid); ?></li>
49        </ul>
50      </div>
51      <div class="actions">
52        <?php print $moderate; ?>
53      </div>
54      <div class="details clear-block">
55      <div class="column column-first">      <div class="column column-first">
56        <?php print $object->content; ?>&nbsp;        <?php print $object->content; ?>&nbsp;
57      </div>      </div>
   
     <!-- Right Column -->  
58      <div class="column column-last">      <div class="column column-last">
59    
60        <dl class="history">        <dl class="history">
61          <dt><?php print t('History'); ?></dt>          <dt><?php print t('History'); ?></dt>
62          <?php if(count($object->history)): ?>          <?php if (count($object->history)): ?>
63            <?php foreach($object->history as $log): ?>            <?php foreach ($object->history as $log): ?>
64            <dd>            <dd>
65              <strong><?php print $log->flagger; ?>:</strong>              <strong><?php print $log->flagger; ?>:</strong>
66              <?php print t('Changed status to %status', array('%status' => $log->readable_status)); ?>              <?php print t('Changed status to %status', array('%status' => $log->readable_status)); ?>
67            </dd>            </dd>
68            <?php endforeach; ?>            <?php endforeach; ?>
# Line 54  Line 70 
70            <dd><?php print t('None');?></dd>            <dd><?php print t('None');?></dd>
71          <?php endif; ?>          <?php endif; ?>
72        </dl>        </dl>
73    
74        <dl class="warnings">        <dl class="warnings">
75          <dt><?php print t('Warnings'); ?></dt>          <dt><?php print t('Warnings'); ?></dt>
76          <?php if(count($object->warnings)): ?>          <?php if (count($object->warnings)): ?>
77            <?php foreach($object->warnings as $warning): ?>            <?php foreach ($object->warnings as $warning): ?>
78            <dd>            <dd>
79              <strong><?php print $warning->name; ?>:</strong>              <strong><?php print $warning->name; ?>:</strong>
80              <?php print t('sent warning on %date', array('%date' => $warning->date)); ?>              <?php print t('sent warning on %date', array('%date' => $warning->date)); ?>
81            </dd>            </dd>
82            <?php endforeach; ?>            <?php endforeach; ?>
# Line 68  Line 84 
84            <dd><?php print t('None');?></dd>            <dd><?php print t('None');?></dd>
85          <?php endif; ?>          <?php endif; ?>
86        </dl>        </dl>
87    
88        <dl class="flags">        <dl class="flags">
89          <dt><?php print t('Flags'); ?></dt>          <dt><?php print t('Flags'); ?></dt>
90          <?php if(count($object->reports)): ?>          <?php if (count($object->reports)): ?>
91            <?php foreach($object->reports as $report): ?>            <?php foreach ($object->reports as $report): ?>
92            <dd>            <dd>
93                <strong><?php print theme("username", $report) . ' '. format_date($report->created); ?>:</strong>                <strong><?php print strcasecmp($report->name, t('Watchlist')) == 0 ? t('Watchlist') : theme("username", $report); ?></strong> &mdash;
94                  <?php print format_date($report->created); ?>:<br />
95                <?php print check_plain(urldecode($report->body)); ?>                <?php print check_plain(urldecode($report->body)); ?>
96              </dd>              </dd>
97            <?php endforeach; ?>            <?php endforeach; ?>
# Line 82  Line 99 
99            <dd><?php print t('None');?></dd>            <dd><?php print t('None');?></dd>
100          <?php endif; ?>          <?php endif; ?>
101        </dl>        </dl>
102    
103      </div>      </div>
104    </div>    </div>
   
105  </li>  </li>

Legend:
Removed from v.1.1.2.2  
changed lines
  Added in v.1.1.2.3

  ViewVC Help
Powered by ViewVC 1.1.3