X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=lib%2Fhub.php;h=176903dbbce7cb09cd1ca60053cfc9b4371871ae;hb=f7127ce189cb772fc0623bff047e063c66c81ee1;hp=56caa57261a6f7bcaa7c6163117a571dbfc1584a;hpb=6cf6109632946bbc8807df54229c3675b335cfba;p=readifood.git diff --git a/lib/hub.php b/lib/hub.php index 56caa57..176903d 100644 --- a/lib/hub.php +++ b/lib/hub.php @@ -50,8 +50,13 @@ $role = $hub->getRole(); $role_string = get_hub_role_string($hub); if ($role_string) echo " $role_string"; - if ($role & $GLOBALS['ROLE_COLLECTION']) printf(" Donations", urlencode($hub->getName()), $hub->getId()); - if ($role & $GLOBALS['ROLE_DISTRIBUTION']) printf(" Orders", urlencode($hub->getName()), $hub->getId()); + $d = urlencode($hub->getName()); + $i = $hub->getId(); + if ($role & $GLOBALS['ROLE_COLLECTION']) { + printf(" Donations", $d, $i); + echo " " . get_small_link("Record", "/donation/record/to/hub/%s/%d", $d, $i); + } + if ($role & $GLOBALS['ROLE_DISTRIBUTION']) printf(" Orders", $d, $i); if (check_admin(1)) { echo " " . $hub->getDeleteLink(); }