On Lunes, 9 de Agosto de 2010 11:54:42 gs84 escribió:
> On 9 août, 08:48, "Sergio Cambra .:: entreCables S.L. ::."
>
> <[email protected]> wrote:
> > On Viernes, 6 de Agosto de 2010 13:50:44 gs84 escribió:
> > > But i have another question about the override of active-scaffold
> > > Pagination. I want to have something like this: Preview|1|2|
> > > 3|...Next , with a background-color on the current page number.
> > > Do you have any idea on how i can get that result.
> > >
> > > Thanks again.
> >
> > It was not possible to set a CSS style to current page, because there
> > wasn't inside a tag. I have fixed and you can do it using CSS, set the
> > background for .active-scaffold-footer .active-scaffold-pagination span
>
> Does it mean that i have to update my Active-scaffold version to get
> this change?
Yes, you will have to update ActiveScaffold. I have only added the change to
master branch. If you are using rails-2.3 branch and you get deprecation
warnings, fix them before changing to master branch.
>
> So i tried the following
> .active-scaffold-footer .active-scaffold-pagination .current_page
> {background-color:#49525c; color:#fff;}
>
> And in add the span tag in active-scaffold _list_pagination_links like
> this:
>
> <span class="current_page">
> <%= pagination_ajax_links current_page, pagination_params,
> active_scaffold_config.list.page_links_window %>
> </span>
> But i have the backgroung-color on all the pagination links.
If you want to patch your active_scaffold copy you will have to change
pagination_ajax_links method in lib/active_scaffold/helpers/pagination_helpers
and change the line:
html << num
--
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) [email protected]
--
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/activescaffold?hl=en.