[opensuse-buildservice] Changing the default count of displayed packages in the webui
Hi, I'm searching for a configuration or if not available a place in the source code to change the default count (currently 25) of displayed packages of a project in the webui (OBS version 2.4). I already found a place to change the the default project count to 50, but did not found something similar for the package list. I changed (maybe wrong place, but working :-)): in webui/app/views/project/list.html.erb the call to renderProjectsTable(); into renderProjectsTable(length=50); and now up to 50 projects are displayed per default. Do here be a similar place to do it for the package count as well, or is here a better solution ? I our private instance we usually have 100+ packages in the projects, so if somebody opens a project in firefox, the first action is to change the selection box to show 100 entries, unfortunately, if you go to a other project, the setting is again only 25 entries. Thanks Karsten -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Hey, On 04.04.2014 16:53, Karsten Keil wrote:
I'm searching for a configuration
This isn't configurable.
or if not available a place in the source code to change the default count (currently 25) of displayed packages of a project in the webui (OBS version 2.4).
app/views/project/show.html.erb:173 - renderPackagesTable(packages); + renderPackagesTable(packages, 100); Henne -- Henne Vogelsang http://www.opensuse.org Everybody has a plan, until they get hit. - Mike Tyson -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Hey Henne, Am 07.04.2014 13:11, schrieb Henne Vogelsang:
Hey,
On 04.04.2014 16:53, Karsten Keil wrote:
I'm searching for a configuration
This isn't configurable.
or if not available a place in the source code to change the default count (currently 25) of displayed packages of a project in the webui (OBS version 2.4).
app/views/project/show.html.erb:173 - renderPackagesTable(packages); + renderPackagesTable(packages, 100);
Great. How could I miss this in my search ? - I really do not know. Thanks a lot Karsten -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Yo, On 08.04.2014 08:10, Karsten Keil wrote:
Am 07.04.2014 13:11, schrieb Henne Vogelsang:
On 04.04.2014 16:53, Karsten Keil wrote:
source code to change the default count
app/views/project/show.html.erb:173
How could I miss this in my search ? - I really do not know.
ack ;-) Henne -- Henne Vogelsang http://www.opensuse.org Everybody has a plan, until they get hit. - Mike Tyson -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Hey again, Am 08.04.2014 08:10, schrieb Karsten Keil:
Hey Henne,
Am 07.04.2014 13:11, schrieb Henne Vogelsang:
Hey,
On 04.04.2014 16:53, Karsten Keil wrote:
I'm searching for a configuration
This isn't configurable.
or if not available a place in the source code to change the default count (currently 25) of displayed packages of a project in the webui (OBS version 2.4).
app/views/project/show.html.erb:173 - renderPackagesTable(packages); + renderPackagesTable(packages, 100);
Great. How could I miss this in my search ? - I really do not know.
Seems I did not oversaw it in my experiments some days ago, this change does not work. I still get the same 25 entry display for a project with 144 packages (I restarted the server). Somehow it seems that the parameter is ignored in this case. Since you pointed me to this place as well I was digging a little deeper in this issue and found it: renderPackagesTable() does ignore the length parameter, it does not set "iDisplayLength": length as the other functions in projects.js do: --- a/src/webui/app/assets/javascripts/project.js +++ b/src/webui/app/assets/javascripts/project.js - } ] + } ], + "iDisplayLength": length This together with the above change do it for me. Note: this changed need to be in the source code, since the javascript stuff gets compiled. I created a pull request for this change (in branch 2.4; only fixing the javascript function). Karsten -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (3)
-
Henne Vogelsang
-
Karsten Keil
-
Karsten Keil