Home » Problème » 132
Improve kernel list on hardware pages
submitted by lammi87, 15:32, 25 Juin 2012
SUJET: other
STATUS: opened
PRIORITE: medium
Description:

Hi, this is lammi 87.

I think we should improve the way how the kernels are listed in the hardware pages. Currently they are stored in a long string and the formating can get really messy if there are many kernels in the list, like this:

tested with the following kernel libre:    2.6.35-24-generic, 3.0.
                                           0-17-generic, 3.0.1-17-g
                                           eneric, 3.2.0-24-generic

We should make it look nice and clean no matter how many kernels are in the list. It should look something like this:

tested with the following kernel libre:    2.6.35-24-generic
                                           3.0.0-17-generic
                                           3.0.1-17-generic
                                           3.2.0-24-generic

Now the list is clean. The kernels are nicely on their own rows and there are no commas or other extra characters in the list. Now they are listed just like the GNU/Linux distribution which are used to test the device:

tested on:                                 Trisquel 4.0 Taranis
                                           Trisquel 4.5 Slaine
                                           Trisquel 5.0 Dagda
                                           Trisquel 5.5 Brigantia

But how should we implement this? On the source code level the kernels can still be listen on one string separeted by some character like "¤" so that they can be easily picked up from the string. The user interface, on the other hand, is a bit more complicated, because it must be really easy and convenient for the user to use.

I suggest we use the form which is used to add and remove GNU/Linux distributions (which were used to test the device) and modify it a bit. So, when a user clicks the textfield tested with the following kernel libre, he can write his kernel version in that textfield and use tickboxes to remove old kernels from the list. This list is similar to the one which is presented to the user when he clicks the GNU/Linux distribution used for the test textfield, but here it lists the old kernel versions which were used to test the device if there are any.

What do you think?

Messages:
tonicucoz:

Ok, we could write the kernels in the format suggested by you:

tested with the following kernel libre:    2.6.35-24-generic
                                           3.0.0-17-generic
                                           3.0.1-17-generic
                                           3.2.0-24-generic

And, in the future, add a Javascript feature to help the user during the compilation of the entry, as suggested by you

submitted by tonicucoz, 06:25, 27 Juin 2012
lammi87:
Thanks tonicucoz, glad I can help.
submitted by lammi87, 12:42, 27 Juin 2012
tonicucoz:
Improved first part in SVN
submitted by tonicucoz, 01:26, 2 Juillet 2012
tonicucoz:
added a notice for the kernel entry too
submitted by tonicucoz, 01:51, 2 Juillet 2012

Write below your motivation

h-node.org is a hardware database project. It runs the h-source PHP software, version SVN-387, available under the GNU General Public (GPLv3) License.
JavaScript license information