Exemple #1
0
	def get( self ):
		thread_view_count = EnkiModelCounter.get_count()
		if not enki.libforum.exist_EnkiForums():
			# if no forum topic exists , populate the forums with default topics
			enki.libforum.set_forum()
		self.render_tmpl( 'forums.html',
		                  active_page = 'forums',
		                  thread_view_count = thread_view_count,
		                  data_company = enki.libforum.get_forums_data( 'Company' ),
		                  data_game = enki.libforum.get_forums_data( 'Game' ) )
Exemple #2
0
 def get(self):
     thread_view_count = EnkiModelCounter.get_count()
     if not enki.libforum.exist_EnkiForums():
         # if no forum topic exists , populate the forums with default topics
         enki.libforum.set_forum()
     self.render_tmpl('forums.html',
                      False,
                      active_menu='forums',
                      thread_view_count=thread_view_count,
                      data_company=enki.libforum.get_forums_data('Company'),
                      data_game=enki.libforum.get_forums_data('Game'))