X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=lib%2Fhub.php;h=176903dbbce7cb09cd1ca60053cfc9b4371871ae;hb=refs%2Ftags%2Fuat-2016-03-29;hp=56caa57261a6f7bcaa7c6163117a571dbfc1584a;hpb=99c95916fa6901a10f864f25f9a05f95d792902e;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();
}