* add multi-language support, and fix UI of table statistic.

This commit is contained in:
Catouse
2019-12-16 17:42:26 +08:00
parent a9f4bc8edd
commit b45f5c8a68
15 changed files with 26 additions and 53 deletions
+1 -1
View File
@@ -388,7 +388,7 @@ $currentBrowseType = isset($lang->bug->mySelects[$browseType]) && in_array($brow
</div>
<?php endif;?>
</div>
<div class="text"><?php echo $summary;?></div>
<div class="table-statistic"><?php echo $summary;?></div>
<?php $pager->show('right', 'pagerjs');?>
</div>
</form>
+1 -1
View File
@@ -66,7 +66,7 @@
<div class="btn-toolbar">
<?php echo html::a(inlink('view', "buildID={$build->id}&type=bug"), $lang->goback, '', "class='btn'");?>
</div>
<div class='text'></div>
<div class='table-statistic'></div>
</div>
<?php endif;?>
</form>
+1 -1
View File
@@ -70,7 +70,7 @@
<div class="btn-toolbar">
<?php echo html::a(inlink('view', "buildID={$build->id}&type=story"), $lang->goback, '', "class='btn'");?>
</div>
<div class='text'></div>
<div class='table-statistic'></div>
</div>
<?php endif;?>
</form>
+1 -1
View File
@@ -160,7 +160,7 @@ tbody tr td:first-child input{display:none;}
<?php echo html::submitButton($lang->build->batchUnlink, '', 'btn');?>
</div>
<?php endif;?>
<div class='text'><?php echo sprintf($lang->build->finishStories, $countStories);?></div>
<div class='table-statistic'><?php echo sprintf($lang->build->finishStories, $countStories);?></div>
</div>
<?php endif;?>
</form>
-1
View File
@@ -2,7 +2,6 @@
if($extView = $this->getExtViewFile(__FILE__)){include $extView; return helper::cd();}
include 'header.lite.html.php';
include 'chosen.html.php';
include 'pager.html.php';
//include 'validation.html.php';
?>
<?php
-27
View File
@@ -1,27 +0,0 @@
<script>
$.extend($.fn.pager.Constructor.LANG,
{
'<?php echo $app->getClientLang();?>':
{
'pageOfText': "<?php echo $lang->pager->pageOfText;?>",
'prev': "<?php echo $lang->pager->previousPage;?>",
'next': "<?php echo $lang->pager->nextPage;?>",
'first': "<?php echo $lang->pager->firstPage;?>",
'last': "<?php echo $lang->pager->lastPage;?>",
'goto': "<?php echo $lang->pager->goto;?>",
'pageOf': "<?php echo $lang->pager->pageOf;?>",
'totalPage': "<?php echo $lang->pager->totalPage;?>",
'totalCount': "<?php echo $lang->pager->totalCount;?>",
'pageSize': "<?php echo $lang->pager->pageSize;?>",
'itemsRange': "<?php echo $lang->pager->itemsRange;?>",
'pageOfTotal': "<?php echo $lang->pager->pageOfTotal;?>"
}
});
$.extend($.fn.colorPicker.Constructor.LANG,
{
'<?php echo $app->getClientLang();?>':
{
'errorTip': "<?php echo $lang->colorPicker->errorTip;?>"
}
});
</script>
+1 -1
View File
@@ -66,7 +66,7 @@
<div class="btn-toolbar">
<?php echo html::a(inlink('view', "planID=$plan->id&type=bug&orderBy=$orderBy"), $lang->goback, '', "class='btn'");?>
</div>
<div class='text'></div>
<div class='table-statistic'></div>
</div>
</form>
</div>
+1 -1
View File
@@ -74,7 +74,7 @@
<div class="btn-toolbar">
<?php echo html::a(inlink('view', "planID=$plan->id&type=story&orderBy=$orderBy"), $lang->goback, '', "class='btn'");?>
</div>
<div class='text'></div>
<div class='table-statistic'></div>
</div>
</form>
</div>
+1 -1
View File
@@ -68,7 +68,7 @@ $formID = $type == 'leftBug' ? 'unlinkedLeftBugsForm' : 'unlinkedBugsForm';
<div class="btn-toolbar">
<?php echo html::a(inlink('view', "releaseID=$release->id&type=$type"), $lang->goback, '', "class='btn'");?>
</div>
<div class='text'></div>
<div class='table-statistic'></div>
</div>
</form>
</div>
+1 -1
View File
@@ -71,7 +71,7 @@
<div class="btn-toolbar">
<?php echo html::a(inlink('view', "releaseID=$release->id&type=story"), $lang->goback, '', "class='btn'");?>
</div>
<div class='text'></div>
<div class='table-statistic'></div>
</div>
</form>
</div>
+1 -1
View File
@@ -214,7 +214,7 @@ js::set('suiteID', $suiteID);
</div>
<?php endif;?>
</div>
<div class="text"><?php echo $summary;?></div>
<div class="table-statistic"><?php echo $summary;?></div>
<?php $pager->show('right', 'pagerjs');?>
</div>
</form>
+1 -1
View File
@@ -80,7 +80,7 @@
<div class="btn-toolbar">
<?php echo html::linkButton($lang->goback, $this->session->caseList);?>
</div>
<div class='text'></div>
<div class='table-statistic'></div>
<?php $pager->show('right', 'pagerjs');?>
</div>
<?php endif;?>
+1 -1
View File
@@ -78,7 +78,7 @@
<div class='table-actions btn-toolbar show-always'>
<?php echo html::submitButton('', '', 'btn btn-secondary');?>
</div>
<div class="text"></div>
<div class="table-statistic"></div>
<?php $pager->show('right', 'pagerjs');?>
</div>
<?php endif;?>
+13 -12
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long