improved look of individual gallery on NarrativeWeb.

svn: r12885
This commit is contained in:
Rob G. Healey 2009-08-06 22:04:52 +00:00
parent f95c70cd84
commit da0ff1ee84
2 changed files with 9 additions and 14 deletions

View File

@ -1019,23 +1019,23 @@ div#Addresses table.infolist tbody tr td.ColumnPhone {
#indivgallery h4 { #indivgallery h4 {
margin-bottom:1em; margin-bottom:1em;
} }
#indivgallery .thumbnail tr { #indivgallery .thumbnail {
margin:0; margin:0;
float:left; float:left;
width:130px; width:130px;
height:150px; height:150px;
text-align:center; text-align:center;
} }
#indivgallery .thumbnail tr a { #indivgallery div.thumbnail a {
display:block; display:block;
margin:0; margin:0;
padding:0; padding:0;
background:none; background:none;
} }
#indivgallery .thumbnail tr a img { #indivgallery div.thumbnail a img {
margin:0; margin-bottom:.5cm;
padding:0; padding:0;
border:solid 1px #453619; border:solid 1px #000;
} }
#indivgallery div.thumbnail p { #indivgallery div.thumbnail p {
font:normal .7em/1.4em sans-serif; font:normal .7em/1.4em sans-serif;

View File

@ -891,10 +891,6 @@ class BasePage(object):
# begin section title # begin section title
section += Html('h4', _('Gallery'), inline=True) section += Html('h4', _('Gallery'), inline=True)
# begin table row
trow = Html('tr')
section += trow
displayed = [] displayed = []
for mediaref in photolist: for mediaref in photolist:
@ -914,9 +910,9 @@ class BasePage(object):
real_path, newpath = self.report.prepare_copy_media(photo) real_path, newpath = self.report.prepare_copy_media(photo)
# TODO. Check if build_url_fname can be used. # TODO. Check if build_url_fname can be used.
newpath = '/'.join(['..']*3 + [newpath]) newpath = '/'.join(['..']*3 + [newpath])
# begin hyperlink # begin hyperlink
trow += self.media_link(photo_handle, newpath, descr, up=True) section += self.media_link(photo_handle, newpath, descr, True, False)
except (IOError, OSError), msg: except (IOError, OSError), msg:
WarningDialog(_("Could not add photo to page"), str(msg)) WarningDialog(_("Could not add photo to page"), str(msg))
@ -924,7 +920,7 @@ class BasePage(object):
try: try:
# begin hyperlink # begin hyperlink
trow += self.doc_link(photo_handle, descr, up=True) section += self.doc_link(photo_handle, descr, up=True)
lnk = (self.report.cur_fname, self.page_title, self.gid) lnk = (self.report.cur_fname, self.page_title, self.gid)
# FIXME. Is it OK to add to the photo_list of report? # FIXME. Is it OK to add to the photo_list of report?
@ -1139,8 +1135,7 @@ class BasePage(object):
hyper = (Html('a', href=url, title=name) + hyper = (Html('a', href=url, title=name) +
Html('img', src=img_url, alt=name) + Html('img', src=img_url, alt=name) +
(Html('p', inline=True) + (Html('p', inline=True) +
html_escape(name) if usedescr else ' [Untitled] ' html_escape(name) if usedescr else '')
)
) )
# add hyperlink and description to thumbnail division # add hyperlink and description to thumbnail division
thumbnail += hyper thumbnail += hyper