${_('Fork of')}

${h.form(url('edit_repo_advanced_fork', repo_name=c.repo_info.repo_name), method='put')}
${h.select('id_fork_of','',c.repos_list,class_="medium")} ${h.submit('set_as_fork_%s' % c.repo_info.repo_name,_('Set'),class_="btn btn-small",)}
${h.end_form()}

${_('Public journal visibility')}

${h.form(url('edit_repo_advanced_journal', repo_name=c.repo_info.repo_name), method='put')}
${h.hidden('auth_token',str(h.get_token()))}
%if c.in_public_journal: %else: %endif
${h.end_form()}

${_('Change locking')}

${h.form(url('edit_repo_advanced_locking', repo_name=c.repo_info.repo_name), method='put')}
%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
${h.end_form()}

${_('Delete')}

${h.form(url('repo', repo_name=c.repo_name),method='delete')} %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
${h.end_form()}