Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion r1494 committed - - Updated paging.ttc template to optionally show pager metadata, such ...

Received: by 10.101.187.16 with SMTP id o16mr668675anp.6.1310755336677;
        Fri, 15 Jul 2011 11:42:16 -0700 (PDT)
X-BeenThere: gantry@googlegroups.com
Received: by 10.100.233.19 with SMTP id f19ls114352anh.7.gmail; Fri, 15 Jul
 2011 11:42:15 -0700 (PDT)
Received: by 10.100.151.7 with SMTP id y7mr1373568and.8.1310755335451;
        Fri, 15 Jul 2011 11:42:15 -0700 (PDT)
Received: by 10.100.151.7 with SMTP id y7mr1373567and.8.1310755335418;
        Fri, 15 Jul 2011 11:42:15 -0700 (PDT)
Return-Path: <3BoogThAKBhMv7wxB1Cx-67Ax84Hz77z4x.v75zt6CAHz77z4xzA7D8B....@codesite.bounces.google.com>
Received: from mail-yw0-f75.google.com (mail-yw0-f75.google.com [209.85.213.75])
        by gmr-mx.google.com with ESMTPS id t25si1248998anp.1.2011.07.15.11.42.15
        (version=TLSv1/SSLv3 cipher=OTHER);
        Fri, 15 Jul 2011 11:42:15 -0700 (PDT)
Received-SPF: pass (google.com: domain of 3BoogThAKBhMv7wxB1Cx-67Ax84Hz77z4x.v75zt6CAHz77z4xzA7D8B....@codesite.bounces.google.com designates 209.85.213.75 as permitted sender) client-ip=209.85.213.75;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of 3BoogThAKBhMv7wxB1Cx-67Ax84Hz77z4x.v75zt6CAHz77z4xzA7D8B....@codesite.bounces.google.com designates 209.85.213.75 as permitted sender) smtp.mail=3BoogThAKBhMv7wxB1Cx-67Ax84Hz77z4x.v75zt6CAHz77z4xzA7D8B....@codesite.bounces.google.com; dkim=pass (test mode) header...@google.com
Received: by ywt2 with SMTP id 2so180249ywt.0
        for <gantry@googlegroups.com>; Fri, 15 Jul 2011 11:42:15 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=google.com; s=beta;
        h=mime-version:x-generated-by:message-id:date:subject:from:to
         :content-type;
        bh=W6iGnrs8lWJMsg4k6kx82gq1511w39I+KsO8K3wt2g0=;
        b=rE485PsR/O9IOvWe7z/Z1t7Cxfn2ZuGNQjcd4GBpdrkgElPFpsbaQnJM8QlKSFhQHj
         uVJB3ZIH3RZ/Q9rYe++w==
MIME-Version: 1.0
Received: by 10.224.196.66 with SMTP id ef2mr4375408qab.22.1310755334897; Fri,
 15 Jul 2011 11:42:14 -0700 (PDT)
X-Generated-By: Google Code
Message-ID: <20cf300faee31fd4d804a8200...@google.com>
Date: Fri, 15 Jul 2011 18:42:14 +0000
Subject: [gantry] r1494 committed - - Updated paging.ttc template to
 optionally show pager metadata, such ...
From: codesite-nore...@google.com
To: gantry@googlegroups.com
Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes

Revision: 1494
Author:   scott.hunter....@gmail.com
Date:     Fri Jul 15 11:41:53 2011
Log:      - Updated paging.ttc template to optionally show pager metadata,  
such as
   a line saying "Showing X - Y of Z results".
- Fix bug with results.tt and sfbb/results.tt where the livesearch was not
   being output to the page unless the 'show_dev_navigation' config option
   was set. Livesearch should be displayed, if enabled, regardless of the
   'show_dev_navigation' config option being set.
- Updated results.tt and sfbb/results.tt to only output h3 tags if the
   overheading variable is actually defined and not an empty string.


http://code.google.com/p/gantry/source/detail?r=1494

Modified:
  /trunk/Changes
  /trunk/MANIFEST
  /trunk/META.yml
  /trunk/Makefile.PL
  /trunk/lib/Gantry.pm
  /trunk/root/paging.ttc
  /trunk/root/results.tt
  /trunk/root/sfbb/results.tt

=======================================
--- /trunk/Changes	Tue Jun 21 07:32:32 2011
+++ /trunk/Changes	Fri Jul 15 11:41:53 2011
@@ -1,5 +1,15 @@
  This file documents the revision history for Perl extension Gantry

