Commit b6e2fa0e95ba9af5b6bbfd2d69b0f62b767bb51c

  • avatar
  • vesal (Committer)
  • Wed Sep 06 01:57:04 EEST 2017
  • avatar
  • vesal (Author)
  • Wed Sep 06 01:57:04 EEST 2017
save forgot?
  • Diff rendering mode:
  • inline
  • side by side

timApp/routes/view.py

187 ind = item_name.rfind('/')187 ind = item_name.rfind('/')
188 if ind >= 0:188 if ind >= 0:
189 ret = do_create_document(item_name, 'document', item_name[ind+1:], None, template_item.path)189 ret = do_create_document(item_name, 'document', item_name[ind+1:], None, template_item.path)
190 return view(item_name, 'view_html.html')
190 return view(item_name, 'view_html.html')
191191
192 return render_template('create_new.html',192 return render_template('create_new.html',
193 in_lecture=is_in_lecture,193 in_lecture=is_in_lecture,