Exemplo n.º 1
0
<?php

set_page_title(lang('settings'));
project_tabbed_navigation('settings');
project_crumbs(lang('settings'));
?>
<div id="configuration">
<?php 
if (logged_user()->isAdministrator() || active_project()->canEdit(logged_user())) {
    ?>
  <h2><a href="<?php 
    echo $project->getEditUrl();
    ?>
"><?php 
    echo lang('edit project');
    ?>
</a></h2>
<?php 
}
// if
if (logged_user()->isAdministrator() || active_project()->canChangePermissions(logged_user())) {
    ?>
  <h2><a href="<?php 
    echo get_url('project_settings', 'users');
    ?>
"><?php 
    echo lang('users');
    ?>
</a></h2>
<?php 
}
Exemplo n.º 2
0
<?php

trace(__FILE__, "set_page_title(lang('overview')");
set_page_title(lang('overview'));
trace(__FILE__, "project_crumbs(lang('overview'))");
project_crumbs(lang('overview'));
add_stylesheet_to_page('project/project_log.css');
trace(__FILE__, 'stylesheet added');
$this->includeTemplate(get_template_path('project/pageactions'));
if (active_project()->getParent()) {
    ?>
  <div class="block">
  <div class="header parent">
    <?php 
    echo lang('parent project');
    ?>
: <a href="<?php 
    echo active_project()->getParent()->getOverviewUrl();
    ?>
"><?php 
    echo clean(active_project()->getParent()->getName());
    ?>
</a>
 </div>
 </div>
<?php 
}
// if
if (trim(active_project()->getDescription()) && active_project()->getShowDescriptionInOverview()) {
    ?>
<div id="project">
Exemplo n.º 3
0
<?php

set_page_title($file->getObjectName());
project_tabbed_navigation(PROJECT_TAB_FILES);
$files_crumbs = array(0 => array(lang('files'), get_url('files')));
// array
if ($folder instanceof ProjectFolder) {
    $files_crumbs[] = array($folder->getName(), $folder->getBrowseUrl());
}
// if
$files_crumbs[] = lang('file details');
project_crumbs($files_crumbs);
if (ProjectFile::canAdd(logged_user(), active_project())) {
    if ($folder instanceof ProjectFolder) {
        add_page_action(lang('add file'), $folder->getAddFileUrl());
    } else {
        add_page_action(lang('add file'), get_url('files', 'add_file'));
    }
    // if
}
// if
if (ProjectFolder::canAdd(logged_user(), active_project())) {
    add_page_action(lang('add folder'), get_url('files', 'add_folder'));
}
// if
add_stylesheet_to_page('project/files.css');
?>
<div id="fileDetails" class="block">
<?php 
if ($file->isPrivate()) {
    ?>
Exemplo n.º 4
0
<?php

trace(__FILE__, ':begin');
set_page_title(lang('move message'));
dashboard_tabbed_navigation('messages');
trace(__FILE__, ':crumbs');
project_crumbs(lang('move message'));
trace(__FILE__, ':build page');
?>
<form action="<?php 
echo $message->getMoveUrl();
?>
" method="post">

<?php 
tpl_display(get_template_path('form_errors'));
?>

  <div><?php 
echo lang('about to move');
?>
 <?php 
echo lc(lang('message'));
?>
 <b><?php 
echo clean($message->getTitle());
?>
</b></div>

  <div>
    <?php 
Exemplo n.º 5
0
<?php

set_page_title($task_list->getName());
project_tabbed_navigation(PROJECT_TAB_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
?>
<script type="text/javascript" src="<?php 
echo get_javascript_url('modules/addTaskForm.js');
?>
"></script>
<?php 
$this->assign('on_list_page', true);
$this->includeTemplate(get_template_path('task/task_list'));
?>
<script type="text/javascript">
  App.modules.addTaskForm.hideAllAddTaskForms();
</script>
Exemplo n.º 6
0
<?php

set_page_title(lang('forms'));
project_tabbed_navigation(PROJECT_TAB_FORMS);
project_crumbs(lang('forms'));
if (ProjectForm::canAdd(logged_user(), active_project())) {
    add_page_action(lang('add form'), get_url('form', 'add'));
}
// if
if (isset($forms) && is_array($forms) && count($forms)) {
    ?>
<div id="projectForms">
<?php 
    foreach ($forms as $form) {
        ?>
  <div class="block">
    <div class="header"><?php 
        echo clean($form->getName());
        ?>
</div>
    <div class="content">
<?php 
        if (trim($form->getDescription())) {
            ?>
      <div class="description"><?php 
            echo do_textile($form->getDescription());
            ?>
</div>
<?php 
        }
        // if
Exemplo n.º 7
0
<?php

set_page_title(lang('search results'));
project_tabbed_navigation();
project_crumbs(lang('search results'));
add_stylesheet_to_page('project/search_results.css');
?>
<div id="searchForm">
  <form action="<?php 
echo active_project()->getSearchUrl();
?>
" method="get">
    <?php 
echo input_field('search_for', array_var($_GET, 'search_for'));
?>
    <input type="hidden" name="c" value="project" />
    <input type="hidden" name="a" value="search" />
    <input type="hidden" name="active_project" value="<?php 
echo active_project()->getId();
?>
" />
    <?php 
echo submit_button(lang('search'));
?>
    <?php 
echo lang('search hint');
?>
  </form>
</div>

<?php 
Exemplo n.º 8
0
<?php

set_page_title($milestone->isNew() ? lang('add milestone') : lang('edit milestone'));
project_tabbed_navigation('milestones');
project_crumbs(array(array(lang('milestones'), get_url('milestone')), array($milestone->isNew() ? lang('add milestone') : lang('edit milestone'))));
if ($milestone->isNew()) {
    ?>
<form action="<?php 
    echo get_url('milestone', 'add');
    ?>
" method="post">
<?php 
} else {
    ?>
<form action="<?php 
    echo $milestone->getEditUrl();
    ?>
" method="post">
<?php 
}
// if
?>

<?php 
tpl_display(get_template_path('form_errors'));
?>

  <div>
    <?php 
echo label_tag(lang('name'), 'milestoneFormName', true);
?>
Exemplo n.º 9
0
<?php

// Set page title and set crumbs to index
set_page_title(lang('add ticket'));
project_tabbed_navigation(PROJECT_TAB_TICKETS);
project_crumbs(array(array(lang('tickets'), get_url('tickets')), array(lang('add ticket'))));
add_stylesheet_to_page('project/tickets.css');
?>
<h2><?php 
echo lang('ticket #', $ticket->getId());
?>
</h2>

<form action="<?php 
echo get_url('tickets', 'add_ticket');
?>
" method="post" enctype="multipart/form-data">

<?php 
tpl_display(get_template_path('form_errors'));
?>


  <div>
    <?php 
echo label_tag(lang('summary'), 'ticketFormSummary', true);
?>
    <?php 
echo text_field('ticket[summary]', array_var($ticket_data, 'summary'), array('id' => 'ticketFormSummary', 'class' => 'title'));
?>
  </div>
Exemplo n.º 10
0
<?php

set_page_title(lang('reorder tasks'));
project_tabbed_navigation(PROJECT_TAB_TASKS);
project_crumbs(array(array(lang('tasks'), get_url('task')), array($task_list->getName(), $task_list->getViewUrl()), array(lang('reorder tasks'))));
add_stylesheet_to_page('project/reorder_tasks.css');
?>
<div id="reorderTasks">
  <form action="<?php 
echo $task_list->getReorderTasksUrl($back_to_list);
?>
" method="post">
    <table class="blank">
      <tr>
        <th><?php 
echo lang('order');
?>
</th>
        <th><?php 
echo lang('task');
?>
</th>
      </tr>
<?php 
foreach ($tasks as $task) {
    ?>
      <tr>
        <td><?php 
    echo text_field('task_' . $task->getId(), $task->getOrder(), array('class' => 'short'));
    ?>
</td>
Exemplo n.º 11
0
<?php

set_page_title(lang('projects logo edit'));
project_tabbed_navigation();
project_crumbs(lang('projects logo edit'));
$this->includeTemplate(get_template_path('project/pageactions'));
?>

<form action="<?php 
echo $project->getEditLogoUrl();
?>
" method="post" enctype="multipart/form-data">

<?php 
tpl_display(get_template_path('form_errors'));
?>
  
  <fieldset>
    <legend><?php 
echo lang('current logo');
?>
</legend>
<?php 
if ($project->hasLogo()) {
    ?>
    <img src="<?php 
    echo $project->getLogoUrl();
    ?>
" alt="<?php 
    echo clean($project->getName());
    ?>
Exemplo n.º 12
0
<?php

set_page_title($comment->isNew() ? lang('add comment') : lang('edit comment'));
project_tabbed_navigation(PROJECT_TAB_OVERVIEW);
project_crumbs(array($comment->isNew() ? lang('add comment') : lang('edit comment')));
// project_crumbs
if ($comment->isNew()) {
    ?>
<form action="<?php 
    echo Comment::getAddUrl($comment_form_object);
    ?>
" method="post">
<?php 
} else {
    ?>
<form action="<?php 
    echo $comment->getEditUrl();
    ?>
" method="post">
<?php 
}
// if
?>

<?php 
tpl_display(get_template_path('form_errors'));
?>

<?php 
if ($comment_form_object->columnExists('comments_enabled') && !$comment_form_object->getCommentsEnabled() && logged_user()->isAdministrator()) {
    ?>
Exemplo n.º 13
0
<?php

trace(__FILE__, ':begin');
set_page_title(lang('copy project'));
dashboard_tabbed_navigation();
trace(__FILE__, ':crumbs');
project_crumbs(lang('copy project'));
trace(__FILE__, ':build page');
?>
<form action="<?php 
echo get_url('project', 'copy');
?>
" method="post">

<?php 
tpl_display(get_template_path('form_errors'));
?>

  <div>
    <?php 
echo label_tag(lang('projects copy source'), 'projectSource', true);
?>
    <?php 
echo select_project('project[source]', '', array_var($project_data, 'copy_source'), array('id' => 'projectFormSource'));
?>
  </div>

  <div>
    <?php 
echo label_tag(lang('projects shift dates'), 'projectFormShiftDates');
?>
Exemplo n.º 14
0
	require_javascript('slimey/slimey.js');
	require_javascript('slimey/functions.js');
	require_javascript('slimey/stack.js');
	require_javascript('slimey/editor.js');
	require_javascript('slimey/navigation.js');
	require_javascript('slimey/actions.js');
	require_javascript('slimey/tools.js');
	require_javascript('slimey/toolbar.js');
	require_javascript('slimey/integration.js');
	require_javascript('og/ImageChooser.js');

	set_page_title($file->isNew() ? lang('new presentation') : lang('edit presentation'). ' - ' . $file->getFilename());
	project_tabbed_navigation(PROJECT_TAB_FILES);
	project_crumbs(array(
		array(lang('files'), get_url('files')),
		array($file->isNew() ? lang('add presentation') : lang('edit presentation'))
	));
?>

<?php
	if (!$file->isNew()) {
		$url = str_replace("&amp;", "&", get_url('files', 'save_presentation', array(
				'id' => $file->getId())));
		$filename = $file->getFilename();
		$slimContent = escapeSLIM(remove_css_and_scripts($file->getFileContent()));
	} else {
		$url = str_replace("&amp;", "&", get_url('files', 'save_presentation'));
		$filename = '';
		$slimContent = escapeSLIM('<div class="slide"><div style="font-size: 200%; font-weight: bold; font-family: sans-serif; position: absolute; left: 5%; top: 0%; width: 90%; height: 10%; text-align: center;">'.lang("new presentation").'</div></div>');
	}
	$id = gen_id();
Exemplo n.º 15
0
<?php

  set_page_title(lang('milestones'));
  project_tabbed_navigation(PROJECT_TAB_MILESTONES);
  project_crumbs(lang('milestones'));
  if(ProjectMilestone::canAdd(logged_user(), active_context())) {
    add_page_action(lang('add milestone'), get_url('milestone', 'add'), 'ico-milestone');
  } // if

?>
<?php if($late_milestones || $today_milestones || $upcoming_milestones) { ?>
<div id="milestones">
<?php if(is_array($late_milestones) && count($late_milestones)) { ?>
  <div id="lateMilestones">
  <h2><?php echo lang('late milestones') ?></h2>
<?php 
  foreach($late_milestones as $milestone) {
    $this->assign('milestone', $milestone);
    $this->includeTemplate(get_template_path('view_milestone', 'milestone'));
  } // foreach 
?>
  </div>
<?php } // if ?>

<?php if(is_array($today_milestones) && count($today_milestones)) { ?>
  <div id="todayMilestones">
  <h2><?php echo lang('today milestones') ?></h2>
<?php 
  foreach($today_milestones as $milestone) {
    $this->assign('milestone', $milestone);
    $this->includeTemplate(get_template_path('view_milestone', 'milestone'));
Exemplo n.º 16
0
<?php

set_page_title(lang('files add revision'));
project_tabbed_navigation(PROJECT_TAB_FILES);
project_crumbs(array(array(lang('files'), get_url('files')), lang('files add revision')));
add_stylesheet_to_page('project/files.css');
?>
<form action="<?php 
echo $file->getAddRevisionUrl();
?>
" method="post" enctype="multipart/form-data">
  <div id="fileRevisionComment">
    <?php 
echo label_tag(lang('revision comment'), 'fileRevisionComment');
?>
    <?php 
echo textarea_field('revision[comment]', array_var($revision_data, 'comment'), array('class' => 'short', 'id' => 'fileRevisionComment'));
?>
  </div>
  <div class="hint">
    <div class="content">
      <div>
        <?php 
echo label_tag(lang('new file'), 'fileRevisionFile', true);
?>
        <?php 
echo file_field('file_file', null, array('id' => 'fileRevisionFile'));
?>
      </div>
    </div>
  </div>
Exemplo n.º 17
0
<?php

if ($project->isNew()) {
    set_page_title(lang('add project'));
    dashboard_tabbed_navigation();
    project_crumbs(lang('add project'));
} else {
    set_page_title(lang('edit project'));
    project_crumbs(lang('edit project'));
    $this->includeTemplate(get_template_path('project/pageactions'));
}
// if
echo open_html_tag('a', array('href' => 'javascript:void(0)', 'onclick' => 'javascript:recoverFormInputs();')) . lang('recover last input') . close_html_tag('a');
if ($project->isNew()) {
    ?>
<form action="<?php 
    echo get_url('project', 'add');
    ?>
" method="post">
<?php 
} else {
    ?>
<form action="<?php 
    echo $project->getEditUrl($redirect_to);
    ?>
" method="post">
<?php 
}
// if
?>
Exemplo n.º 18
0
<?php

/**
 * @author Alex Mayhew
 * @copyright 2008
 */
set_page_title($revision->getName());
project_tabbed_navigation(PROJECT_TAB_WIKI);
project_crumbs(array(array(lang('wiki'), get_url('wiki', 'index')), array(lang('index'))));
if ($page->canAdd(logged_user(), active_project())) {
    add_page_action(lang('add wiki page'), $page->getAddUrl());
}
// if
if ($page->canEdit(logged_user(), active_project()) && !$page->isNew()) {
    add_page_action(lang('edit wiki page'), $page->getEditUrl());
    add_page_action(lang('view page history'), $page->getViewHistoryUrl());
}
// if
if ($page->canDelete(logged_user(), active_project()) && !$page->isNew() && (isset($iscurrev) && $iscurrev || !isset($currev))) {
    add_page_action(lang('delete wiki page'), $page->getDeleteUrl());
}
// if
add_page_action(lang('wiki all pages'), $page->getAllPagesUrl());
add_inline_css_to_page('.wikiPageLocked{float:right; font-weight:bolder; border: 2px solid #D15151; padding: 2px; color: #fff; background-color: #ED6E6E}');
add_page_action(lang('wiki public wiki'), externalUrl(ROOT_URL . '/' . PUBLIC_FOLDER . '/wiki'));
if ($page->getLocked()) {
    ?>
<div class="wikiPageLocked"><?php 
    echo lang('wiki page locked by', $page->getLockedByUser()->getUserName());
    ?>
</div>
Exemplo n.º 19
0
<?php
  require_javascript("og/modules/addProjectForm.js");
  set_page_title($project_form->isNew() ? lang('add form') : lang('edit form'));
  project_tabbed_navigation(PROJECT_TAB_FORMS);
  project_crumbs(array(
    array(lang('forms'), get_url('form')),
    array($project_form->isNew() ? lang('add form') : lang('edit form'))
  ));
  //add_stylesheet_to_page('project/forms.css');
  
?>
<form class="internalForm" action="<?php echo $project_form->isNew() ? get_url('form', 'add') : $project_form->getEditUrl() ?>" method="post">


<?php tpl_display(get_template_path('form_errors')) ?>

  <div>
    <?php echo label_tag(lang('name'), 'projectFormName', true) ?>
    <?php echo text_field('project_form[name]', array_var($project_form_data, 'name'), array('id' => 'projectFormName', 'class' => 'long')) ?>
  </div>
  
  <div>
    <?php echo label_tag(lang('description'), 'projectFormDescription') ?>
    <?php echo textarea_field('project_form[description]', array_var($project_form_data, 'description'), array('id' => 'projectFormDescription', 'class' => 'short')) ?>
  </div>
  
  <div>
    <?php echo label_tag(lang('success message'), 'projectFormSuccessMessage',true) ?>
    <?php echo textarea_field('project_form[success_message]', array_var($project_form_data, 'success_message'), array('id' => 'projectFormSuccessMessage', 'class' => 'short')) ?>
  </div>
  
Exemplo n.º 20
0
<?php

trace(__FILE__, 'begin');
/**
 * @author Alex Mayhew
 * @copyright 2008
 */
set_page_title(!$iscurrev ? lang('viewing revision of', $revision->getRevision(), $revision->getName()) : $revision->getName() . ' [' . $revision->getPageId() . ']');
project_tabbed_navigation();
project_crumbs(array(array(lang('wiki'), get_url('wiki')), array($revision->getName())));
if ($page->canAdd(logged_user(), active_project())) {
    add_page_action(lang('add wiki page'), $page->getAddUrl());
}
// if
if ($page->canEdit(logged_user(), active_project()) && !$page->isNew()) {
    add_page_action(lang('edit wiki page'), $page->getEditUrl());
    add_page_action(lang('view page history'), $page->getViewHistoryUrl());
}
// if
if ($page->canDelete(logged_user(), active_project()) && !$page->isNew() && $iscurrev) {
    add_page_action(lang('delete wiki page'), $page->getDeleteUrl());
}
add_page_action(lang('wiki public wiki'), externalUrl(ROOT_URL . '/' . PUBLIC_FOLDER . '/wiki'));
?>

<div id="wiki-page-content"><?php 
echo do_textile(plugin_manager()->apply_filters('wiki_text', do_textile($revision->getContent())));
?>
</div>
Exemplo n.º 21
0
<?php

set_page_title(lang('tags'));
project_tabbed_navigation('tags');
project_crumbs(array(array(lang('tags'), get_url('project', 'tags')), array($tag)));
if (isset($tagged_objects) && is_array($tagged_objects) && count($tagged_objects)) {
    ?>
<p><?php 
    echo lang('total objects tagged with', $total_tagged_objects, clean($tag));
    ?>
:</p>

<?php 
    if (isset($tagged_objects['messages']) && is_array($tagged_objects['messages']) && count($tagged_objects['messages'])) {
        ?>
<h2><?php 
        echo lang('messages');
        ?>
</h2>
<ul>
<?php 
        foreach ($tagged_objects['messages'] as $message) {
            ?>
  <li><a href="<?php 
            echo $message->getViewUrl();
            ?>
"><?php 
            echo clean($message->getTitle());
            ?>
</a>
<?php 
Exemplo n.º 22
0
<?php

set_page_title(lang('tasks'));
project_tabbed_navigation(PROJECT_TAB_TASKS);
project_crumbs(array(array(lang('tasks'), get_url('task')), array(lang('index'))));
if (ProjectTaskList::canAdd(logged_user(), active_project())) {
    add_page_action(lang('add task list'), get_url('task', 'add_list'));
}
// if
//add_javascript_to_page('task_related.js');
?>
<script type="text/javascript" src="<?php 
echo get_javascript_url('modules/addTaskForm.js');
?>
"></script>
<?php 
if (isset($open_task_lists) && is_array($open_task_lists) && count($open_task_lists)) {
    ?>
<div id="openTaskLists">
<?php 
    foreach ($open_task_lists as $task_list) {
        $this->assign('task_list', $task_list);
        $this->assign('on_list_page', false);
        $this->includeTemplate(get_template_path('task_list', 'task'));
    }
    // foreach
    ?>
</div>
<script type="text/javascript">
  App.modules.addTaskForm.hideAllAddTaskForms();
</script>
Exemplo n.º 23
0
<?php

set_page_title($folder->isNew() ? lang('add folder') : lang('edit folder'));
project_tabbed_navigation(PROJECT_TAB_FILES);
project_crumbs(array(array(lang('files'), get_url('files')), array($folder->isNew() ? lang('add folder') : lang('edit folder'))));
if (ProjectFile::canAdd(logged_user(), active_project())) {
    add_page_action(lang('add file'), get_url('files', 'add_file'));
}
// if
if (ProjectFolder::canAdd(logged_user(), active_project())) {
    add_page_action(lang('add folder'), get_url('files', 'add_folder'));
}
// if
if ($folder->isNew()) {
    ?>
<form action="<?php 
    echo get_url('files', 'add_folder');
    ?>
" method="post">
<?php 
} else {
    ?>
<form action="<?php 
    echo $folder->getEditUrl();
    ?>
" method="post">
<?php 
}
// if
?>
Exemplo n.º 24
0
<?php

set_page_title($task_list->isNew() ? lang('add task list') : lang('edit task list'));
project_tabbed_navigation('tasks');
project_crumbs(array(array(lang('tasks'), get_url('task')), array($task_list->isNew() ? lang('add task list') : lang('edit task list'))));
add_page_action(lang('add task list'), get_url('task', 'add_list'));
echo open_html_tag('a', array('href' => 'javascript:void(0)', 'onclick' => 'javascript:recoverFormInputs();')) . lang('recover last input') . close_html_tag('a');
if ($task_list->isNew()) {
    ?>
<form action="<?php 
    echo get_url('task', 'add_list');
    ?>
" method="post">
<?php 
} else {
    ?>
<form action="<?php 
    echo $task_list->getEditUrl();
    ?>
" method="post">
<?php 
}
// if
?>

<?php 
tpl_display(get_template_path('form_errors'));
?>

  <div>
    <?php 
Exemplo n.º 25
0
<?php

set_page_title(lang('edit logo'));
project_crumbs(lang('edit logo'));
$this->includeTemplate(get_template_path('project/pageactions'));
?>

<form action="<?php 
echo $project->getEditLogoUrl();
?>
" method="post" enctype="multipart/form-data">

<?php 
tpl_display(get_template_path('form_errors'));
?>
  
  <fieldset>
    <legend><?php 
echo lang('current logo');
?>
</legend>
<?php 
if ($project->hasLogo()) {
    ?>
    <img src="<?php 
    echo $project->getLogoUrl();
    ?>
" alt="<?php 
    echo clean($project->getName());
    ?>
 logo" />
Exemplo n.º 26
0
<?php

set_page_title(lang('delete milestone'));
project_tabbed_navigation(PROJECT_TAB_MILESTONES);
project_crumbs(lang('delete milestone'));
?>
<form action="<?php 
echo $milestone->getDeleteUrl();
?>
" method="post">
  <?php 
tpl_display(get_template_path('form_errors'));
?>

  <div><?php 
echo lang('about to delete');
?>
 <?php 
echo lc(lang('milestone'));
?>
 <b><?php 
echo clean($milestone->getName());
?>
</b></div>
    
  <div>
    <label><?php 
echo lang('confirm delete milestone');
?>
</label>
    <?php 
Exemplo n.º 27
0
<?php

trace(__FILE__, 'begin');
set_page_title(lang('project links'));
project_tabbed_navigation(PROJECT_TAB_LINKS);
project_crumbs(array(array(lang('links'), get_url('links', 'index')), array(lang('index'))));
if (ProjectLink::canAdd(logged_user(), active_project())) {
    add_page_action(lang('add link'), get_url('links', 'add_link'));
}
// if
add_stylesheet_to_page('project/files.css');
$counter = 0;
?>
<div id="files">
<?php 
if (isset($links) && is_array($links) && count($links)) {
    ?>
<div class="filesList">
<?php 
    foreach ($links as $link) {
        $counter++;
        ?>
  <div class="listedFile <?php 
        echo $counter % 2 ? 'even' : 'odd';
        ?>
">
  <div class="fileInfo">
      <div class="fileName"><a href="<?php 
        echo $link->asUrl();
        ?>
" title="<?php 
Exemplo n.º 28
0
<?php

set_page_title($message->getTitle());
project_tabbed_navigation('messages');
project_crumbs(array(array(lang('messages'), get_url('message', 'index')), array(lang('view message'))));
if (ProjectMessage::canAdd(logged_user(), active_project())) {
    add_page_action(lang('add message'), get_url('message', 'add'));
}
// if
add_stylesheet_to_page('project/messages.css');
$createdBy = $message->getCreatedBy();
?>
<div class="message block">
  <div class="header">
<?php 
if ($message->isPrivate()) {
    ?>
    <div class="private" title="<?php 
    echo lang('private message');
    ?>
"><span><?php 
    echo lang('private message');
    ?>
</span></div>
<?php 
}
// if
if ($message->getCreatedBy() instanceof User) {
    ?>
    <div class="author"><?php 
    echo lang('posted on by', format_datetime($message->getCreatedOn()), $message->getCreatedBy()->getCardUrl(), clean($message->getCreatedBy()->getDisplayName()));
Exemplo n.º 29
0
<?php

set_page_title($time->getName());
project_tabbed_navigation('times');
project_crumbs(array(array(lang('time'), get_url('time')), array($time->getName())));
?>
<div id="times">
<?php 
$this->includeTemplate(get_template_path('view_time', 'time'));
?>
</div>
Exemplo n.º 30
0
<?php

set_page_title($message->isNew() ? lang('add message') : lang('edit message'));
project_tabbed_navigation('messages');
project_crumbs(array(array(lang('messages'), get_url('message', 'index')), array($message->isNew() ? lang('add message') : lang('edit message'))));
add_stylesheet_to_page('project/messages.css');
$project = active_project();
?>
<script type="text/javascript">
$(document).ready(function() {
 // hides the slickbox as soon as the DOM is ready
 // (a little sooner than page load)
  $('#messageFormAdditionalText').hide();

  // toggles the slickbox on clicking the noted link 
  $('#messageFormAdditionalTextLink').click(function() {
    $('#messageFormAdditionalText').slideToggle(400);
    $(this).text($(this).text() == '<?php 
echo lang('expand');
?>
' ? '<?php 
echo lang('collapse');
?>
' : '<?php 
echo lang('expand');
?>
' );
    return false;
  });
});
</script>