+3.82 Fri Jul 15 13:18:00 CDT 2011
+    - Updated paging.ttc template to optionally show pager metadata, such  
as
+      a line saying "Showing X - Y of Z results".
+    - Fix bug with results.tt and sfbb/results.tt where the livesearch was  
not
+      being output to the page unless the 'show_dev_navigation' config  
option
+      was set. Livesearch should be displayed, if enabled, regardless of  
the
+      'show_dev_navigation' config option being set.
+    - Updated results.tt and sfbb/results.tt to only output h3 tags if the
+      overheading variable is actually defined and not an empty string.
+
  3.81 Tue Jun 21 09:30:00 CDT 2011
      - Added livesearch how-to to Cookbook pod contributed by Bill Dudley.

=======================================
--- /trunk/MANIFEST	Mon Apr  4 12:00:25 2011
+++ /trunk/MANIFEST	Fri Jul 15 11:41:53 2011
@@ -255,3 +255,4 @@
  t/utils/04_captcha.t
  t/utils/05_crypt.t
  TODO
+META.json
=======================================
--- /trunk/META.yml	Mon Apr  4 12:00:25 2011
+++ /trunk/META.yml	Fri Jul 15 11:41:53 2011
@@ -7,8 +7,9 @@
    Test::Exception: 0
    Test::More: 0
  configure_requires:
-  Module::Build: 0.36
-generated_by: 'Module::Build version 0.3603'
+  Module::Build: 0.38
+dynamic_config: 1
+generated_by: 'Module::Build version 0.38, CPAN::Meta::Converter version  
2.110930'
  license: perl
  meta-spec:
    url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -17,219 +18,325 @@
  provides:
    Gantry:
      file: lib/Gantry.pm
-    version: 3.79
+    version: 3.82
    Gantry::Build:
      file: lib/Gantry/Build.pm
+    version: 0
    Gantry::Conf:
      file: lib/Gantry/Conf.pm
+    version: 0
    Gantry::Conf::Provider:
      file: lib/Gantry/Conf/Provider.pm
+    version: 0
    Gantry::Conf::Provider::FlatFile::Config::General:
      file: lib/Gantry/Conf/Provider/FlatFile/Config/General.pm
+    version: 0
    Gantry::Conf::Provider::FlatFile::Config::Tiny:
      file: lib/Gantry/Conf/Provider/FlatFile/Config/Tiny.pm
+    version: 0
    Gantry::Conf::Provider::HTTP:
      file: lib/Gantry/Conf/Provider/HTTP.pm
+    version: 0
    Gantry::Conf::Provider::HTTP::Config::General:
      file: lib/Gantry/Conf/Provider/HTTP/Config/General.pm
+    version: 0
    Gantry::Conf::Provider::ParamBuilder:
      file: lib/Gantry/Conf/Provider/ParamBuilder.pm
+    version: 0
    Gantry::Conf::Provider::PerlSetVar:
      file: lib/Gantry/Conf/Provider/PerlSetVar.pm
+    version: 0
    Gantry::Conf::Provider::SQL::PostgreSQL:
      file: lib/Gantry/Conf/Provider/SQL/PostgreSQL.pm
+    version: 0
    Gantry::Control:
      file: lib/Gantry/Control.pm
+    version: 0
    Gantry::Control::C::Access:
      file: lib/Gantry/Control/C/Access.pm
+    version: 0
    Gantry::Control::C::AuthenBase:
      file: lib/Gantry/Control/C/AuthenBase.pm
+    version: 0
    Gantry::Control::C::AuthenCDBI:
      file: lib/Gantry/Control/C/AuthenCDBI.pm
+    version: 0
    Gantry::Control::C::AuthenRegular:
      file: lib/Gantry/Control/C/AuthenRegular.pm
+    version: 0
    Gantry::Control::C::Authz::PageBasedBase:
      file: lib/Gantry/Control/C/Authz/PageBasedBase.pm
+    version: 0
    Gantry::Control::C::Authz::PageBasedCDBI:
      file: lib/Gantry/Control/C/Authz/PageBasedCDBI.pm
+    version: 0
    Gantry::Control::C::Authz::PageBasedRegular:
      file: lib/Gantry/Control/C/Authz/PageBasedRegular.pm
+    version: 0
    Gantry::Control::C::AuthzBase:
      file: lib/Gantry/Control/C/AuthzBase.pm
+    version: 0
    Gantry::Control::C::AuthzCDBI:
      file: lib/Gantry/Control/C/AuthzCDBI.pm
+    version: 0
    Gantry::Control::C::AuthzRegular:
      file: lib/Gantry/Control/C/AuthzRegular.pm
+    version: 0
    Gantry::Control::C::Groups:
      file: lib/Gantry/Control/C/Groups.pm
