Skip to content
Permalink
Browse files

. #0008594: Possibility to add a link to existent ISSUE to latest exe…

…cution (Any Build)
  • Loading branch information...
fmancardi committed Mar 12, 2019
1 parent 92cf5ff commit d074884b630b830bd994829c9a099ad43f79b5c0
Showing with 55 additions and 44 deletions.
  1. +55 −44 gui/templates/tl-classic/execute/inc_exec_show_tc_exec.tpl
@@ -111,64 +111,75 @@ TestLink Open Source Project - http://testlink.sourceforge.net/

{* The very last execution for any build of this test plan *}
{if $cfg->exec_cfg->show_last_exec_any_build && $gui->history_on == 0}
{if $abs_last_exec.status != '' and $abs_last_exec.status != $tlCfg->results.status_code.not_run}
{if $abs_last_exec.status != '' and
$abs_last_exec.status != $tlCfg->results.status_code.not_run}

{$status_code=$abs_last_exec.status}
<div class="{$tlCfg->results.code_status.$status_code}">
{$labels.date_time_run} {$title_sep} {localize_timestamp ts=$abs_last_exec.execution_ts}
{$title_sep_type3}
{$labels.test_exec_by} {$title_sep}

{if isset($users[$abs_last_exec.tester_id])}
{$users[$abs_last_exec.tester_id]->getDisplayName()|escape}
{else}
{$deletedTester=$abs_last_exec.tester_id}
{$deletedUserString=$labels.deleted_user|replace:"%s":$deletedTester}
{$deletedUserString}
{/if}

{if isset($users[$abs_last_exec.tester_id])}
{$users[$abs_last_exec.tester_id]->getDisplayName()|escape}
{else}
{$deletedTester=$abs_last_exec.tester_id}
{$deletedUserString=$labels.deleted_user|replace:"%s":$deletedTester}
{$deletedUserString}
{/if}
{$title_sep_type3}
{$labels.build}{$title_sep} {$abs_last_exec.build_name|escape}
{$title_sep_type3}
{$labels.exec_status} {$title_sep} {localize_tc_status s=$status_code}

<span style="background: white;padding: 6px 15px 6px 40px;">
{if $gui->issueTrackerIntegrationOn}
<a href="javascript:open_bug_add_window({$gui->tproject_id},
{$gui->tplan_id},{$abs_last_exec.id},{$abs_last_exec.execution_id},0,'link')">
<img src="{$tlImages.bug_link_tl_to_bts}" title="{$labels.bug_link_tl_to_bts}" style="border:none" /></a>
{/if}
</span>

</div>

{* ///////////////////////////////////////// *}
{if $abs_last_exec.execution_notes neq ""}
<script>
{* Initialize panel if notes exists. There might be multiple note panels
visible at the same time, so we need to collect those init functions in
an array and execute them from Ext.onReady(). See execSetResults.tpl *}
var panel_init = function(){
var p = new Ext.Panel({
title:'{$labels.exec_notes}',
collapsible:true,
collapsed: true,
baseCls: 'x-tl-panel',
renderTo:'latest_exec_any_build_notes'{literal},
width:'100%',
html:''
});
p.on({'expand' :
function(){load_notes(this,{/literal}{$abs_last_exec.execution_id});}
});
};
panel_init_functions.push(panel_init);
</script>
<div id="latest_exec_any_build_notes" style="margin:8px;">
</div>
<hr>
{/if}
{else}
{if $abs_last_exec.execution_notes neq ""}
<script>
{* Initialize panel if notes exists. There might be multiple note panels
visible at the same time, so we need to collect those init functions in
an array and execute them from Ext.onReady(). See execSetResults.tpl *}
var panel_init = function(){
var p = new Ext.Panel({
title:'{$labels.exec_notes}',
collapsible:true,
collapsed: true,
baseCls: 'x-tl-panel',
renderTo:'latest_exec_any_build_notes'{literal},
width:'100%',
html:''
});
p.on({'expand' :
function(){load_notes(this,{/literal}{$abs_last_exec.execution_id});}
});
};
panel_init_functions.push(panel_init);
</script>
<div id="latest_exec_any_build_notes" style="margin:8px;">
</div>
<hr>
{/if}
{* ///////////////////////////// *}
{else}
{$drawNotRun=1}
{/if}
{/if}
{if $drawNotRun }
<div class="not_run">{$labels.test_status_not_run}</div>
{$labels.tc_not_tested_yet}
{/if}
{/if}
{/if}
{if $drawNotRun }
<div class="not_run">{$labels.test_status_not_run}</div>
{$labels.tc_not_tested_yet}
{/if}
{* -------------------------------------------------------------- *}
{if $gui->other_execs.$tcversion_id}
{$my_colspan=$attachment_model->num_cols}
@@ -455,7 +466,7 @@ TestLink Open Source Project - http://testlink.sourceforge.net/
</div>
{* ----------------------------------------------------------------- *}
{* ----------------------------------------------------------------------------------- *}
<div>
{include file="execute/inc_exec_test_spec.tpl"
args_tc_exec=$tc_exec

0 comments on commit d074884

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.