From 7bdf5f7a1e9fcdf1888f42ef8e7e92a7bc472fa6 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 26 Sep 2011 21:24:44 -0300 Subject: Fixes and message link --- muamba.theme.inc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'muamba.theme.inc') diff --git a/muamba.theme.inc b/muamba.theme.inc index 1bec871..b2da534 100644 --- a/muamba.theme.inc +++ b/muamba.theme.inc @@ -33,19 +33,20 @@ function theme_muamba_transactions($variables) { foreach($transactions as $transaction) { foreach (muamba_actions_available($type, $transaction['status']) as $action) { $callback = muamba_actions($action); - $available_actions[] = l(t($callback), $callback); + $actions[] = l(t($callback), $callback); } $rows[] = array( 'asset' => $transaction['node']->title, 'user' => $transaction['user']->name, 'status' => t(muamba_statuses($transaction['status'])), - 'available_actions' => implode($available_actions, '|'), + 'actions' => implode($actions, ' | '), + 'thread' => l(t('view'), 'messages/view/'. $transaction['thread_id']), ); } // Make a table for them. - $header = array(t('Asset'), t('User'), t('Status'), t('Actions')); + $header = array(t('Asset'), t('User'), t('Status'), t('Actions'), t('Messages')); $output .= theme('table', array('header' => $header, 'rows' => $rows)); $output .= ''; -- cgit v1.2.3