|
|
|
@ -6,31 +6,33 @@
|
|
|
|
|
*/ |
|
|
|
|
{template .view} |
|
|
|
|
|
|
|
|
|
// Always add one subview |
|
|
|
|
{call .subview data="all"} |
|
|
|
|
{param index: 0 /} |
|
|
|
|
{/call} |
|
|
|
|
<div class="et-mirror-contents"> |
|
|
|
|
// Always add one subview |
|
|
|
|
{call .subview data="all"} |
|
|
|
|
{param index: 0 /} |
|
|
|
|
{/call} |
|
|
|
|
|
|
|
|
|
// Add additional mirrors, up to 10 total |
|
|
|
|
{foreach $index in [1, 2, 3, 4, 5, 6, 7, 8, 9]} |
|
|
|
|
{if $config['mirrorRepoUrl' + $index] or $config['username' + $index]} |
|
|
|
|
{call .subview data="all"} |
|
|
|
|
{param index: $index /} |
|
|
|
|
{/call} |
|
|
|
|
{/if} |
|
|
|
|
{/foreach} |
|
|
|
|
// Add additional mirrors, up to 10 total |
|
|
|
|
{foreach $index in [1, 2, 3, 4, 5, 6, 7, 8, 9]} |
|
|
|
|
{if $config['mirrorRepoUrl' + $index] or $config['username' + $index]} |
|
|
|
|
{call .subview data="all"} |
|
|
|
|
{param index: $index /} |
|
|
|
|
{/call} |
|
|
|
|
{/if} |
|
|
|
|
{/foreach} |
|
|
|
|
|
|
|
|
|
// Button to add additional mirrors |
|
|
|
|
{call aui.buttons.button} |
|
|
|
|
{param id: 'et-add-button' /} |
|
|
|
|
{param text: 'Add Mirror' /} |
|
|
|
|
{param extraAttributes: 'type=button' /} |
|
|
|
|
{/call} |
|
|
|
|
// Button to add additional mirrors |
|
|
|
|
{call aui.buttons.button} |
|
|
|
|
{param id: 'et-add-button' /} |
|
|
|
|
{param text: 'Add Mirror' /} |
|
|
|
|
{param extraAttributes: 'type=button' /} |
|
|
|
|
{/call} |
|
|
|
|
|
|
|
|
|
// Call init method with subview callback |
|
|
|
|
<script> |
|
|
|
|
require("et/hook/mirror").init(com.englishtown.bitbucket.hook.subview, aui.buttons.button); |
|
|
|
|
</script> |
|
|
|
|
// Call init method with subview callback |
|
|
|
|
<script> |
|
|
|
|
require("et/hook/mirror").init(com.englishtown.bitbucket.hook.subview, aui.buttons.button); |
|
|
|
|
</script> |
|
|
|
|
</div> |
|
|
|
|
{/template} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|