Mailinglist Archive: yast-devel (128 mails)

< Previous Next >
Re: [yast-devel] WebYaST: users and groups
  • From: Lukas Ocilka <lukas.ocilka@xxxxxxx>
  • Date: Wed, 17 Feb 2010 17:25:04 +0100
  • Message-id: <4B7C1860.8080100@xxxxxxx>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dne 17.2.2010 16:29, Klaus Kaempf napsal(a):
* Michal Zugec <mzugec@xxxxxxx> [Feb 17. 2010 15:37]:
2 - when one of the lists is too long it looks very bad. Any idea how to
solve it? (scrollbars, align into more columns, ...)

For this we need a generic solution. Rails offers a couple of
'paginate' extensions.

SLMS uses exactly this:
config.gem 'mislav-will_paginate', :version => '~> 2.3.6', :lib =>
'will_paginate', :source => 'http://gems.github.com'

Easy to understand, easy to use. Example:
@subscriptions = Subscription.paginate :all, :page => params[:page],
:conditions => conditions, :order => order

Bye
Lukas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/

iD8DBQFLfBhgVSqMdRCqTiwRAtAgAJ42Uay1mYrAmh6pexJvTfvJEdhowwCfRLRR
y6F4GnafZwyoJ3pydTTUzsg=
=cZ7Q
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups