示例#1
0
						<a href="<?php 
        echo JRoute::_('index.php?option=com_users&task=user.edit&id=' . (int) $item->author_id);
        ?>
"
							title="<?php 
        echo JText::_('COM_MONITOR_EDIT_USER');
        ?>
">
							<?php 
        echo $this->escape($item->author_name);
        ?>
</a>
					</td>
					<td class="hidden-phone">
						<?php 
        echo $this->escape(MonitorHelper::cutStr($item->text, 50));
        ?>
					</td>
					<td>
						<?php 
        echo $this->escape($item->created);
        ?>
					</td>
					<td>
						<?php 
        if ($item->status_id) {
            echo $this->escape($item->status_name);
        } else {
            echo "<em>" . JText::_('COM_MONITOR_STATUS_NO_CHANGE') . "</em>";
        }
        ?>
	</tr>
	</thead>
	<tbody>
	<?php 
    foreach ($displayData['comments'] as $comment) {
        ?>
		<tr>
			<td>
				<?php 
        $link = 'index.php?option=com_monitor&view=issue&id=' . $comment->issue_id . '#comment-' . $comment->id;
        echo JHtml::_('link', JRoute::_($link), $comment->issue_title);
        ?>
			</td>
			<td>
				<?php 
        echo $this->escape(MonitorHelper::cutStr($comment->text, $params->get('comment_text_length', 100)));
        ?>
			</td>
			<td>
				<?php 
        echo JHtml::_('date', $comment->created, $dateFormat);
        ?>
			</td>
			<td>
				<?php 
        $view = $params->get('project_link_to', '');
        if ($view === 'project') {
            echo JHtml::_('link', JRoute::_('index.php?option=com_monitor&view=project&id=' . $comment->project_id), $comment->project_name);
        } elseif ($view === 'issues') {
            echo JHtml::_('link', JRoute::_('index.php?option=com_monitor&view=issues&project_id=' . $comment->project_id), $comment->project_name);
        } else {