+    version: 0
    Gantry::Control::C::Pages:
      file: lib/Gantry/Control/C/Pages.pm
+    version: 0
    Gantry::Control::C::Users:
      file: lib/Gantry/Control/C/Users.pm
+    version: 0
    Gantry::Control::Model::GEN::auth_group_members:
      file: lib/Gantry/Control/Model/GEN/auth_group_members.pm
+    version: 0
    Gantry::Control::Model::GEN::auth_groups:
      file: lib/Gantry/Control/Model/GEN/auth_groups.pm
+    version: 0
    Gantry::Control::Model::GEN::auth_pages:
      file: lib/Gantry/Control/Model/GEN/auth_pages.pm
+    version: 0
    Gantry::Control::Model::GEN::auth_users:
      file: lib/Gantry/Control/Model/GEN/auth_users.pm
+    version: 0
    Gantry::Control::Model::auth_group_members:
      file: lib/Gantry/Control/Model/auth_group_members.pm
+    version: 0
    Gantry::Control::Model::auth_group_members_cdbi:
      file: lib/Gantry/Control/Model/auth_group_members_cdbi.pm
+    version: 0
    Gantry::Control::Model::auth_groups:
      file: lib/Gantry/Control/Model/auth_groups.pm
+    version: 0
    Gantry::Control::Model::auth_groups_cdbi:
      file: lib/Gantry/Control/Model/auth_groups_cdbi.pm
+    version: 0
    Gantry::Control::Model::auth_pages:
      file: lib/Gantry/Control/Model/auth_pages.pm
+    version: 0
    Gantry::Control::Model::auth_pages_cdbi:
      file: lib/Gantry/Control/Model/auth_pages_cdbi.pm
+    version: 0
    Gantry::Control::Model::auth_users:
      file: lib/Gantry/Control/Model/auth_users.pm
+    version: 0
    Gantry::Control::Model::auth_users_cdbi:
      file: lib/Gantry/Control/Model/auth_users_cdbi.pm
+    version: 0
    Gantry::Engine::CGI:
      file: lib/Gantry/Engine/CGI.pm
+    version: 0
    Gantry::Engine::MP13:
      file: lib/Gantry/Engine/MP13.pm
+    version: 0
    Gantry::Engine::MP20:
      file: lib/Gantry/Engine/MP20.pm
+    version: 0
    Gantry::Exception:
      file: lib/Gantry/Exception.pm
+    version: 0
    Gantry::Init:
      file: lib/Gantry/Init.pm
+    version: 0
    Gantry::Plugins::AjaxCRUD:
      file: lib/Gantry/Plugins/AjaxCRUD.pm
+    version: 0
    Gantry::Plugins::AjaxFORM:
      file: lib/Gantry/Plugins/AjaxFORM.pm
+    version: 0
    Gantry::Plugins::AuthCookie:
      file: lib/Gantry/Plugins/AuthCookie.pm
+    version: 0
    Gantry::Plugins::AuthCookie::AuthUserObject:
      file: lib/Gantry/Plugins/AuthCookie.pm
+    version: 0
    Gantry::Plugins::AutoCRUD:
      file: lib/Gantry/Plugins/AutoCRUD.pm
+    version: 0
    Gantry::Plugins::AutoCRUDHelper::CDBI:
      file: lib/Gantry/Plugins/AutoCRUDHelper/CDBI.pm
+    version: 0
    Gantry::Plugins::AutoCRUDHelper::DBIxClass:
      file: lib/Gantry/Plugins/AutoCRUDHelper/DBIxClass.pm
+    version: 0
    Gantry::Plugins::CRUD:
      file: lib/Gantry/Plugins/CRUD.pm
+    version: 0
    Gantry::Plugins::Cache:
      file: lib/Gantry/Plugins/Cache.pm
+    version: 0
    Gantry::Plugins::Cache::FastMmap:
      file: lib/Gantry/Plugins/Cache/FastMmap.pm
+    version: 0
    Gantry::Plugins::Cache::Memcached:
      file: lib/Gantry/Plugins/Cache/Memcached.pm
+    version: 0
    Gantry::Plugins::Cache::Storable:
      file: lib/Gantry/Plugins/Cache/Storable.pm
+    version: 0
    Gantry::Plugins::Calendar:
      file: lib/Gantry/Plugins/Calendar.pm
+    version: 0
    Gantry::Plugins::DBIxClassConn:
      file: lib/Gantry/Plugins/DBIxClassConn.pm
+    version: 0
    Gantry::Plugins::PageCache:
      file: lib/Gantry/Plugins/PageCache.pm
