Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 
 
 

15 рядки
437 B

  1. # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
  2. # MIT License. See license.txt
  3. from __future__ import unicode_literals
  4. import webnotes
  5. from webnotes import _
  6. def get_context(context):
  7. extended_context = webnotes.doc("Blog Settings", "Blog Settings").fields
  8. extended_context.update(context)
  9. return {
  10. "title": extended_context.blog_title or "Blog",
  11. "content": context.template.render(extended_context)
  12. }