$def with (course, saved, error) $# $# This file is part of INGInious. See the LICENSE and the COPYRIGHTS files for $# more information about the licensing of this file. $# $var title: $:_("Tags") | $:course.get_name(user_manager.session_language()) $var Column: $:template_helper.call('course_admin_menu',course=course,current='tags') $ is_admin = user_manager.has_admin_rights_on_course(course) $def NavbarF(): $var Navbar: $:NavbarF()

$:_("Tags")

$if error: $elif saved:
$ i=-1 $for key, tag in course.get_descriptor().get("tags", {}).items(): $ i=i+1 $ id = key $ name = tag["name"] if "name" in tag else "Unknow name" $ description = tag["description"] if "description" in tag else "" $ type = tag["type"] if "type" in tag else 0 $ visible = tag["visible"] if "visible" in tag else False
$:_("id") $:_("name") $:_("description") $:_("show to students") $:_("type ")