aboutsummaryrefslogtreecommitdiff
path: root/muamba.theme.inc
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-09-26 22:53:51 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-09-26 22:53:51 -0300
commit3697ce7f9d83762c8ac015f11219b0d02f9ddf3e (patch)
treeb7b1a0b4f690f5936d18cdc7e5b17005384f1d1b /muamba.theme.inc
parent7bdf5f7a1e9fcdf1888f42ef8e7e92a7bc472fa6 (diff)
downloadmuamba-3697ce7f9d83762c8ac015f11219b0d02f9ddf3e.tar.gz
muamba-3697ce7f9d83762c8ac015f11219b0d02f9ddf3e.tar.bz2
Colorbox support
Diffstat (limited to 'muamba.theme.inc')
-rw-r--r--muamba.theme.inc15
1 files changed, 13 insertions, 2 deletions
diff --git a/muamba.theme.inc b/muamba.theme.inc
index b2da534..c2cc38f 100644
--- a/muamba.theme.inc
+++ b/muamba.theme.inc
@@ -9,6 +9,9 @@
* Theme callback.
*/
function theme_muamba_transactions($variables) {
+ $path = drupal_get_path('module', 'muamba');
+ drupal_add_js($path .'/muamba.js');
+
$rows = array();
$type = $variables['type'];
$transactions = $variables['transactions'];
@@ -41,12 +44,20 @@ function theme_muamba_transactions($variables) {
'user' => $transaction['user']->name,
'status' => t(muamba_statuses($transaction['status'])),
'actions' => implode($actions, ' | '),
- 'thread' => l(t('view'), 'messages/view/'. $transaction['thread_id']),
+ 'thread' => l(
+ t('view messages'),
+ 'messages/view/'. $transaction['thread_id'],
+ array(
+ 'attributes' => array(
+ 'class' => array('colorbox-ajax', 'colorbox-load')
+ )
+ )
+ )
);
}
// Make a table for them.
- $header = array(t('Asset'), t('User'), t('Status'), t('Actions'), t('Messages'));
+ $header = array(t('Item'), t('User'), t('Status'), t('Actions'), t('Negotiation'));
$output .= theme('table', array('header' => $header, 'rows' => $rows));
$output .= '</div>';