Commit 1770ae79 authored by Thomas Sibley's avatar Thomas Sibley
Browse files

Allow TitleBoxes to not be hideable (and make this true for the Login titleboxes)

git-svn-id: svn+ssh://svn.bestpractical.com/svn/bps-public/rt/branches/3.5-TESTING@3435 e417ac7c-1bcc-0310-8ffa-8f5827389a85
parent d97991b3
......@@ -67,13 +67,13 @@ if ($m->request_comp->path =~ '^/REST/\d+\.\d+/') {
<div id="body">
% if ($Error) {
<&| "/Widgets/TitleBox" , title => loc('Error') &>
<&| "/Widgets/TitleBox", title => loc('Error'), hideable => 0 &>
<% $Error %>
</&>
% }
<div id="login-box">
<&| /Widgets/TitleBox, title => loc('Login'), titleright => $RT::VERSION &>
<&| /Widgets/TitleBox, title => loc('Login'), titleright => $RT::VERSION, hideable => 0 &>
% unless ($RT::WebExternalAuth and !$RT::WebFallbackToInternalAuth) {
<form id="login" name="login" method="post" action="<% (UNIVERSAL::can($r, 'uri') && ($r->uri) =~ m!.*/(.*)!) %>">
......
......@@ -45,7 +45,9 @@
%# END BPS TAGGED BLOCK }}}
<div class="titlebox<% $class && " $class" %>"<% $id && qq[ id="$id"] |n %>>
<div class="title<% $title_class && " $title_class" %>">
% if ($hideable) {
<span class="widget"><a href="#" id="<%$tid%>-link" onclick="return rollup('<%$tid%>');" onfocus="this.blur(); return false;">^</a></span>
% }
<span class="left"><% $title_href && qq[<a href="$title_href">] | n %><% $title |n %><% $title_href && "</a>" |n%></span>
<span class="right"><% $titleright_href && qq[<a href="$titleright_href">] | n %><% $titleright |n %><% $titleright_href && "</a>" |n%></span>
</div>
......@@ -63,6 +65,7 @@ $titleright => undef
$contentbg => "#dddddd"
$color => "#336699"
$id => undef
$hideable => 1
</%ARGS>
<%init>
......
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