+    version: 0
    Gantry::Plugins::SOAP::Doc:
      file: lib/Gantry/Plugins/SOAP/Doc.pm
+    version: 0
    Gantry::Plugins::SOAP::RPC:
      file: lib/Gantry/Plugins/SOAP/RPC.pm
+    version: 0
    Gantry::Plugins::Shibboleth:
      file: lib/Gantry/Plugins/Shibboleth.pm
+    version: 0
    Gantry::Plugins::Shibboleth::AuthUserObject:
      file: lib/Gantry/Plugins/Shibboleth.pm
+    version: 0
    Gantry::Plugins::Static:
      file: lib/Gantry/Plugins/Static.pm
+    version: 0
    Gantry::Plugins::Validate:
      file: lib/Gantry/Plugins/Validate.pm
+    version: 0
    Gantry::Server:
      file: lib/Gantry/Server.pm
+    version: 0
    Gantry::Server::Tier:
      file: lib/Gantry/Server.pm
+    version: 0
    Gantry::Stash:
      file: lib/Gantry/Stash.pm
+    version: 0
    Gantry::Stash::Controller:
      file: lib/Gantry/Stash/Controller.pm
+    version: 0
    Gantry::Stash::View:
      file: lib/Gantry/Stash/View.pm
+    version: 0
    Gantry::Stash::View::Form:
      file: lib/Gantry/Stash/View/Form.pm
+    version: 0
    Gantry::State::Constants:
      file: lib/Gantry/State/Constants.pm
+    version: 0
    Gantry::State::Default:
      file: lib/Gantry/State/Default.pm
+    version: 0
    Gantry::State::Exceptions:
      file: lib/Gantry/State/Exceptions.pm
+    version: 0
    Gantry::State::Simple:
      file: lib/Gantry/State/Simple.pm
+    version: 0
    Gantry::Template::Default:
      file: lib/Gantry/Template/Default.pm
+    version: 0
    Gantry::Template::Framing:
      file: lib/Gantry/Template/Framing.pm
+    version: 0
    Gantry::Template::TT:
      file: lib/Gantry/Template/TT.pm
+    version: 0
    Gantry::Utils::AuthCDBI:
      file: lib/Gantry/Utils/AuthCDBI.pm
+    version: 0
    Gantry::Utils::CDBI:
      file: lib/Gantry/Utils/CDBI.pm
+    version: 0
    Gantry::Utils::CRON:
      file: lib/Gantry/Utils/CRON.pm
+    version: 0
    Gantry::Utils::CRUDHelp:
      file: lib/Gantry/Utils/CRUDHelp.pm
+    version: 0
    Gantry::Utils::Captcha:
      file: lib/Gantry/Utils/Captcha.pm
+    version: 0
    Gantry::Utils::Crypt:
      file: lib/Gantry/Utils/Crypt.pm
+    version: 0
    Gantry::Utils::DB:
      file: lib/Gantry/Utils/DB.pm
+    version: 0
    Gantry::Utils::DBConnHelper:
      file: lib/Gantry/Utils/DBConnHelper.pm
+    version: 0
    Gantry::Utils::DBConnHelper::MP13:
      file: lib/Gantry/Utils/DBConnHelper/MP13.pm
+    version: 0
    Gantry::Utils::DBConnHelper::MP20:
      file: lib/Gantry/Utils/DBConnHelper/MP20.pm
+    version: 0
    Gantry::Utils::DBConnHelper::Script:
      file: lib/Gantry/Utils/DBConnHelper/Script.pm
+    version: 0
    Gantry::Utils::DBIxClass:
      file: lib/Gantry/Utils/DBIxClass.pm
+    version: 0
    Gantry::Utils::FormErrors:
      file: lib/Gantry/Utils/FormErrors.pm
+    version: 0
    Gantry::Utils::FormMunger:
      file: lib/Gantry/Utils/FormMunger.pm
+    version: 0
    Gantry::Utils::HTML:
      file: lib/Gantry/Utils/HTML.pm
+    version: 0
    Gantry::Utils::Model:
      file: lib/Gantry/Utils/Model.pm
+    version: 0
    Gantry::Utils::Model::Auth:
      file: lib/Gantry/Utils/Model/Auth.pm
+    version: 0
    Gantry::Utils::Model::Regular:
      file: lib/Gantry/Utils/Model/Regular.pm
+    version: 0
    Gantry::Utils::ModelHelper:
      file: lib/Gantry/Utils/ModelHelper.pm
+    version: 0
    Gantry::Utils::PODViewer:
      file: lib/Gantry/Utils/PODViewer.pm
