示例#1
0
def theme_node_submitted(node):
  """
   Format the 'Submitted by username on date/time' for each node.
  """
  return lib_common.t('not datetime — not username',
    {
      'not username' : lib_theme.theme('username', node),
      'not datetime' : php.format_date(node.created),
    })
示例#2
0
def drupytemplate_comment_submitted(comment):
  """
   Format the Submitted by username on date/time' for each comment.
  """
  return lib_common.t('not datetime — not username',
    {
      'not username' : lib_theme.theme('username', comment),
      'not datetime' : php.format_date(comment.timestamp)
    })