コード例 #1
0
ファイル: template.py プロジェクト: vaibbhav/drupy
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
ファイル: template.py プロジェクト: vaibbhav/drupy
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)
    })