blob: 01844bdbf21cbd2b4dac8035cfd9bc575ef7e80b [file] [log] [blame]
<?php
include('../include/admin-header.php');
if ($db) {
if ($action == 'update') {
if (update_field('repositories', 'repository', 'name')
|| update_field('repositories', 'repository', 'url')
|| update_field('repositories', 'repository', 'blame_url'))
regenerate_manifest();
else
notice('Invalid parameters.');
}
$page = new AdministrativePage($db, 'repositories', 'repository', array(
'name' => array('editing_mode' => 'string'),
'url' => array('label' => 'Revision URL (At revision $1)', 'editing_mode' => 'url'),
'blame_url' => array('label' => 'Blame URL (From revision $1 to revision $2)', 'editing_mode' => 'url')
));
$page->render_table('name');
}
include('../include/admin-footer.php');
?>