Adjusted PlaceListPage elements to make it fit correctly.

svn: r15682
This commit is contained in:
Rob G. Healey 2010-08-05 18:04:53 +00:00
parent db09dcc6bf
commit b64439c263
2 changed files with 12 additions and 11 deletions

View File

@ -453,7 +453,8 @@ table.surname tbody tr td.ColumnName a span.grampsid {
} }
table.surname tbody tr td.ColumnName:hover { table.surname tbody tr td.ColumnName:hover {
background-color: #00029D; background-color: #00029D;
color: #FFF; color: #FFF;/home/Frog/trunk/src/gui/viewmanager.py:946: GtkWarning: Inserting action group 'Media' into UI manager which already has a group with this name
} }
table.surname thead tr th.ColumnParents, table.surname thead tr th.ColumnParents,
table.surname tbody tr td.ColumnParents { table.surname tbody tr td.ColumnParents {
@ -526,19 +527,19 @@ div#Places table.infolist tbody tr td.ColumnLetter a:hover {
background: none; background: none;
} }
div#Places table.infolist tbody tr td.ColumnName { div#Places table.infolist tbody tr td.ColumnName {
width: 50%; width: 25%;
} }
div#Places table.infolist tbody tr td.ColumnState { div#Places table.infolist tbody tr td.ColumnState {
width: 7%; width: 7%;
} }
div#Places table.infolist tbody tr td.ColumnCountry { div#Places table.infolist tbody tr td.ColumnCountry {
width: 10%; width: 6%;
} }
div#Places table.infolist tbody tr td.ColumnLatitude { div#Places table.infolist tbody tr td.ColumnLatitude {
width: 10%; width: 8%;
} }
div#Places table.infolist tbody tr td.ColumnLongitude { div#Places table.infolist tbody tr td.ColumnLongitude {
width: 10%; width: 8%;
} }
div#PlaceDetail table.infolist tbody tr td { div#PlaceDetail table.infolist tbody tr td {
border-bottom: dashed 1px #000; border-bottom: dashed 1px #000;

View File

@ -2352,8 +2352,8 @@ class PlaceListPage(BasePage):
[_("Place Name | Name"), "Name"], [_("Place Name | Name"), "Name"],
[_("State"), "State"], [_("State"), "State"],
[_("Country"), "Country"], [_("Country"), "Country"],
[_("Lat."), "Latitude"], [_("Latitude"), "Latitude"],
[_("Long."), "Longitude"] ] [_("Longitude"), "Longitude"] ]
) )
sort = Sort.Sort(db) sort = Sort.Sort(db)
@ -2366,7 +2366,7 @@ class PlaceListPage(BasePage):
for handle in handle_list: for handle in handle_list:
place = db.get_place_from_handle(handle) place = db.get_place_from_handle(handle)
place_title = ReportUtils.place_name(db, handle) place_title = place.get_title()
ml = place.get_main_location() ml = place.get_main_location()
letter = first_letter(place_title) letter = first_letter(place_title)
@ -2394,12 +2394,12 @@ class PlaceListPage(BasePage):
["State", ml.state], ["State", ml.state],
["Country", ml.country] ] ["Country", ml.country] ]
) )
latitude, longitude = False, False
if (place and (place.lat and place.long)): if (place and (place.lat and place.long)):
latitude, longitude = conv_lat_lon( place.lat, latitude, longitude = conv_lat_lon( place.lat,
place.long, place.long,
"DEG") "DEG")
else:
latitude, longitude = False, False
trow += Html("td", latitude or " ", class_ = "ColumnLatitude", inline = True) trow += Html("td", latitude or " ", class_ = "ColumnLatitude", inline = True)
trow += Html("td", longitude or " ", class_ = "ColumnLongitude", inline = True) trow += Html("td", longitude or " ", class_ = "ColumnLongitude", inline = True)