Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
/** Get the prefix leading to the page for this NL
* Only X.org / AX / X groups may be seen on X.org.
*/
- public function prefix()
+ public function prefix($enforce_xnet=true)
{
if (!empty($GLOBALS['IS_XNET_SITE'])) {
return $this->group . '/nl';
return 'epletter';
default:
// Don't display groups NLs on X.org
- assert(false);
+ assert(!$enforce_xnet);
}
}
<p style="float: left">
{if $smarty.get.text}
- [<a href='nl/show/{$issue->id()}'>version HTML</a>]
+ [<a href='{$nl->prefix()}/show/{$issue->id()}'>version HTML</a>]
{else}
- [<a href='nl/show/{$issue->id()}?text=1'>version Texte</a>]
+ [<a href='{$nl->prefix()}/show/{$issue->id()}?text=1'>version Texte</a>]
{/if}
{if $nl->mayEdit()}
[<a href='{$nl->adminPrefix()}/edit/{$issue->id()}'>Éditer</a>]