}
        if ($revision->canDelete(logged_user())) {
            $options[] = '<a href="' . $revision->getDeleteUrl() . '">' . lang('delete') . '</a>';
        }
        if ($revision->canDownload(logged_user())) {
            $options[] = '<a href="' . $revision->getDownloadUrl() . '" class="downloadLink">' . lang('download') . ' <span>(' . format_filesize($revision->getFileSize()) . ')</span></a>';
        }
        if (count($options)) {
            ?>
    <div class="revisionOptions"><?php 
            echo implode(' | ', $options);
            ?>
</div>
<?php 
        }
        // if
        ?>
  </div>
<?php 
    }
    // foreach
    ?>
</div>
<?php 
}
// if
?>

<?php 
echo render_object_comments($file, $file->getDetailsUrl());
Example #2
0
    ?>
</a>
<?php 
} else {
    ?>
    <span><?php 
    echo lang('comments');
    ?>
:</span> <?php 
    echo $message->countComments();
}
// if
?>
  </div>
    <?php 
echo render_object_tags($message);
?>
  </div><!-- content -->
<?php 
$extra_options = array();
if ($message->canDelete(logged_user())) {
    $extra_options[] = '<a href="' . $message->getMoveUrl() . '">' . lang('move') . '</a>';
}
// if
echo render_object_options($message, $extra_options);
?>
</div>
<!-- Comments -->
<?php 
echo render_object_comments($message, $message->getViewUrl());
Example #3
0
<?php

set_page_title($task_list->getName());
project_tabbed_navigation('tasks');
project_crumbs(array(array(lang('tasks'), get_url('task')), array($task_list->getName())));
if (ProjectTaskList::canAdd(logged_user(), active_project())) {
    add_page_action(lang('add task list'), get_url('task', 'add_list'));
}
// if
$this->assign('on_list_page', true);
$this->includeTemplate(get_template_path('task_list', 'task'));
echo render_object_comments($task_list, $task_list->getViewUrl());
Example #4
0
?>
	  <?php 
if ($task->getAssignedTo()) {
    ?>
	    <div id="taskAssigned"><?php 
    echo lang('milestone assigned to', clean($task->getAssignedTo()->getObjectName()));
    ?>
</div>
	  <?php 
}
// if
?>
	  <?php 
if (count($options)) {
    ?>
        <div id="taskOptions"><?php 
    echo implode(' | ', $options);
    ?>
</div>
	   <?php 
}
// if
?>
    </div>
  </div>
  <div class="clear"></div>
</div>

<?php 
echo render_object_comments($task, $task->getViewUrl());
Example #5
0
if ($object instanceof ContentDataObject) {
    echo render_co_view_member_path($object);
}
if ($object instanceof ApplicationDataObject) {
    echo render_custom_properties($object);
}
$logged_user_pgs = logged_user()->getPermissionGroupIds();
if ($object instanceof ContentDataObject && $object->allowsTimeslots() && can_access_pgids($logged_user_pgs, $object->getMembers(), Timeslots::instance()->getObjectTypeId(), ACCESS_LEVEL_READ)) {
    echo render_object_timeslots($object, $object->getViewUrl());
}
$isUser = $object instanceof Contact && $object->isUser();
if ($object instanceof ContentDataObject && $object->canView(logged_user()) || $isUser && (logged_user()->getId() == get_id() || logged_user()->isAdministrator())) {
    //echo render_object_latest_activity($object); //TODO SE rompe
}
if (!$isUser && $object instanceof ContentDataObject && $object->isCommentable()) {
    echo render_object_comments($object, $object->getViewUrl());
}
?>
			</td>
		</tr>
		<tr>
			<td class="coViewBottomLeft"></td>
			<td class="coViewBottom" colspan=2></td>
			<td class="coViewBottomRight" style="width:12px">&nbsp;</td>
		</tr>
	</table>
</td>
<td style="width:250px; padding-left:10px">
<?php 
tpl_assign('genid', $genid);
$this->includeTemplate(get_template_path('actions', 'co'));
    ?>
  <?php 
    echo submit_button($ticket->isNew() ? lang('add ticket') : lang('save'));
}
// if
?>
</form>
<br />
<div>
  <?php 
echo render_object_files($ticket, $ticket->canEdit(logged_user()));
?>
</div>

<div id="messageComments"><?php 
echo render_object_comments($ticket, $ticket->getViewUrl());
?>
</div>

<?php 
if (isset($changes) && is_array($changes) && count($changes)) {
    ?>
<div id="changelog" class="block">
  <h2 class="header"><?php 
    echo lang('history');
    ?>
</h2>
  <table class="applicationLogs content">
    <tr>
      <th><?php 
    echo lang('field');