Tables and Avatars...

Blog post

Author
Message

Rocket Man
Posts: 383
Posted on: 2012-11-02 23:27:05.000
A couple of additions today...

First, a Table function that prints some nicely-formatted HTML tables.


(display-table list-of-headers nested-list-of-data "optional form styling")

striped - alternates rows in grey
bordered - adds borders and rounded corners to the table
hover - enables hover state on table rows when mousing over
condensed - more condensed style of table


This is a neat way of displaying tabular data in a pretty way, just by passing in lists.

The other thing is that I've changed the formatting of comments to include user avatars to the left of each comment. Unfortunately I didn't have time to get avatar uploading working. That will have to wait for next week!

Rocketeer
Posts: 18
Posted on: 2012-11-02 23:43:57.000
Uhm, no example?

Rocket Man
Posts: 383
Posted on: 2012-11-03 01:26:07.000
It's for making tables in the page itself, there's no UBB code to put it in posts.

Rocket Man
Posts: 383
Posted on: 2012-11-03 01:30:49.000
There is an example on the profile page but only I can see it. :) I'll probably make a proper member list page somewhere viewable by any registered user.

Rocket Man
Posts: 383
Posted on: 2012-11-15 23:47:35.000
Okay the new Forum section is probably the best example of using my (display-table) function now...


Views: 5262