[Rt-commit] rt branch, 4.6/header-redesign, updated. rt-4.4.4-501-g36cfeec13d

Jim Brandt jbrandt at bestpractical.com
Thu Nov 7 17:12:47 EST 2019


The branch, 4.6/header-redesign has been updated
       via  36cfeec13d3d8db8601e4927a99975049e9e5e29 (commit)
       via  c9c4afc73a48cf695c1e9ab09d860379e89b9bd7 (commit)
      from  5732109146c7e739c8a615f65f0a2bc3001c77a2 (commit)

Summary of changes:
 lib/RT/Interface/Web/MenuBuilder.pm              | 2 +-
 share/html/Articles/Elements/GotoArticle         | 2 +-
 share/html/Asset/Elements/Search                 | 2 +-
 share/static/css/elevator-light/nav.css          | 6 ------
 share/static/css/elevator-light/ticket-timer.css | 4 ++++
 5 files changed, 7 insertions(+), 9 deletions(-)

- Log -----------------------------------------------------------------
commit c9c4afc73a48cf695c1e9ab09d860379e89b9bd7
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Thu Nov 7 16:36:36 2019 -0500

    Make timer header consistent with new page header

diff --git a/share/static/css/elevator-light/ticket-timer.css b/share/static/css/elevator-light/ticket-timer.css
index 2469e3ce31..e2d9b5ac57 100644
--- a/share/static/css/elevator-light/ticket-timer.css
+++ b/share/static/css/elevator-light/ticket-timer.css
@@ -26,6 +26,9 @@
 
     /* for text-overflow: ellipsis */
     font-weight: bold;
+    border-bottom-color: #547CCC;
+    border-bottom-width: 2px;
+    border-bottom-style: solid;
 }
 
 .ticket-timer .ticket-link a {
@@ -41,6 +44,7 @@
 
 .ticket-timer .control-line {
     text-align: center;
+    padding-bottom: 5px;
 }
 
 .ticket-timer .control-line a {

commit 36cfeec13d3d8db8601e4927a99975049e9e5e29
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Thu Nov 7 16:54:34 2019 -0500

    Align search box interfaces
    
    Make search boxes for tickets, assets, and articles all
    look the same (bootstrap), have the same "Search X" text,
    and all expand the search box when selected.

diff --git a/lib/RT/Interface/Web/MenuBuilder.pm b/lib/RT/Interface/Web/MenuBuilder.pm
index 31921447ea..f7129cc075 100644
--- a/lib/RT/Interface/Web/MenuBuilder.pm
+++ b/lib/RT/Interface/Web/MenuBuilder.pm
@@ -87,7 +87,7 @@ sub BuildMainNav {
         $widgets->child( article_search => raw_html => $HTML::Mason::Commands::m->scomp('/Articles/Elements/GotoArticle') );
         $widgets->child( create_article => raw_html => $HTML::Mason::Commands::m->scomp('/Articles/Elements/CreateArticleButton') );
     } else {
-        $widgets->child( simple_search => raw_html => $HTML::Mason::Commands::m->scomp('SimpleSearch') );
+        $widgets->child( simple_search => raw_html => $HTML::Mason::Commands::m->scomp('SimpleSearch', Placeholder => loc('Search Tickets')) );
         $widgets->child( create_ticket => raw_html => $HTML::Mason::Commands::m->scomp('CreateTicket', ButtonOnly => 1) );
     }
 
diff --git a/share/html/Articles/Elements/GotoArticle b/share/html/Articles/Elements/GotoArticle
index 7f5bc3fdd8..d4c01943e1 100644
--- a/share/html/Articles/Elements/GotoArticle
+++ b/share/html/Articles/Elements/GotoArticle
@@ -47,7 +47,7 @@
 %# END BPS TAGGED BLOCK }}}
 <form action="<% RT->Config->Get('WebPath') %>/Articles/Article/Search.html" class="article-search">
   <input type="hidden" name="HideOptions" value="1" />
-  <input name="q" accesskey="0" class="field" placeholder="<&|/l&>Search Articles</&>..." type="search" results=5 autosave="search-articles" />
+  <input name="q" accesskey="0" class="field form-control" placeholder="<&|/l&>Search Articles</&>..." type="search" results="5" autosave="search-articles" />
 % if ($class or $topic) {
 <input type="hidden" name="ExpandTopics" value="1" />
 <select name="Topics">
diff --git a/share/html/Asset/Elements/Search b/share/html/Asset/Elements/Search
index 1a84e18914..29af1c24dc 100644
--- a/share/html/Asset/Elements/Search
+++ b/share/html/Asset/Elements/Search
@@ -46,7 +46,7 @@
 %#
 %# END BPS TAGGED BLOCK }}}
 <form action="<% RT->Config->Get('WebPath') %>/Asset/Search/" class="asset-search">
-  <input name="q" accesskey="0" class="field form-control" value="<% $value %>" placeholder="<&|/l&>Search Assets</&>..." type="search" results=5 autosave="search-assets" />
+  <input name="q" accesskey="0" class="field form-control" value="<% $value %>" placeholder="<&|/l&>Search Assets</&>..." type="search" results="5" autosave="search-assets" />
 </form>
 <%init>
 my $value = defined $DECODED_ARGS->{q} ? $DECODED_ARGS->{q} : '';
diff --git a/share/static/css/elevator-light/nav.css b/share/static/css/elevator-light/nav.css
index f07b3e808d..05b9db7157 100644
--- a/share/static/css/elevator-light/nav.css
+++ b/share/static/css/elevator-light/nav.css
@@ -253,12 +253,6 @@ ul.sf-menu li {
     transition: width 0.25s ease-in-out;
 }
 
-#topactions .asset-search input[type="search"],
-#topactions .article-search input[type="search"]
- {
-    width: 16em;
-}
-
 @-moz-document url-prefix() {
     #topactions select.select-queue {
         padding-top: 0.25em;

-----------------------------------------------------------------------


More information about the rt-commit mailing list