I think while working on #310446: Remove issue creation links from project pages, someone in IRC suggested that we move to a 3 column layout for the pile-o-links on project nodes. Seems like a better use of space. I'm working on this will trying to sync DB tables between d.o and p.d.o to test #326197: Empty data for latest week. Stay tuned for a patch and screenshot.

Comments

dww’s picture

Status: Active » Needs review
StatusFileSize
new95.12 KB
new2.03 KB

Like so: http://project.drupal.org/project/drupal (might need to shift reload)
See attached screenshot and patch.

There's one minor hack in the patch -- if a link section includes 'clear' => TRUE we output a <br style="clear:both" /> after it. The is so that the 3 column stuff starts after the links for the release table, since that just seemed weird to be the first column. Suggestions for better ways to handle this would be welcome -- my fairly limited CSS fu is shining through here. ;)

dww’s picture

StatusFileSize
new2.04 KB

Slightly clearer patch, minor CSS tweaks.

dww’s picture

Status: Needs review » Fixed

Committed to HEAD + DRUPAL-5, deployed on p.d.o and d.o.

morbus iff’s picture

Status: Fixed » Needs work
StatusFileSize
new65.61 KB

Doesn't fit on my regular browsing resolution (1010px wide, as set by Web Developer Toolbar).

morbus iff’s picture

Only happens for me when "Try out a demonstration" is enabled on first column.
(Project project page is fine, bot or cumulus project page isn't, for instance).

morbus iff’s picture

Switching padding-right: 2em; to 1.4em fixes it for me, at least - 1.5em is too much.

morbus iff’s picture

As for your hack in #1, you may be able to fix it by just adding "clear-block" to the class list for <div id="project-links-section-project_release" class="project-links-section CLEAR-BLOCK-GOES-HERE"> I have not tested it.

dww’s picture

Status: Needs work » Needs review
StatusFileSize
new467 bytes

re: #4: Shift-reload and see if you like it.

re: #8: Nope, I tried that early on and it didn't work, so I went for the br.

morbus iff’s picture

#4: yep, dandy.

#8: Hrm. Ok. Put a DIV around the three blocks and put the clear-block on the new DIV.

dww’s picture

Status: Needs review » Fixed

#8 right, but it's not just 3 blocks in general. There's a hook for modules to add/alter these link sections, etc. We have no idea ahead of time how many and what order they're in. What's there works and it's relatively simple in the code. I'm done worrying about it.

Meanwhile, I committed #9 to HEAD + DRUPAL-5, and deployed officially on d.o and p.d.o.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.