- var databaseInfo = assetstore.get('database') || {}
- var dbtypeNames = {mongo: 'MongoDB', sqlalchemy_postgres: 'PostgreSQL', sqlalchemy: 'Generic SQL'}

div
  b Type:
  span.g-assetstore-type  Database
div
  b Database Type:
  span  #{dbtypeNames[databaseInfo.dbtype]}
div
  b Database URI:
  span  #{databaseInfo.uri}

- var databaseInfo = assetstore.get('database') || {}
- var dbtypeNames = {mongo: 'MongoDB', sqlalchemy_postgres: 'PostgreSQL', sqlalchemy: 'Generic SQL'}

div
  b Type:
  span.g-assetstore-type  Database
div
  b Database Type:
  span  #{dbtypeNames[databaseInfo.dbtype]}
div
  b Database URI:
  span  #{databaseInfo.uri.replace(/\/\/[^@\/]+@/, '//[user information]@')}

Redact the username and password from the assetstore page.
Redact the username and password from the assetstore page.

This does nothing for true security, but it prevents casual reading of user information.

Perhaps the database user credentials should be encrypted in some manner.
