* add jump-link in xuanxuan_card which can jump to zentao_extension_page
This commit is contained in:
@@ -11,3 +11,4 @@ body {width: 700px; margin-bottom: 0px !important;}
|
||||
.pager > li > .pager-size-menu {display: none;}
|
||||
.table-footer > .table-actions {display: none;}
|
||||
.table-footer{position: fixed; width: 100%; bottom: 0;}
|
||||
.linkButton {float: right; padding-right: 10px; line-height: 34px;}
|
||||
@@ -14,3 +14,4 @@ body * {font-size: 13px !important; line-height: 1.42857143; color: rgb(51, 51,
|
||||
::-webkit-scrollbar {width: 10px; height: 10px;}
|
||||
::-webkit-scrollbar-thumb:vertical {box-shadow: inset 1px 1px 0 rgb(0 0 0 / 10%), inset 0 -1px 0 rgb(0 0 0 / 7%); background-color: rgba(0, 0, 0, 0.2); border-radius: 10px; opacity: 0; transition: opacity 0.1s;}
|
||||
.btn span{line-height: 16px; vertical-align: middle;}
|
||||
.linkButton {float: right; padding-right: 10px; line-height: 34px;}
|
||||
|
||||
@@ -191,6 +191,9 @@ $currentBrowseType = isset($lang->bug->mySelects[$browseType]) && in_array($brow
|
||||
<strong>
|
||||
<?php echo $this->product->getByID($productID)->name ?>
|
||||
</strong>
|
||||
<div class="linkButton" onclick="linkButtonClicked()">
|
||||
<i class="icon icon-import icon-rotate-270"></i>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
<div id="mainContent" class="main-row fade">
|
||||
@@ -483,5 +486,11 @@ $(function(){$('#bugForm').table();})
|
||||
<?php if(isset($config->qa->homepage) and $config->qa->homepage != 'browse' and $config->global->flow == 'full'):?>
|
||||
$(function(){$('#modulemenu .nav li:last').after("<li class='right'><a style='font-size:12px' href='javascript:setHomepage(\"qa\", \"browse\")'><i class='icon icon-cog'></i> <?php echo $lang->homepage?></a></li>")});
|
||||
<?php endif;?>
|
||||
function linkButtonClicked()
|
||||
{
|
||||
$url = window.location.href;
|
||||
$xxcUrl = "xxc:openInApp/zentao-integrated/" + encodeURIComponent($url.replace(/.display=card/, ''));
|
||||
window.open($xxcUrl);
|
||||
}
|
||||
</script>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -15,6 +15,11 @@
|
||||
<?php js::set('sysurl', common::getSysUrl());?>
|
||||
<?php $browseLink = $app->session->bugList ? $app->session->bugList : inlink('browse', "productID=$bug->product");?>
|
||||
<div id="mainMenu" class="clearfix">
|
||||
<?php if($this->app->getViewType() == 'xhtml'):?>
|
||||
<div class="linkButton" onclick="linkButtonClicked()">
|
||||
<i class="icon icon-import icon-rotate-270"></i>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
<div class="btn-toolbar pull-left">
|
||||
<?php if(!isonlybody()):?>
|
||||
<?php echo html::a($browseLink, '<i class="icon icon-back icon-sm"></i> ' . $lang->goback, '', "class='btn btn-secondary'");?>
|
||||
@@ -418,5 +423,13 @@
|
||||
<div id="mainActions" class='main-actions'>
|
||||
<?php common::printPreAndNext($preAndNext);?>
|
||||
</div>
|
||||
<script>
|
||||
function linkButtonClicked()
|
||||
{
|
||||
$url = window.location.href;
|
||||
$xxcUrl = "xxc:openInApp/zentao-integrated/" + encodeURIComponent($url.replace(/.display=card/, ''));
|
||||
window.open($xxcUrl);
|
||||
}
|
||||
</script>
|
||||
<?php include '../../common/view/syntaxhighlighter.html.php';?>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -12,3 +12,4 @@ body {width: 700px; margin-bottom: 0px !important;}
|
||||
.table-footer > .table-actions {display: none;}
|
||||
.table-footer{position: fixed; width: 100%; bottom: 0;}
|
||||
.c-status {width: 70px;}
|
||||
.linkButton {float: right; padding-right: 10px; line-height: 34px;}
|
||||
@@ -20,3 +20,4 @@ body {width: 700px; margin-bottom: 0px !important;}
|
||||
.table-footer .pager:before {display: none !important;}
|
||||
.table-footer .pager {background-color: #fff !important;}
|
||||
.table-footer .pager li *{color: #838a9d !important;}
|
||||
.linkButton {float: right; padding-right: 10px; line-height: 34px;}
|
||||
@@ -14,3 +14,4 @@ body {width: 700px; margin-bottom: 0px !important;}
|
||||
.table-footer .pager:before {display: none !important;}
|
||||
.table-footer .pager {background-color: #fff !important;}
|
||||
.table-footer .pager li *{color: #838a9d !important;}
|
||||
.linkButton {float: right; padding-right: 10px; line-height: 34px;}
|
||||
@@ -34,6 +34,9 @@
|
||||
<strong>
|
||||
<?php echo $this->execution->getByID($execution->id)->name ?>
|
||||
</strong>
|
||||
<div class="linkButton" onclick="linkButtonClicked()">
|
||||
<i class="icon icon-import icon-rotate-270"></i>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
<div id="mainContent">
|
||||
@@ -200,4 +203,12 @@
|
||||
</div>
|
||||
<?php js::set('replaceID', 'bugList');?>
|
||||
<?php js::set('browseType', $type);?>
|
||||
<script>
|
||||
function linkButtonClicked()
|
||||
{
|
||||
$url = window.location.href;
|
||||
$xxcUrl = "xxc:openInApp/zentao-integrated/" + encodeURIComponent($url.replace(/.display=card/, ''));
|
||||
window.open($xxcUrl);
|
||||
}
|
||||
</script>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -142,6 +142,9 @@
|
||||
<strong>
|
||||
<?php echo $this->execution->getByID($execution->id)->name ?>
|
||||
</strong>
|
||||
<div class="linkButton" onclick="linkButtonClicked()">
|
||||
<i class="icon icon-import icon-rotate-270"></i>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
<div id="mainContent" class="main-row fade">
|
||||
@@ -474,6 +477,12 @@ $(function()
|
||||
}
|
||||
});
|
||||
});
|
||||
function linkButtonClicked()
|
||||
{
|
||||
$url = window.location.href;
|
||||
$xxcUrl = "xxc:openInApp/zentao-integrated/" + encodeURIComponent($url.replace(/.display=card/, ''));
|
||||
window.open($xxcUrl);
|
||||
}
|
||||
</script>
|
||||
<?php if(commonModel::isTutorialMode()): ?>
|
||||
<style>
|
||||
|
||||
@@ -183,6 +183,9 @@ body {margin-bottom: 25px;}
|
||||
<strong>
|
||||
<?php echo $this->execution->getByID($executionID)->name ?>
|
||||
</strong>
|
||||
<div class="linkButton" onclick="linkButtonClicked()">
|
||||
<i class="icon icon-import icon-rotate-270"></i>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
<div id="mainContent" class="main-row fade">
|
||||
@@ -474,5 +477,11 @@ $(function()
|
||||
}
|
||||
})
|
||||
});
|
||||
function linkButtonClicked()
|
||||
{
|
||||
$url = window.location.href;
|
||||
$xxcUrl = "xxc:openInApp/zentao-integrated/" + encodeURIComponent($url.replace(/.display=card/, ''));
|
||||
window.open($xxcUrl);
|
||||
}
|
||||
</script>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -14,3 +14,4 @@ body {width: 700px; margin-bottom: 0px !important;}
|
||||
.table-footer .pager:before {display: none !important;}
|
||||
.table-footer .pager {background-color: #fff !important;}
|
||||
.table-footer .pager li *{color: #838a9d !important;}
|
||||
.linkButton {float: right; padding-right: 10px; line-height: 34px;}
|
||||
@@ -236,6 +236,9 @@ $projectIDParam = $isProjectStory ? "projectID=$projectID&" : '';
|
||||
<strong>
|
||||
<?php echo $this->product->getByID($productID)->name ?>
|
||||
</strong>
|
||||
<div class="linkButton" onclick="linkButtonClicked()">
|
||||
<i class="icon icon-import icon-rotate-270"></i>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
<div id="mainContent" class="main-row fade">
|
||||
@@ -700,5 +703,11 @@ $(function()
|
||||
}
|
||||
});
|
||||
});
|
||||
function linkButtonClicked()
|
||||
{
|
||||
$url = window.location.href;
|
||||
$xxcUrl = "xxc:openInApp/zentao-integrated/" + encodeURIComponent($url.replace(/.display=card/, ''));
|
||||
$newWindow = window.open($xxcUrl);
|
||||
}
|
||||
</script>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -15,3 +15,4 @@ body * {font-size: 13px !important; line-height: 1.42857143; color: rgb(51, 51,
|
||||
::-webkit-scrollbar {width: 10px; height: 10px;}
|
||||
::-webkit-scrollbar-thumb:vertical {box-shadow: inset 1px 1px 0 rgb(0 0 0 / 10%), inset 0 -1px 0 rgb(0 0 0 / 7%); background-color: rgba(0, 0, 0, 0.2); border-radius: 10px; opacity: 0; transition: opacity 0.1s;}
|
||||
.btn span{line-height: 16px; vertical-align: middle;}
|
||||
.linkButton {float: right; padding-right: 10px; line-height: 34px;}
|
||||
@@ -15,6 +15,11 @@
|
||||
<?php $browseLink = $app->session->storyList ? $app->session->storyList : $this->createLink('product', 'browse', "productID=$story->product");?>
|
||||
<?php js::set('sysurl', common::getSysUrl());?>
|
||||
<div id="mainMenu" class="clearfix">
|
||||
<?php if($this->app->getViewType() == 'xhtml'):?>
|
||||
<div class="linkButton" onclick="linkButtonClicked()">
|
||||
<i class="icon icon-import icon-rotate-270"></i>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
<div class="btn-toolbar pull-left">
|
||||
<?php if(!isonlybody()):?>
|
||||
<?php echo html::a($browseLink, '<i class="icon icon-back icon-sm"></i> ' . $lang->goback, '', "class='btn btn-secondary'");?>
|
||||
@@ -590,5 +595,13 @@ js::set('unlink', $lang->story->unlink);
|
||||
js::set('cancel', $lang->cancel);
|
||||
js::set('rawModule', $this->app->rawModule);
|
||||
?>
|
||||
<script>
|
||||
function linkButtonClicked()
|
||||
{
|
||||
$url = window.location.href;
|
||||
$xxcUrl = "xxc:openInApp/zentao-integrated/" + encodeURIComponent($url.replace(/.display=card/, ''));
|
||||
window.open($xxcUrl);
|
||||
}
|
||||
</script>
|
||||
<?php include '../../common/view/syntaxhighlighter.html.php';?>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -15,3 +15,4 @@ body * {font-size: 13px !important; line-height: 1.42857143; color: rgb(51, 51,
|
||||
::-webkit-scrollbar {width: 10px; height: 10px;}
|
||||
::-webkit-scrollbar-thumb:vertical {box-shadow: inset 1px 1px 0 rgb(0 0 0 / 10%), inset 0 -1px 0 rgb(0 0 0 / 7%); background-color: rgba(0, 0, 0, 0.2); border-radius: 10px; opacity: 0; transition: opacity 0.1s;}
|
||||
.btn span{line-height: 16px; vertical-align: middle;}
|
||||
.linkButton {float: right; padding-right: 10px; line-height: 34px;}
|
||||
|
||||
@@ -15,6 +15,11 @@
|
||||
<?php $browseLink = $app->session->taskList != false ? $app->session->taskList : $this->createLink('execution', 'browse', "executionID=$task->execution");?>
|
||||
<?php js::set('sysurl', common::getSysUrl());?>
|
||||
<div id="mainMenu" class="clearfix">
|
||||
<?php if($this->app->getViewType() == 'xhtml'):?>
|
||||
<div class="linkButton" onclick="linkButtonClicked()">
|
||||
<i class="icon icon-import icon-rotate-270"></i>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
<div class="btn-toolbar pull-left">
|
||||
<?php if(!isonlybody()):?>
|
||||
<?php echo html::a($browseLink, '<i class="icon icon-back icon-sm"></i> ' . $lang->goback, '', "class='btn btn-secondary'");?>
|
||||
@@ -398,5 +403,13 @@
|
||||
<div id="mainActions" class='main-actions'>
|
||||
<?php common::printPreAndNext($preAndNext);?>
|
||||
</div>
|
||||
<script>
|
||||
function linkButtonClicked()
|
||||
{
|
||||
$url = window.location.href;
|
||||
$xxcUrl = "xxc:openInApp/zentao-integrated/" + encodeURIComponent($url.replace(/.display=card/, ''));
|
||||
window.open($xxcUrl);
|
||||
}
|
||||
</script>
|
||||
<?php include '../../common/view/syntaxhighlighter.html.php';?>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -15,3 +15,8 @@ $config->im->cards['doc']['view'] = array('width' => '700px', 'height' => '
|
||||
$config->im->cards['story']['view'] = array('width' => '700px', 'height' => '500px');
|
||||
$config->im->cards['testcase']['view'] = array('width' => '700px', 'height' => '500px');
|
||||
$config->im->cards['productplan']['view'] = array('width' => '700px', 'height' => '447px');
|
||||
$config->im->cards['execution']['task'] = array('width' => '700px', 'height' => '470px');
|
||||
$config->im->cards['execution']['bug'] = array('width' => '700px', 'height' => '467px');
|
||||
$config->im->cards['execution']['story'] = array('width' => '700px', 'height' => '467px');
|
||||
$config->im->cards['bug']['browse'] = array('width' => '700px', 'height' => '467px');
|
||||
$config->im->cards['product']['browse'] = array('width' => '700px', 'height' => '467px');
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
if(window.navigator.userAgent.indexOf('xuanxuan') > 0)
|
||||
{
|
||||
$('html').addClass('xxc-embed');
|
||||
|
||||
/** Update zentao client app menu */
|
||||
function updateAppMenu()
|
||||
{
|
||||
const menuItems = appsMenuItems.map(function(item)
|
||||
{
|
||||
if (item === 'divider') return '-';
|
||||
var $title = $('<div>' + item.title + '</div>');
|
||||
return [item.code, ($title.find('.icon').attr('class') || '').replace('icon ', ''),$title.text().trim()];
|
||||
});
|
||||
window.open('xxc://extension.zentao-integrated.updateAppMenu/' + encodeURIComponent(JSON.stringify(menuItems)));
|
||||
}
|
||||
|
||||
updateAppMenu();
|
||||
|
||||
$(document).on('showapp', function(e, app)
|
||||
{
|
||||
window.open('xxc://extension.zentao-integrated.activeAppMenuItem/' + app.code);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user