diff --git a/code/portal_detail_display.js b/code/portal_detail_display.js index 8ace8f9a..cb2e79a7 100644 --- a/code/portal_detail_display.js +++ b/code/portal_detail_display.js @@ -57,28 +57,30 @@ window.renderPortalDetails = function(guid) { if(portalDetailObj) { portalDetailedDescription = ''; + + // TODO (once the data supports it) - portals can have multiple photos. display all, with navigation between them + // (at this time the data isn't returned from the server - although a count of images IS returned!) + if(portalDetailObj.submitter.name.length > 0) { if(portalDetailObj.submitter.team) { submitterSpan = ''; } else { submitterSpan = ''; } - portalDetailedDescription += ''; + portalDetailedDescription += ''; } - - if(d.portalV2.descriptiveText.ADDRESS) { - portalDetailedDescription += ''; + if(portalDetailObj.submitter.link.length > 0) { + portalDetailedDescription += ''; } if(portalDetailObj.description) { - portalDetailedDescription += ''; - } - - if(portalDetailObj.submitter.link.length > 0) { - portalDetailedDescription += ''; + portalDetailedDescription += ''; } +// if(d.portalV2.descriptiveText.ADDRESS) { +// portalDetailedDescription += ''; +// } portalDetailedDescription += '
Photo submitted by:' + submitterSpan - + portalDetailObj.submitter.name + ' (' + portalDetailObj.submitter.voteCount + ' votes)
Photo by:' + submitterSpan + + escapeHtmlSpecialChars(portalDetailObj.submitter.name) + ' (' + portalDetailObj.submitter.voteCount + ' votes)
Address:' + d.portalV2.descriptiveText.ADDRESS + '
Photo from:' + escapeHtmlSpecialChars(portalDetailObj.submitter.link) + '
Description:' + portalDetailObj.description + '
Link to original:' + portalDetailObj.submitter.link + '
Description:' + escapeHtmlSpecialChars(portalDetailObj.description) + '
Address:' + escapeHtmlSpecialChars(d.portalV2.descriptiveText.ADDRESS) + '
'; } @@ -91,9 +93,9 @@ window.renderPortalDetails = function(guid) { + 'X' // help cursor via ".imgpreview img" + '
' + + ''+Math.floor(getPortalLevel(d))+'' + '
'+ portalDetailedDescription + '
' + '
' - + ''+Math.floor(getPortalLevel(d))+'' + '' + '
'+getModDetails(d)+'
' + randDetails diff --git a/style.css b/style.css index ad7cf9bd..43a4d398 100644 --- a/style.css +++ b/style.css @@ -943,14 +943,17 @@ td + td { } -.portal_details tr { - padding-bottom: 1em; -} - -.portal_details td:first-of-type { - min-width: 10em; +.portal_details th, .portal_details td { vertical-align: top; + text-align: left; } +.portal_details th { + white-space: nowrap; + padding-right: 1em; +} +.portal_details tr.padding-top th, .portal_details tr.padding-top td { + padding-top: 0.7em; +}