+ complete task #328:add fold button after every history record.
This commit is contained in:
@@ -53,6 +53,8 @@ $lang->switchDisplay= '[Toggle Show]';
|
||||
$lang->switchHelp = 'Toggle Help';
|
||||
$lang->addFiles = 'Add Files';
|
||||
$lang->files = 'Files ';
|
||||
$lang->unfold = '+';
|
||||
$lang->fold = '-';
|
||||
|
||||
$lang->selectAll = 'Select All';
|
||||
$lang->notFound = 'Sorry, the object not found.';
|
||||
|
||||
@@ -53,6 +53,8 @@ $lang->switchDisplay= '[切换显示]';
|
||||
$lang->switchHelp = '切换帮助';
|
||||
$lang->addFiles = '上传了附件 ';
|
||||
$lang->files = '附件 ';
|
||||
$lang->unfold = '+';
|
||||
$lang->fold = '-';
|
||||
|
||||
$lang->selectAll = '全选';
|
||||
$lang->notFound = '抱歉,您访问的对象并不存在!';
|
||||
@@ -110,6 +112,7 @@ $lang->my->menu->project = '我的项目|my|project|';
|
||||
$lang->my->menu->profile = array('link' => '我的档案|my|profile|', 'alias' => 'editprofile');
|
||||
$lang->todo->menu = $lang->my->menu;
|
||||
|
||||
|
||||
/* 产品视图设置。*/
|
||||
$lang->product->menu->list = '%s';
|
||||
$lang->product->menu->story = array('link' => '需求列表|product|browse|productID=%s', 'subModule' => 'story');
|
||||
|
||||
@@ -1,8 +1,23 @@
|
||||
<script language='Javascript'>
|
||||
var fold = '<?php echo $lang->fold;?>';
|
||||
var unfold = '<?php echo $lang->unfold;?>';
|
||||
function switchHistoryDisplay(historyID,type)
|
||||
{
|
||||
if(type == unfold){
|
||||
$('#switchButton' + historyID).val(fold);
|
||||
$('#historyBox' + historyID).show();
|
||||
}
|
||||
else{
|
||||
$('#switchButton' + historyID).val(unfold);
|
||||
$('#historyBox' + historyID).hide();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<?php if($extView = $this->getExtViewFile(__FILE__)){include $extView; return helper::cd();}?>
|
||||
<script src='<?php echo $jsRoot;?>jquery/reverseorder/raw.js' type='text/javascript'></script>
|
||||
<?php if(!isset($actionTheme)) $actionTheme = 'fieldset';?>
|
||||
<?php if($actionTheme == 'fieldset'):?>
|
||||
<div>
|
||||
<div id='actionbox'>
|
||||
<fieldset>
|
||||
<legend>
|
||||
<span onclick='$("#historyItem li").reverseOrder();' class='hand'> <?php echo $lang->history . $lang->reverse;?></span>
|
||||
@@ -26,9 +41,12 @@
|
||||
if(strpos($action->actor, ':') !== false) $action->actor = substr($action->actor, strpos($action->actor, ':') + 1);
|
||||
?>
|
||||
<span><?php $this->action->printAction($action);?>
|
||||
<?php if(!empty($action->history)) echo html::commonButton($lang->unfold, "id=switchButton$i onclick=switchHistoryDisplay($i,this.value)");?>
|
||||
<?php if(!empty($action->comment) or !empty($action->history)):?>
|
||||
<?php if(!empty($action->comment)) echo "<div class='history'>";?>
|
||||
<div class='changes'><?php echo $this->action->printChanges($action->objectType, $action->history);?></div>
|
||||
<?php echo "<span id='historyBox$i' class='hidden'>";?>
|
||||
<div class='changes'><?php echo $this->action->printChanges($action->objectType, $action->history);?></div>
|
||||
</span>
|
||||
<?php if($action->comment and $action->history) echo '<br />'; echo nl2br($action->comment);?>
|
||||
<?php if(!empty($action->comment)) echo "</div>";?>
|
||||
<?php endif;?>
|
||||
|
||||
@@ -79,7 +79,7 @@ class my extends control
|
||||
}
|
||||
|
||||
/* 用户的bug列表。*/
|
||||
public function bug($type = 'assignToMe', $orderBy = 'id_desc', $recTotal = 0, $recPerPage = 20, $pageID = 1)
|
||||
public function bug($type = 'assigntome', $orderBy = 'id_desc', $recTotal = 0, $recPerPage = 20, $pageID = 1)
|
||||
{
|
||||
/* 登记session,加载语言。*/
|
||||
$this->session->set('bugList', $this->app->getURI(true));
|
||||
|
||||
@@ -267,6 +267,7 @@ table.tablesorter thead tr .headerSortDown {background-image: url(./images/table
|
||||
/* Other items. */
|
||||
.history, .changes {border:1px solid #ccc; background:#f2f2f2; padding:10px; margin-top:10px; margin-bottom:10px; color:#333; line-height:20px;}
|
||||
.history .changes {border:none; margin:0; padding:0}
|
||||
#actionbox .button-c {font-size:9px; height:20px; padding:0 5px 0 5px}
|
||||
.content {font-size:14px; padding:10px}
|
||||
.content p {margin:0}
|
||||
.roadmap {width:200px; margin:10px auto 10px auto; padding:10px; border:1px solid gray;}
|
||||
|
||||
Reference in New Issue
Block a user