{# Copyright (C) 2009-2023 Edgewall Software This software is licensed as described in the file COPYING, which you should have received as part of this distribution. The terms are also available at https://trac.edgewall.org/wiki/TracLicense. This software consists of voluntary contributions made by many individuals. For the exact contribution history, see the revision history and logs, available at https://trac.edgewall.org/. #} # extends 'admin.html' # block admintitle ${_("Repositories")} # endblock admintitle # block head ${ super() } # endblock head # block adminpanel # set sorted_repos = repositories|dictsort

# set nb_repos # if view == 'list': (${len(repositories)}) # endif # endset # trans nb_repos Manage Repositories ${nb_repos} # endtrans

# macro type_field(editable, multiline=false, selected=none)
${_("Default: %(default_type)s", default_type=default_type)}
# endmacro # macro alias_field(editable, multiline=false, selected=none)
# endmacro # if view == 'detail': # set info = repositories[reponame]
${jmacros.form_token_input()}
# with # set readonly = 'readonly' if not info.editable # if info.editable: ${_("Modify Repository:")} # else: ${_("View Repository:")} # endif # if readonly:

# trans note = jmacros.note() ${note} This repository is not defined in the database and cannot be edited on this page. # endtrans

# endif
# if 'alias' in info: ${alias_field(info.editable, true, info.alias)} # else: ${type_field(info.editable, true, info.type)}
# endif # if 'alias' not in info:
# set tracreposadmin ${ _("repository synchronization")} # endset # trans tracreposadmin Not recommended. See ${tracreposadmin}. # endtrans
# endif
# endwith
# if info.editable: # endif
# else:
${jmacros.form_token_input()}
${_("Add Repository:")}
${type_field(true)}
# if can_add_alias:
${jmacros.form_token_input()}
${_("Add Alias:")}
${alias_field(true)}
# endif # if sorted_repos:
${jmacros.form_token_input()} # for reponame, info in sorted_repos: # endif # endfor
${_("Name")}${_("Type")}${_("Directory")}${_("Revision")}
# if info.editable: # endif ${info.name or _('(default)')} ${(info.type or _('(default)')) if 'alias' not in info} # if 'alias' in info: # trans repo = info.alias or _('(default)') Alias of ${repo} # endtrans # else: # if info.error: ${ info.prettydir} # else: ${info.prettydir} # endif # if info.rev and info.display_rev: [${info.display_rev}] # endif
# endif # endif # call(note, page) jmacros.wikihelp('TracRepositoryAdmin'): # trans note, page ${note} See ${page} for help on administering repositories. # endtrans # endcall
# endblock adminpanel