Commit 503424a6 authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 1718821: Displaying correct title for group/institution selector



On the artefact chooser

behatnotneeded

Change-Id: I91bc80b5aff35d68d5bb90bf68abb6b058d5849b
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 31404f0a
......@@ -1252,4 +1252,6 @@ $string['styleguide_description'] = 'This style guide describes all the differen
// Miscellaneous (please keep these alphabetized)
$string['cli_incorrect_value'] = 'Incorrect value, please retry.';
$string['scroll_to_top'] = 'Back to top';
$string['tabgroup'] = 'Group';
$string['tabinstitution'] = 'Institution';
$string['version.'] = 'v.'; // version shortname, used when duplicating pages and collections
{if $tabs.subtabs}
<div class="btn-group">
<div class="btn-group ownersubtab">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
{str tag=groups}
{str tag="tab$tabs.owner"}
<span class="icon icon-caret-down right" role="presentation" aria-hidden="true"></span>
</button>
<ul class="artefactchooser-subtabs dropdown-menu" role="menu">
{foreach from=$tabs.subtabs item=displayname key=ownerid name=subtab}
<li class="{if $tabs.ownerid == $ownerid}active {/if}{if !$dwoo.foreach.subtab.last} showrightborder{/if}">
<a class="changeowner" href="{$querybase}owner={$tabs.owner}&ownerid={$ownerid}">
<a class="changeowner" href="{$querybase|safe}owner={$tabs.owner}&ownerid={$ownerid}">
{$displayname}
</a>
</li>
{/foreach}
</ul>
<div class="artefactchooser-subtabs-selected">
<em class="js-dropdown-context text-midtone text-small">
{foreach from=$tabs.subtabs item=displayname key=ownerid name=subtab}
{if $tabs.ownerid == $ownerid}({$displayname}){/if}
{/foreach}
</em>
</div>
</div>
{/if}
<ul class="artefactchooser-tabs files nav nav-tabs" role="tablist">
{foreach from=$tabs.tabs item=displayname key=name}
<li{if $tabs.owner == $name} class="active"{/if}>
<a class="changeowner" href="{$querybase}owner={$name}" role="tab">
<a class="changeowner" href="{$querybase|safe}owner={$name}" role="tab">
{$displayname}
<span class="accessible-hidden sr-only">
({str tag=tab}
......
......@@ -529,4 +529,8 @@
float: left;
margin-right: 15px;
padding: 5px;
}
.ownersubtab {
padding: 4px 0;
}
\ No newline at end of file
......@@ -18,4 +18,9 @@
.artefactchooser-search {
padding: 10px 0;
}
\ No newline at end of file
}
.artefactchooser-subtabs-selected {
display: inline-block;
padding: 7px;
}
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