Commit 4f3c027c authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug #1474354: Need to hide the 'details' of block when retracted



Whether the block is retracted on load or manually retracted

This fix wraps both the content and details bar in a div so both can
be hidden / shown.

Change-Id: Ibea05921372acbe7d925468d1287ede89dfb42c9
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 2a1b1adb
......@@ -32,19 +32,20 @@
{else}
{if $link}
<a href="{$link}" class="text-default btn-default btn-sm pull-right">
{str tag=detailslinkalt section=view}
{str tag=detailslinkalt section=view}
</a>
{/if}
{/if}
<div class="{if $retractable} collapse{if $retractedonload}{else} in{/if}{/if}" id="blockinstance_{$id}_target">
<div class="{if !$title}no-heading {/if}block" id="blockinstance_{$id}_target" {if $loadbyajax}data-blocktype-ajax="{$id}"{else}data-blocktype-noajax="{$id}"{/if}>{if !$loadbyajax}{$content|safe}{/if}</div>
<div class="{if !$title}no-heading {/if}block{if $retractable} collapse{if $retractedonload}{else} in{/if}{/if}" id="blockinstance_{$id}_target" {if $loadbyajax}data-blocktype-ajax="{$id}"{else}data-blocktype-noajax="{$id}"{/if}>{if !$loadbyajax}{$content|safe}{/if}</div>
{if $viewartefacturl}
{if $viewartefacturl}
<a href="{$viewartefacturl}" title="{str tag=clickformoreinformation section=view}" class="panel-footer mtl">
{str tag=detailslinkalt section=view}
{str tag=detailslinkalt section=view}
<span class="icon icon-arrow-circle-right mls pull-right"></span>
</a>
{/if}
</div>
</div>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment