${_('Parent')}

${h.form(url('edit_repo_advanced_fork', repo_name=c.repo_info.repo_name))}
${h.select('id_fork_of','',c.repos_list)} ${h.submit('set_as_fork_%s' % c.repo_info.repo_name,_('Set'),class_="btn btn-default btn-sm")}
${_('''Manually set this repository as a fork of another from the list.''')}
${h.end_form()}

${_('Public Journal Visibility')}

${h.form(url('edit_repo_advanced_journal', repo_name=c.repo_info.repo_name))}
%if c.in_public_journal: %else: %endif
${_('All actions done in this repository will be visible to everyone in the public journal.')}
${h.end_form()}

${_('Change Locking')}

${h.form(url('edit_repo_advanced_locking', repo_name=c.repo_info.repo_name))}
%if c.repo_info.locked[0]: ${h.hidden('set_unlock', '1')} ${_('Locked by %s on %s') % (h.person_by_id(c.repo_info.locked[0]),h.fmt_date(h.time_to_datetime(c.repo_info.locked[1])))} %else: ${h.hidden('set_lock', '1')} ${_('Repository is not locked')} %endif
${_('Force locking on the repository. Works only when anonymous access is disabled. Triggering a pull locks the repository. The user who is pulling locks the repository; only the user who pulled and locked it can unlock it by doing a push.')}
${h.end_form()}

${_('Delete')}

${h.form(url('delete_repo', repo_name=c.repo_name))}
%if c.repo_info.forks.count(): ${ungettext('This repository has %s fork', 'This repository has %s forks', c.repo_info.forks.count()) % c.repo_info.forks.count()} %endif
${_('The deleted repository will be moved away and hidden until the administrator expires it. The administrator can both permanently delete it or restore it.')}
${h.end_form()}