/** * Get link for the discussion page of a page in the wiki * * @param string $text text of the link * @param string $page_name * @param array $options params added to the link * @param int $revision * * @return string */ function link_to_wiki_discuss($text, $page_name, $options = array()) { return link_to_wiki($text, 'discuss:' . $page_name, $options); }
"> <?php if (@$compare) { ?> <td><?php echo radiobutton_tag('oldRevision', $revision->getRevision(), $rev1 == $revision->getRevision(), array("class" => "revision")); ?> <?php echo radiobutton_tag('revision', $revision->getRevision(), $rev2 == $revision->getRevision(), array("class" => "revision")); ?> </td> <?php } ?> <td><?php echo link_to_wiki(null, $page->getName(), array('revision' => $revision->getRevision())); ?> </td> <td><?php echo format_datetime($revision->getCreatedAt('U')); ?> </td> <td><?php echo $revision->getUserName(); ?> </td> <!-- <td><em><?php //echo $revision->getComment() ?> </em></td> --> </tr>
<?php use_helper('nahoWiki'); ?> <div class="wiki-breadcrumbs"> <?php $first = true; foreach ($breadcrumbs as $breadcrumb) { ?> <?php if (!$first) { ?> <span class="wiki-breadcrumbs-separator"><?php echo $breadcrumbs_separator; ?> </span><?php } ?> <?php echo link_to_wiki(null, $breadcrumb); ?> <?php $first = false; } ?> </div>
<?php use_helper('nahoWiki'); ?> <div class="wiki-breadcrumbs"> <?php $first = true; foreach ($breadcrumbs as $breadcrumb) { ?> <?php if (!$first) { ?> <span class="wiki-breadcrumbs-separator"><?php echo $breadcrumbs_separator; ?> </span><?php } ?> <?php echo link_to_wiki(null, $breadcrumb['wiki'], $breadcrumb['page']); ?> <?php $first = false; } ?> </div>
<ul> <?php foreach ($tree as $name => $elements) { ?> <li> <?php if (is_array($elements)) { $fullpath = ($base ? $base . ':' : '') . substr($name, 0, -1); $class = 'wiki-link-category wiki-link-category-' . (count($elements) ? 'open' : 'closed'); echo link_to($name . '??', 'nahoWiki/browse?path=' . urlencode($fullpath) . '&' . $uriParams, 'class=' . $class); include_partial('index', array('tree' => $elements, 'base' => $fullpath, 'uriParams' => $uriParams)); } else { echo link_to_wiki($wiki, $name, $elements, 'class=wiki-link-page'); } ?> </li> <?php } ?> </ul>
<?php use_helper('I18N', 'nahoWiki'); ?> <p class="wiki-diff-intro"><?php echo __('View below changes from %revision1% to %revision2% :', array('%revision1%' => link_to_wiki(null, $page->getName(), array('revision' => $revision1->getRevision())), '%revision2%' => link_to_wiki(null, $page->getName(), array('revision' => $revision2->getRevision())))); ?> </p> <?php if (!trim($diff)) { ?> <p class="wiki-diff-intro wiki-warning"><?php echo __('There is no difference between the selected revisions'); ?> </p> <?php } else { ?> <pre class="wiki-diff"><?php echo $diff; ?> </pre> <ul class="wiki-diff-links"> <li><?php echo link_to_diff(__('View reverse diff'), $page->getName(), $revision2->getRevision(), $revision1->getRevision()); ?> </li> <li><?php echo link_to_raw_diff(__('View raw unified diff'), $page->getName(), $revision1->getRevision(), $revision2->getRevision());
<?php if (@$compare) { ?> <td><?php echo radiobutton_tag('oldRevision', $revision->getRevision(), $rev1 == $revision->getRevision()); ?> </td> <td><?php echo radiobutton_tag('revision', $revision->getRevision(), $rev2 == $revision->getRevision()); ?> </td> <?php } ?> <td><?php echo link_to_wiki($page->getWiki()->getProject()->getSlug(), $page->getWiki()->getProject()->getSlug(), $page->getName(), array('revision' => $revision->getRevision())); ?> </td> <td><?php echo format_datetime($revision->getCreatedAt('U')); ?> </td> <td><?php echo $revision->getUserName(); ?> </td> <td><em><?php echo $revision->getComment(); ?> </em></td> </tr>
<?php use_helper('I18N', 'nahoWiki'); ?> <p> </p> <p> </p> <div class="evidence-box"> <h5 class="subsection-grey"> <!--//<?php echo link_to_diff(__('visualizza revisioni invertite'), $page->getName(), $revision2->getRevision(), $revision1->getRevision(), array("class" => "float-right small")); ?> --> <?php echo __('modifiche da %revision1% a %revision2% :', array('%revision1%' => link_to_wiki(null, $page->getName(), array('revision' => $revision1->getRevision())), '%revision2%' => link_to_wiki(null, $page->getName(), array('revision' => $revision2->getRevision())))); ?> </h5> <?php if (!trim($diff)) { ?> <p class="wiki-diff-intro wiki-warning"><?php echo __('Non ci sono differenze tra le versioni selezionate'); ?> </p> <?php } else { ?> <pre class="wiki-diff"><?php echo $diff; ?>
<?php use_helper('I18N', 'nahoWiki'); ?> <p class="wiki-diff-intro"><?php echo __('View below changes from %revision1% to %revision2% :', array('%revision1%' => link_to_wiki($page->getWiki()->getProject()->getSlug(), $page->getName(), array('revision' => $revision1->getRevision())), '%revision2%' => link_to_wiki($page->getWiki()->getProject()->getSlug(), $page->getName(), array('revision' => $revision2->getRevision())))); ?> (<?php echo $revision1->getRevision(); ?> )</p> <?php if (!trim($diff)) { ?> <p class="wiki-diff-intro wiki-warning"><?php echo __('There is no difference between the selected revisions'); ?> </p> <?php } else { ?> <pre class="wiki-diff"><?php echo $diff; ?> </pre> <ul class="wiki-diff-links"> <li><?php echo link_to_diff($page->getWiki()->getProject()->getSlug(), __('View reverse diff'), $page->getName(), $revision2->getRevision(), $revision1->getRevision()); ?>