refactor:去除翻译语言选择页顶部的“项目名-项目slug”文字

This commit is contained in:
sunxiyuan 2020-07-14 11:55:42 +08:00
parent 605e2e0849
commit a8d9b1b7c3

View file

@ -11,10 +11,10 @@ foreach( $projects as $p ): ?>
<div class="loco-project" id="loco-<?php $p->e('id')?>"><?php
// display package name, and slug if it differs.
if( $p->name === $p->short ):?>
<h2><?php $p->e('name')?></h2><?php
else:?>
<h2><?php $p->e('name')?> <span>(<?php $p->e('short')?>)</span></h2><?php
if( $p->name === $p->short ):?>
<!--<h2><?php $p->e('name')?></h2>--><?php
else:?>
<!--<h2><?php $p->e('name')?> <span>(<?php $p->e('short')?>)</span></h2>--><?php
endif;
echo $this->render('inc-po-links', array( 'nav' => $p->nav ) );