Commit 6deb7b9d authored by Alex Vandiver's avatar Alex Vandiver
Browse files

Allow TitleBoxes to default to rolled up

parent 9290a024
......@@ -45,7 +45,7 @@
%# those contributions and any derivatives thereof.
%#
%# END BPS TAGGED BLOCK }}}
<div class="titlebox<% $class ? " $class " : '' %>" id="<% $id %>">
<div class="titlebox<% $class ? " $class " : '' %><% $rolledup ? " rolled-up" : ""%>" id="<% $id %>">
<div class="titlebox-title<% $title_class ? " $title_class" : ''%>">
% if ($hideable) {
<span class="widget"><a href="#" onclick="return rollup('<%$tid%>');" title="Toggle visibility"></a></span>
......@@ -58,7 +58,7 @@
<% $titleright %><% $titleright_raw |n%><% $titleright_href ? "</a>" : '' |n%>\
</span>
</div>
<div class="titlebox-content <% $bodyclass %>" id="<% $tid %>">
<div class="titlebox-content <% $bodyclass %><% $rolledup ? " hidden" : ""%>" id="<% $tid %>">
<%ARGS>
$class => ''
$bodyclass => ''
......@@ -71,9 +71,11 @@ $titleright => ''
$titleright_raw => ''
$id => ''
$hideable => 1
$rolledup => 0
</%ARGS>
<%init>
$hideable = 1 if $rolledup;
#
# This should be pretty bulletproof
#
......
Supports Markdown
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