[Bps-public-commit] rt-extension-assets branch, master, updated. 7096f3f9ee3ff3739b0b801e9f53174306dd027a

Kevin Falcone falcone at bestpractical.com
Fri Nov 8 15:35:01 EST 2013


The branch, master has been updated
       via  7096f3f9ee3ff3739b0b801e9f53174306dd027a (commit)
      from  3068d879dd99edf03bdcd5633fa3142ffc236ef5 (commit)

Summary of changes:
 html/Asset/Search/index.html | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

- Log -----------------------------------------------------------------
commit 7096f3f9ee3ff3739b0b801e9f53174306dd027a
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Fri Nov 8 14:52:40 2013 -0500

    Display the number of assets found.
    
    When running a search, mimic Tickets which tells you "Found 42 tickets".

diff --git a/html/Asset/Search/index.html b/html/Asset/Search/index.html
index 3867774..4c7bae4 100644
--- a/html/Asset/Search/index.html
+++ b/html/Asset/Search/index.html
@@ -54,8 +54,12 @@ my %search = ProcessAssetsSearchArguments(
     Assets => $assets, Catalog => $catalog_obj, ARGSRef => \%ARGS,
 );
 
+my $title = ( $ARGS{'SearchAssets'} or $ARGS{q} ) ?
+      loc("Found [quant,_1,asset]",$assets->Count)
+    : loc("Assets");
+
 </%init>
-<& /Elements/Header, Title => loc("Assets") &>
+<& /Elements/Header, Title => $title &>
 <& /Elements/Tabs &>
 
 % if ( $ARGS{'SearchAssets'} or $ARGS{q} ){

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



More information about the Bps-public-commit mailing list