</div> <?php } ?> <?php echo __('Last updated at %time%, by %user%', array('%time%' => tbg_formatTime($article->getPostedDate(), 3), '%user%' => '<b>' . ($article->getAuthor() instanceof TBGIdentifiable ? '<a href="javascript:void(0);" onclick="showFadedBackdrop(\'' . make_url('get_partial_for_backdrop', array('key' => 'usercard', 'user_id' => $article->getAuthor()->getID())) . '\');" class="faded_out">' . $article->getAuthor()->getName() . '</a>' : __('System')) . '</b>')); ?> </div> <?php } ?> <?php if ($show_article) { ?> <div class="content"><?php echo tbg_parse_text($article->getContent(), true, $article->getID(), array('embedded' => $embedded, 'article' => $article)); ?> </div> <?php } ?> </div> <?php if ($article->isCategory() && !$embedded && $show_category_contains) { ?> <br style="clear: both;"> <div style="margin: 15px 5px 5px 5px; clear: both;"> <?php if (count($article->getSubCategories()) > 0) { ?> <div class="header"><?php
echo image_tag($module->getAccountSettingsLogo(), array('style' => 'float: left;'), false, $module_name) . $module->getAccountSettingsName(); ?> </a></li> <?php } ?> <?php } ?> </ul> </div> <div id="account_tabs_panes"> <div id="tab_profile_pane"> <?php if (TBGSettings::getAuthenticationBackend() != 'tbg' && TBGSettings::getAuthenticationBackend() != null) { echo tbg_parse_text(TBGSettings::get('changedetails_message'), null, null, array('embedded' => true)); } else { ?> <form accept-charset="<?php echo TBGContext::getI18n()->getCharset(); ?> " action="<?php echo make_url('account_save_information'); ?> " onsubmit="updateProfileInformation('<?php echo make_url('account_save_information'); ?> '); return false;" method="post" id="profile_information_form"> <div class="rounded_box borderless lightgrey cut_bottom" style="margin: 5px 0 0 0; width: 690px; border-bottom: 0;"> <p class="content"><?php echo __('Edit your profile details here, including additional information.');
<?php $projectHasDescription = TBGContext::getCurrentProject()->hasDescription(); ?> <div id="project_description"<?php if (!$projectHasDescription) { echo ' class="none"'; } ?> > <?php if ($projectHasDescription) { echo tbg_parse_text(TBGContext::getCurrentProject()->getDescription()); } else { echo __('This project has no description'); } ?> </div> <?php if (TBGContext::getCurrentProject()->hasOwner()) { ?> <div class="project_role"> <div class="label"><?php echo __('Owned by: %name', array('%name' => '')); ?> </div> <div class="value"> <?php echo include_component(TBGContext::getCurrentProject()->getOwner() instanceof TBGUser ? 'main/userdropdown' : 'main/teamdropdown', array('user' => TBGContext::getCurrentProject()->getOwner())); ?> </div>
Buen día %user_buddyname%,<br> El siguiente pedido ha sido creado por <?php echo $issue->getPostedBy()->getName(); ?> : <?php echo $issue->getIssuetype()->getName(); ?> <?php echo $issue->getFormattedTitle(true); ?> * El pedido ha sido creado con la siguiente descripción * <?php echo tbg_parse_text($issue->getDescription()); ?> -- Ver el pedido : <?php echo link_tag(make_url('viewissue', array('project_key' => $issue->getProject()->getKey(), 'issue_no' => $issue->getFormattedIssueNo()), false)); ?> Ver el panel de control del proyecto <?php echo $issue->getProject()->getName(); ?> : <?php echo link_tag(make_url('project_dashboard', array('project_key' => $issue->getProject()->getKey()), false));
<span id="project_name_span"><?php echo $selected_project->getName(); ?> </span><br> <span id="project_key_span"><?php echo $selected_project->getKey(); ?> </span> </div> <div> <span id="project_description_span"> <?php if ($selected_project->hasDescription()) { ?> <?php echo tbg_parse_text($selected_project->getDescription()); ?> <?php } ?> </span> </div> <div id="project_no_description"<?php if ($selected_project->hasDescription()) { ?> style="display: none;"<?php } ?> > <?php echo __('This project has no description');
echo __('Description') . ':'; ?> * <?php echo tbg_parse_text($issue->getDescription()); ?> <?php if ($issue->getReproductionSteps()) { ?> * <?php echo __('Reproduction steps') . ':'; ?> * <?php echo tbg_parse_text($issue->getReproductionSteps()); } ?> <?php echo __('Show issue:') . ' ' . $module->generateURL('viewissue', array('project_key' => $issue->getProject()->getKey(), 'issue_no' => $issue->getFormattedIssueNo())); ?> <?php echo __('Show %project project dashboard:', array('%project' => $issue->getProject()->getName())) . ' ' . $module->generateURL('project_dashboard', array('project_key' => $issue->getProject()->getKey())); ?> <?php echo __('You were sent this notification email because you are related to the issue mentioned in this email.'); ?>
?> </ul> </div> <div id="account_tabs_panes"> <div id="tab_profile_pane" style="<?php if ($selected_tab != 'profile') { ?> display: none;<?php } ?> "> <?php if (\thebuggenie\core\framework\Settings::isUsingExternalAuthenticationBackend()) { ?> <?php echo tbg_parse_text(\thebuggenie\core\framework\Settings::get('changedetails_message'), false, null, array('embedded' => true)); ?> <?php } else { ?> <form accept-charset="<?php echo \thebuggenie\core\framework\Context::getI18n()->getCharset(); ?> " action="<?php echo make_url('account_save_information'); ?> " onsubmit="TBG.Main.Profile.updateInformation('<?php echo make_url('account_save_information'); ?> '); return false;" method="post" id="profile_information_form"> <h3><?php
?> </span> <?php } ?> </div> <div class="commenttitle"> <?php include_component('main/userdropdown', array('user' => $commit->getAuthor(), 'size' => 'large')); ?> </div> <div class="commentdate" id="commit_<?php echo $commit->getID(); ?> _date"> <?php echo tbg_formattime($commit->getDate(), 9); ?> </div> </div> <div class="commentbody article commit_main" id="commit_<?php echo $commit->getID(); ?> _body"> <?php echo tbg_parse_text($commit->getLog()); ?> </div> </div> </div>
</div> <div id="comment_delete_indicator_<?php echo $comment->getID(); ?> " style="display: none;"> <?php echo image_tag('spinning_16.gif', array('class' => 'spinning')); ?> </div> </div> <div class="commentbody article" id="comment_<?php echo $comment->getID(); ?> _body"> <?php echo tbg_parse_text($comment->getContent(), false, null, $options); ?> </div> </div> <div id="comment_edit_<?php echo $comment->getID(); ?> " class="comment_edit" style="display: none;"> <form id="comment_edit_form_<?php echo $comment->getID(); ?> " action="<?php echo make_url('comment_update', array('comment_id' => $comment->getID())); ?> " method="post" onSubmit="updateComment('<?php
<div class="faded_out" id="no_reproduction_steps" <?php if ($issue->getReproductionSteps() != '') { ?> style="display: none;" <?php } ?> ><?php echo __('Nothing entered.'); ?> </div> <div id="reproduction_steps_name" class="issue_inline_description"> <?php if ($issue->getReproductionSteps()) { ?> <?php echo tbg_parse_text($issue->getReproductionSteps(), false, null, array('headers' => false, 'issue' => $issue)); ?> <?php } ?> </div> </div> <?php if ($issue->isEditable() && $issue->canEditReproductionSteps()) { ?> <div id="reproduction_steps_change" style="display: none;"> <form id="reproduction_steps_form" action="<?php echo make_url('issue_setfield', array('project_key' => $issue->getProject()->getKey(), 'issue_id' => $issue->getID(), 'field' => 'reproduction_steps')); ?> " method="post" onSubmit="setField('<?php echo make_url('issue_setfield', array('project_key' => $issue->getProject()->getKey(), 'issue_id' => $issue->getID(), 'field' => 'reproduction_steps'));
Hi, %user_buddyname%! A comment has been added to <?php echo TBGContext::getI18n()->__($issue->getIssueType()->getName()); ?> <?php echo $issue->getFormattedIssueNo(true); ?> - <?php echo $issue->getTitle(); ?> by <?php echo $comment->getPostedBy()->getName(); ?> : <?php echo tbg_parse_text($comment->getContent()); ?> --- Show issue: <?php echo make_url('viewissue', array('project_key' => $issue->getProject()->getKey(), 'issue_no' => $issue->getFormattedIssueNo()), false); ?> Show <?php echo $issue->getProject()->getName(); ?> project dashboard: <?php echo make_url('project_dashboard', array('project_key' => $issue->getProject()->getKey()), false);
if ($reposname !== null) { ?> <span class="commitrepos"><?php echo $reposname; ?> /</span> <?php } ?> <?php if ($branchname !== null) { ?> <span class="commitbranch"><?php echo $branchname; ?> </span> <?php } ?> </div> </div> <div class="commentbody article commit_main" id="commit_<?php echo $commit->getID(); ?> _body"> <?php echo tbg_parse_text(trim($commit->getLog()), false, null, array('target' => $commit)); ?> </div> </div> </div>
<ul class="simple_list"> <?php foreach ($articles as $article) { ?> <li style="margin-bottom: 0;"> <?php echo link_tag(make_url('publish_article', array('article_name' => $article->getName())), $article->getName(), array('style' => 'font-size: 1.1em;')); ?> <br> <div class="faded_out"><?php echo __('Last updated %updated_at%', array('%updated_at%' => tbg_formatTime($article->getLastUpdatedDate(), 6))); ?> </div> <div class="article_preview"> <?php echo tbg_parse_text(substr($article->getContent(), 0, 300), false, null, array('headers' => false, 'show_title' => false, 'show_details' => false, 'show_actions' => false, 'embedded' => true)); ?> </div> </li> <?php } ?> </ul> <?php } else { ?> <div class="faded_out" style="font-size: 1.3em;"><?php echo __('No articles found'); ?> </div> <?php
<?php if (TBGSettings::hasMaintenanceMessage()) { echo '<div class="offline_msg">' . tbg_parse_text(TBGSettings::getMaintenanceMessage()) . '</div>'; } else { ?> <div class="offline_msg"> <div class="generic_offline rounded_box red borderless"> <?php echo __('This site has been temporarily disabled for maintenance. Please try again later.'); ?> </div> </div> <?php }
} elseif (mb_substr($link['url'], 0, 1) == '@') { ?> <?php echo link_tag(make_url($link['url']), $link['description'] != '' ? tbg_parse_text($link['description'], false, null, array('embedded' => true)) : strip_tags($link['url'])); ?> <?php } elseif ($link['url'] != '') { ?> <?php echo link_tag($link['url'], $link['description'] != '' ? tbg_parse_text($link['description'], false, null, array('embedded' => true)) : strip_tags($link['url'])); ?> <?php } elseif ($link['description'] != '') { ?> <?php echo tbg_parse_text($link['description'], false, null, array('embedded' => true)); ?> <?php } else { ?> <?php } ?> <?php if ($tbg_user->canEditMainMenu()) { ?> <?php echo javascript_link_tag(image_tag('action_delete.png'), array('class' => 'delete-icon', 'style' => 'float: right;', 'onclick' => "TBG.Main.Helpers.Dialog.show('" . __('Please confirm') . "', '" . __('Do you really want to delete this link?') . "', {yes: {click: function() {TBG.Main.Link.remove('" . make_url('remove_link', array('target_type' => $link['target_type'], 'target_id' => $link['target_id'], 'link_id' => $link_id)) . "', '{$link['target_type']}', '{$link['target_id']}', " . $link_id . "); }}, no: {click: TBG.Main.Helpers.Dialog.dismiss}})")); ?> <?php
/** * Reverts an issue field back to the original value * * @param \thebuggenie\core\framework\Request $request */ public function runIssueRevertField(framework\Request $request) { if ($issue_id = $request['issue_id']) { try { $issue = entities\Issue::getB2DBTable()->selectById($issue_id); } catch (\Exception $e) { $this->getResponse()->setHttpStatus(400); return $this->renderText('fail'); } } else { $this->getResponse()->setHttpStatus(400); return $this->renderText('no issue'); } $field = null; framework\Context::loadLibrary('common'); switch ($request['field']) { case 'description': $issue->revertDescription(); $issue->revertDescription_Syntax(); $field = array('id' => (int) ($issue->getDescription() != ''), 'name' => $issue->getParsedDescription(array('issue' => $issue)), 'form_value' => $issue->getDescription()); break; case 'reproduction_steps': $issue->revertReproduction_Steps(); $issue->revertReproduction_Steps_Syntax(); $field = array('id' => (int) ($issue->getReproductionSteps() != ''), 'name' => $issue->getParsedReproductionSteps(array('issue' => $issue)), 'form_value' => $issue->getReproductionSteps()); break; case 'title': $issue->revertTitle(); $field = array('id' => 1, 'name' => strip_tags($issue->getTitle())); break; case 'shortname': $issue->revertShortname(); $field = array('id' => 1, 'name' => strip_tags($issue->getShortname())); break; case 'category': $issue->revertCategory(); $field = $issue->getCategory() instanceof entities\Category ? array('id' => $issue->getCategory()->getID(), 'name' => $issue->getCategory()->getName()) : array('id' => 0); break; case 'resolution': $issue->revertResolution(); $field = $issue->getResolution() instanceof entities\Resolution ? array('id' => $issue->getResolution()->getID(), 'name' => $issue->getResolution()->getName()) : array('id' => 0); break; case 'severity': $issue->revertSeverity(); $field = $issue->getSeverity() instanceof entities\Severity ? array('id' => $issue->getSeverity()->getID(), 'name' => $issue->getSeverity()->getName()) : array('id' => 0); break; case 'reproducability': $issue->revertReproducability(); $field = $issue->getReproducability() instanceof entities\Reproducability ? array('id' => $issue->getReproducability()->getID(), 'name' => $issue->getReproducability()->getName()) : array('id' => 0); break; case 'priority': $issue->revertPriority(); $field = $issue->getPriority() instanceof entities\Priority ? array('id' => $issue->getPriority()->getID(), 'name' => $issue->getPriority()->getName()) : array('id' => 0); break; case 'percent_complete': $issue->revertPercentCompleted(); $field = $issue->getPercentCompleted(); break; case 'status': $issue->revertStatus(); $field = $issue->getStatus() instanceof entities\Status ? array('id' => $issue->getStatus()->getID(), 'name' => $issue->getStatus()->getName(), 'color' => $issue->getStatus()->getColor()) : array('id' => 0); break; case 'pain_bug_type': $issue->revertPainBugType(); $field = $issue->hasPainBugType() ? array('id' => $issue->getPainBugType(), 'name' => $issue->getPainBugTypeLabel(), 'user_pain' => $issue->getUserPain()) : array('id' => 0, 'user_pain' => $issue->getUserPain()); break; case 'pain_likelihood': $issue->revertPainLikelihood(); $field = $issue->hasPainLikelihood() ? array('id' => $issue->getPainLikelihood(), 'name' => $issue->getPainLikelihoodLabel(), 'user_pain' => $issue->getUserPain()) : array('id' => 0, 'user_pain' => $issue->getUserPain()); break; case 'pain_effect': $issue->revertPainEffect(); $field = $issue->hasPainEffect() ? array('id' => $issue->getPainEffect(), 'name' => $issue->getPainEffectLabel(), 'user_pain' => $issue->getUserPain()) : array('id' => 0, 'user_pain' => $issue->getUserPain()); break; case 'issuetype': $issue->revertIssuetype(); $field = $issue->getIssuetype() instanceof entities\Issuetype ? array('id' => $issue->getIssuetype()->getID(), 'name' => $issue->getIssuetype()->getName(), 'src' => htmlspecialchars(framework\Context::getWebroot() . 'images/' . $issue->getIssuetype()->getIcon() . '_small.png')) : array('id' => 0); $visible_fields = $issue->getIssuetype() instanceof entities\Issuetype ? $issue->getProject()->getVisibleFieldsArray($issue->getIssuetype()->getID()) : array(); return $this->renderJSON(array('ok' => true, 'issue_id' => $issue->getID(), 'field' => $field, 'visible_fields' => $visible_fields)); break; case 'milestone': $issue->revertMilestone(); $field = $issue->getMilestone() instanceof entities\Milestone ? array('id' => $issue->getMilestone()->getID(), 'name' => $issue->getMilestone()->getName()) : array('id' => 0); break; case 'estimated_time': $issue->revertEstimatedTime(); return $this->renderJSON(array('ok' => true, 'issue_id' => $issue->getID(), 'field' => $issue->hasEstimatedTime() ? array('id' => 1, 'name' => entities\Issue::getFormattedTime($issue->getEstimatedTime(true, true))) : array('id' => 0), 'values' => $issue->getEstimatedTime(true, true), 'percentbar' => $this->getComponentHTML('main/percentbar', array('percent' => $issue->getEstimatedPercentCompleted(), 'height' => 3)))); break; case 'spent_time': $issue->revertSpentTime(); return $this->renderJSON(array('ok' => true, 'issue_id' => $issue->getID(), 'field' => $issue->hasSpentTime() ? array('id' => 1, 'name' => entities\Issue::getFormattedTime($issue->getSpentTime(true, true))) : array('id' => 0), 'values' => $issue->getSpentTime(true, true))); break; case 'owned_by': $issue->revertOwner(); return $this->renderJSON(array('changed' => $issue->isOwnerChanged(), 'field' => $issue->isOwned() ? array('id' => $issue->getOwner()->getID(), 'name' => $issue->getOwner() instanceof entities\User ? $this->getComponentHTML('main/userdropdown', array('user' => $issue->getOwner())) : $this->getComponentHTML('main/teamdropdown', array('team' => $issue->getOwner()))) : array('id' => 0))); break; case 'assigned_to': $issue->revertAssignee(); return $this->renderJSON(array('changed' => $issue->isAssigneeChanged(), 'field' => $issue->isAssigned() ? array('id' => $issue->getAssignee()->getID(), 'name' => $issue->getAssignee() instanceof entities\User ? $this->getComponentHTML('main/userdropdown', array('user' => $issue->getAssignee())) : $this->getComponentHTML('main/teamdropdown', array('team' => $issue->getAssignee()))) : array('id' => 0))); break; case 'posted_by': $issue->revertPostedBy(); return $this->renderJSON(array('changed' => $issue->isPostedByChanged(), 'field' => array('id' => $issue->getPostedByID(), 'name' => $this->getComponentHTML('main/userdropdown', array('user' => $issue->getPostedBy()))))); break; default: if ($customdatatype = entities\CustomDatatype::getByKey($request['field'])) { $key = $customdatatype->getKey(); $revert_methodname = "revertCustomfield{$key}"; $issue->{$revert_methodname}(); if ($customdatatype->hasCustomOptions()) { $field = $issue->getCustomField($key) instanceof entities\CustomDatatypeOption ? array('value' => $issue->getCustomField($key)->getID(), 'name' => $issue->getCustomField($key)->getName()) : array('id' => 0); } else { switch ($customdatatype->getType()) { case entities\CustomDatatype::INPUT_TEXTAREA_MAIN: case entities\CustomDatatype::INPUT_TEXTAREA_SMALL: $field = $issue->getCustomField($key) != '' ? array('value' => $key, 'name' => tbg_parse_text($issue->getCustomField($key))) : array('id' => 0); break; default: $field = $issue->getCustomField($key) != '' ? array('value' => $key, 'name' => $issue->getCustomField($key)) : array('id' => 0); break; } } } break; } if ($field !== null) { return $this->renderJSON(array('ok' => true, 'issue_id' => $issue->getID(), 'field' => $field)); } else { $this->getResponse()->setHttpStatus(400); return $this->renderJSON(array('error' => framework\Context::getI18n()->__('No valid field specified (%field)', array('%field' => $request['field'])))); } }
<?php } else { ?> <div style="color: #AAA; padding: 2px; width: auto;"><?php echo __('None'); ?> </div> <?php } ?> </div> <?php if ($project->hasDescription()) { ?> <div colspan="2" style="padding: 3px;"><?php echo tbg_parse_text($project->getDescription()); ?> </div> <?php } ?> <?php if ($access_level == \thebuggenie\core\framework\Settings::ACCESS_FULL) { ?> <div style="position: absolute; right: 20px; top: 20px;"> <div style="float: left; margin-right: 10px; display: none;" id="project_<?php echo $project->getID(); ?> _archive_indicator"><?php echo image_tag('spinning_16.gif'); ?>
<div id="tab_forgot_pane"<?php if ($selected_tab != 'forgot') { ?> style="display: none;<?php } ?> "> <?php if (TBGSettings::getAuthenticationBackend() != 'tbg' && TBGSettings::getAuthenticationBackend() != null) { echo tbg_parse_text(TBGSettings::get('forgot_message'), null, null, array('embedded' => true)); } else { ?> <div style="vertical-align: middle; padding: 5px;"> <form accept-charset="<?php echo TBGContext::getI18n()->getCharset(); ?> " action="<?php echo make_url('forgot'); ?> " method="post" id="forgot_password_form" onsubmit="resetForgotPassword('<?php echo make_url('forgot'); ?> '); return false;"> <div class="login_boxheader"><?php echo __('Forgot password?'); ?> </div> <p><?php echo __('If you have forgot your password, enter your username here, and we will send you an email that will allow you to change your password'); ?> .</p><br>
echo __('Denied'); ?> </span> </div> <div style="clear: both; padding: 10px 0 5px 5px;"> <?php if (!$user_id) { ?> <?php echo tbg_parse_text(__("Edit all global, group and team permissions from this page - user-specific permissions are handled from the [[TBG:configure_users|user configuration page]]. The Bug Genie permissions are thoroughly explained in [[ConfigurePermissions]] in the wiki - look it up if you're ever stuck.", array(), true)); ?> <?php } else { ?> <?php echo tbg_parse_text(__("Edit all user-specific permissions from this page - global, group and team permissions are handled from the [[TBG:configure_permissions|permissions configuration page]]. The Bug Genie permissions are thoroughly explained in [[ConfigurePermissions]] in the wiki - look it up if you're ever stuck.", array(), true)); ?> <?php } ?> </div> </div> <div style="margin: 10px 0 0 0; clear: both; height: 30px;" class="tab_menu"> <ul id="permissions_<?php echo $base_id; ?> _tabs"> <li class="selected" id="<?php echo $base_id; ?> _tab_general"><a onclick="switchSubmenuTab('<?php
</div> <div style="clear: both;"> <?php echo image_tag('permission_set_denied.png', array('style' => 'float: left; margin: 0 5px 0 10px;')); ?> <span style="float: left;"><?php echo __('Denied'); ?> </span> </div> </div> <p> <?php echo tbg_parse_text(__("Edit all global group and team permissions from this page - user-specific permissions are handled from the [[TBG:configure_users|user configuration page]], and permissions for specific issue fields are available from the [[TBG:configure_issuefields|issue fields configuration page]].", array(), true)); ?> <br> <br> <?php echo tbg_parse_text(__("The Bug Genie permissions are thoroughly explained in [[ConfigurePermissions]] in the wiki - look it up if you're ever stuck.", array(), true)); ?> </p> <div id="config_permissions" class="" style="clear: both;"> <?php include_component('configuration/permissionsconfigurator', array('access_level' => $access_level, 'base_id' => 'configurator')); ?> </div> </div> </td> </tr> </table>
<?php if (\thebuggenie\core\framework\Settings::hasMaintenanceMessage()) { echo '<div class="offline_msg">' . tbg_parse_text(\thebuggenie\core\framework\Settings::getMaintenanceMessage()) . '</div>'; } else { ?> <div class="offline_msg"> <div class="generic_offline rounded_box red borderless"> <?php echo __('This site has been temporarily disabled for maintenance. Please try again later.'); ?> </div> </div> <?php }
} elseif (substr($link['url'], 0, 1) == '@') { ?> <?php echo link_tag(make_url($link['url']), $link['description'] != '' ? $link['description'] : $link['url']); ?> <?php } elseif ($link['url'] != '') { ?> <?php echo link_tag($link['url'], $link['description'] != '' ? $link['description'] : $link['url']); ?> <?php } elseif ($link['description'] != '') { ?> <?php echo tbg_parse_text($link['description']); ?> <?php } else { ?> <?php } ?> </td> <?php if ($tbg_user->canEditMainMenu()) { ?> <td style="width: 20px;"> <?php echo javascript_link_tag(image_tag('action_delete.png'), array('class' => 'image', 'id' => $link['target_type'] . '_' . $link['target_id'] . '_links_' . $link_id . '_remove_link', 'onclick' => "\$('{$link['target_type']}_{$link['target_id']}_links_{$link_id}_remove_confirm').toggle();"));
protected function _parse_insert_template($matches) { switch ($matches[1]) { case 'CURRENTMONTH': return date('m'); case 'CURRENTMONTHNAMEGEN': case 'CURRENTMONTHNAME': return date('F'); case 'CURRENTDAY': return date('d'); case 'CURRENTDAYNAME': return date('l'); case 'CURRENTYEAR': return date('Y'); case 'CURRENTTIME': return date('H:i'); case 'NUMBEROFARTICLES': return 0; case 'PAGENAME': return framework\Context::getResponse()->getPage(); case 'NAMESPACE': return 'None'; case 'TOC': return isset($this->options['included']) ? '' : '{{TOC}}'; case 'SITENAME': case 'SITETAGLINE': return \thebuggenie\core\framework\Settings::getSiteHeaderName(); default: $details = explode('|', $matches[1]); $template_name = array_shift($details); if (substr($template_name, 0, 1) == ':') { $template_name = substr($template_name, 1); } $template_name = Article::doesArticleExist($template_name) ? $template_name : 'Template:' . $template_name; $template_article = Articles::getTable()->getArticleByName($template_name); $parameters = array(); if (count($details)) { foreach ($details as $parameter) { $param = explode('=', $parameter); if (count($param) == 2) { $parameters[$param[0]] = $param[1]; } else { $parameters[] = $parameter; } } } if ($template_article instanceof Article) { return tbg_parse_text($template_article->getContent(), false, null, array('included' => true, 'parameters' => $parameters)); } else { return $matches[0]; } } }
<?php $projectHasDescription = $view->getProject()->hasDescription(); ?> <div id="project_description"<?php if (!$projectHasDescription) { echo ' class="none"'; } ?> > <?php if ($projectHasDescription) { echo tbg_parse_text($view->getProject()->getDescription()); } else { echo __('This project has no description'); } ?> </div> <?php if ($view->getProject()->hasOwner()) { ?> <div class="project_role"> <div class="label"><?php echo __('Owned by: %name', array('%name' => '')); ?> </div> <div class="value"> <?php if ($view->getProject()->getOwner() instanceof \thebuggenie\core\entities\Team) { ?> <?php
<?php switch ($info['type']) { case TBGCustomDatatype::INPUT_TEXTAREA_SMALL: ?> <span id="<?php echo $field; ?> _name"<?php if (!$info['name_visible']) { ?> style="display: none;"<?php } ?> > <?php echo tbg_parse_text($info['name'], false, null, array('headers' => false)); ?> </span> <span class="faded_out" id="no_<?php echo $field; ?> "<?php if (!$info['noname_visible']) { ?> style="display: none;"<?php } ?> > <?php echo __('Not determined'); ?>
if ($mode == 'configuration') { ?> <?php echo __('Configuration access is always "Restrictive", regardless of the system settings.'); ?> <?php } elseif ($mode == 'datatype') { ?> <?php echo __("This setting allows who can set this datatype, assuming the have access to manipulate the field itself. Ex: If you don't have access to setting the status field, giving a user access to set one specific status won't let them manipulate the status field."); ?> <?php } echo tbg_parse_text(__('Please see [[ConfigurePermissions]] for more information about how permissions work in general.', array(), true)); ?> <br> <table cellpadding="0" cellspacing="0" style="width: 100%; margin-top: 10px;"> <thead class="light"> <tr> <th><?php echo __('Users / groups / teams'); ?> </th> <?php if ($mode == 'datatype') { ?> <th style="width: 60px; text-align: center;"><?php echo __('Can set'); ?>
<div style="font-family: 'Trebuchet MS', 'Liberation Sans', 'Bitstream Vera Sans', 'Luxi Sans', Verdana, sans-serif; font-size: 11px; color: #333;"> Bonjour %user_buddyname%,<br> <?php echo $issue->getIssuetype()->getName(); ?> <?php echo $issue->getFormattedTitle(true); ?> a été mise à jour par <?php echo $updated_by->getName(); ?> .<br> <br> <?php echo tbg_parse_text($comment); ?> <br> <div style="color: #888;"> -- <br> Affiche la demande : <?php echo link_tag(make_url('viewissue', array('project_key' => $issue->getProject()->getKey(), 'issue_no' => $issue->getFormattedIssueNo()), false)); ?> <br> Affiche le tableau de bord du projet <?php echo $issue->getProject()->getName(); ?> : <?php echo link_tag(make_url('project_dashboard', array('project_key' => $issue->getProject()->getKey()), false)); ?> </div>
public function runUpdateComment(TBGRequest $request) { TBGContext::loadLibrary('ui'); $comment = TBGContext::factory()->TBGComment($request->getParameter('comment_id')); if ($comment instanceof TBGcomment) { if (!$comment->canUserEditComment()) { return $this->renderJSON(array('failed' => true, 'error' => TBGContext::getI18n()->__('You are not allowed to do this'))); } else { if ($request->getParameter('comment_body') == '') { return $this->renderJSON(array('failed' => true, 'error' => TBGContext::getI18n()->__('The comment must have some content'))); } $comment->setContent($request->getRawParameter('comment_body')); if ($request->getParameter('comment_title') == '') { $comment->setTitle(TBGContext::getI18n()->__('Untitled comment')); } else { $comment->setTitle($request->getParameter('comment_title')); } $comment->setIsPublic($request->getParameter('comment_visibility')); $comment->setUpdatedBy(TBGContext::getUser()->getID()); $comment->save(); TBGContext::loadLibrary('common'); $body = tbg_parse_text($comment->getContent()); return $this->renderJSON(array('title' => TBGContext::getI18n()->__('Comment edited!'), 'comment_title' => $comment->getTitle(), 'comment_body' => $body)); } } else { return $this->renderJSON(array('failed' => true, 'error' => TBGContext::getI18n()->__('Comment ID is invalid'))); } }