+    version: 0
    Gantry::Utils::PerlbalFixup:
      file: lib/Gantry/Utils/PerlbalFixup.pm
+    version: 0
    Gantry::Utils::SQL:
      file: lib/Gantry/Utils/SQL.pm
+    version: 0
    Gantry::Utils::TablePerms:
      file: lib/Gantry/Utils/TablePerms.pm
+    version: 0
    Gantry::Utils::Threeway:
      file: lib/Gantry/Utils/Threeway.pm
+    version: 0
    Gantry::Utils::Validate:
      file: lib/Gantry/Utils/Validate.pm
+    version: 0
    My::View:
      file: lib/Gantry/Utils/PODViewer.pm
+    version: 0
    Template::Plugin::GantryAuthCookie:
      file: lib/Template/Plugin/GantryAuthCookie.pm
+    version: 0
    controller:
      file: lib/Gantry/Stash/Controller.pm
+    version: 0
    form:
      file: lib/Gantry/Stash/View/Form.pm
+    version: 0
    stash:
      file: lib/Gantry/Stash.pm
+    version: 0
    view:
      file: lib/Gantry/Stash/View.pm
+    version: 0
  requires:
    CGI::Simple: 0
    Config::General: 2.31
@@ -252,4 +359,4 @@
    perl: 5.008000
  resources:
    license: http://dev.perl.org/licenses/
-version: 3.79
+version: 3.82
=======================================
--- /trunk/Makefile.PL	Mon Mar  1 15:18:37 2010
+++ /trunk/Makefile.PL	Fri Jul 15 11:41:53 2011
@@ -1,4 +1,4 @@
-# Note: this file was auto-generated by Module::Build::Compat version  
0.3603
+# Note: this file was auto-generated by Module::Build::Compat version  
0.3800
  require 5.008000;

      unless (eval "use Module::Build::Compat 0.02; 1" ) {
=======================================
--- /trunk/lib/Gantry.pm	Tue Jun 21 07:32:32 2011
+++ /trunk/lib/Gantry.pm	Fri Jul 15 11:41:53 2011
@@ -11,7 +11,7 @@
  ############################################################
  # Variables                                                #
  ############################################################
-our $VERSION = '3.81';
+our $VERSION = '3.82';
  our $DEFAULT_PLUGIN_TEMPLATE = 'Gantry::Template::Default';
  our $DEFAULT_STATE_MACHINE = 'Gantry::State::Default';
  our $CONF;
=======================================
--- /trunk/root/paging.ttc	Wed Jun 20 12:01:29 2007
+++ /trunk/root/paging.ttc	Fri Jul 15 11:41:53 2011
@@ -70,3 +70,7 @@
  <br style="clear: both" />

  [% END %]
+
+[% IF view.data.show_pager_metadata %]
+<p style="text-align: center;">Showing [% view.data.page.first %] - [%  
view.data.page.last %] of [% view.data.page.total_entries %] results</p>
+[% END %]
=======================================
--- /trunk/root/results.tt	Tue Mar  3 11:22:05 2009
+++ /trunk/root/results.tt	Fri Jul 15 11:41:53 2011
@@ -1,6 +1,5 @@
  [% title = view.title %]

-
  [%
      colspan = ( view.data.headings.size || 0 );

@@ -11,7 +10,9 @@
      pho_colspan = colspan;
  %]

-<h3>[% view.data.overheading %]</h3>
+[%- IF view.data.overheading.match('.+') %]
+<h3 class="overheading">[% view.data.overheading %]</h3>
+[%- END %]

  [% IF view.data.search_fields %]
  <div class="box">
@@ -40,6 +41,16 @@
      </td>
  </tr>
  </table>
+[%- ELSIF view.data.livesearch %]
+<table id="livesearch-container">
+    <tr>
+        <td>
+            <input type="text"   name="livesearch" id="livesearch"  
value="" />
+            <input type="button" name="search" value="search"
+                onclick="javascript: livesearch();">
+        </td>
+    </tr>
+</table>
  [%- END %]

  <div class="box">
=======================================
--- /trunk/root/sfbb/results.tt	Mon Apr  4 09:19:36 2011
+++ /trunk/root/sfbb/results.tt	Fri Jul 15 11:41:53 2011
@@ -58,6 +58,16 @@
          [%- END %]
      </td>
  </tr>
+</table>
+[%- ELSIF view.data.livesearch %]
+<table id="livesearch-container">
+    <tr>
+        <td>
+            <input type="text"   name="livesearch" id="livesearch"  
value="" />
+            <input type="button" name="search" value="search"
+                onclick="javascript: livesearch();">
+        </td>
+    </tr>
  </table>
  [%- END %]