[Rt-commit] rt branch, 5.0/search-navigation-menu-on-ticket-display, repushed
Craig Kaiser
craig at bestpractical.com
Mon Mar 23 08:59:40 EDT 2020
The branch 5.0/search-navigation-menu-on-ticket-display was deleted and repushed:
was 8f3bc5a64a64d2ee6d9fc7a1b0893fa79c518518
now f73b0b8b772d739ead95f28143a3ff26ac40a573
1: 8f3bc5a64a ! 1: f73b0b8b77 Add search navigation menu to ticket display page
@@ -35,6 +35,15 @@
$res .= ">\n";
for my $child ($menu->children) {
+@@
+ if ( $tmp = $child->class ) {
+ $res .= ' '. $interp->apply_escapes($tmp, 'h');
+ }
+- $res .= ' btn' if ( defined $id && $id eq 'page-menu' );
++ $res .= ' btn' if ( defined $id && ( $id eq 'page-menu' || $id eq 'search-results-page-menu' ) );
+ $res .= '"';
+
+ my $path = $child->path;
diff --git a/lib/RT/Interface/Web/MenuBuilder.pm b/lib/RT/Interface/Web/MenuBuilder.pm
--- a/lib/RT/Interface/Web/MenuBuilder.pm
@@ -126,11 +135,13 @@
my $url = "?HideUnsetFields=" . ($HideUnsetFields ? 0 : 1) . ";id=$ARGS{id}";
my $url_html = $m->interp->apply_escapes($url, 'h');
-+my $search_menu = $m->scomp( '/Elements/Menu', menu => SearchResultsPageMenu(), class => 'sf-menu sf-js-enabled sf-shadow', id => 'search-results-page-menu', 'parent_id' => 'page' );
++my $search_menu = $m->scomp( '/Elements/Menu', menu => SearchResultsPageMenu(), class => 'btn-group page-nav-shadow sf-menu sf-js-enabled sf-shadow', id => 'search-results-page-menu', 'parent_id' => 'page' );
my $alt = loc('Edit');
my $titleright = qq{
<div class="btn-group dropdown">
-+ $search_menu
++ <div class="search-results-page-menu-container">
++ $search_menu
++ </div>
<a id="metadata-dropdown" href="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="fas fa-cog icon-bordered fa-2x" alt="$alt" data-toggle="tooltip" data-placement="top" data-original-title="$alt"></span>
</a>
@@ -196,3 +207,7 @@
+ -moz-box-shadow: 0 0 10px rgba(0,0,0,0.4);
+ -webkit-box-shadow: 0 0 10px rgba(0,0,0,0.4);
+}
++
++.search-results-page-menu-container {
++ padding-right: 5px;
++}
More information about the rt-commit
mailing list