From 3ada381c7ece03bd0215be50e5bf0cb68df09164 Mon Sep 17 00:00:00 2001 From: Shawn Kwang Date: Wed, 10 May 2017 15:23:55 -0500 Subject: [PATCH] Drupal: Added user roles to forum user info, below username and stats. https://dev.gridrepublic.org/browse/DBOINCP-253 --- .../default/boinc/themes/boinc/templates/comment.tpl.php | 6 ++++++ .../default/boinc/themes/boinc/templates/node-forum.tpl.php | 6 ++++++ .../boinc/themes/boinc/templates/node-team_forum.tpl.php | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/drupal/sites/default/boinc/themes/boinc/templates/comment.tpl.php b/drupal/sites/default/boinc/themes/boinc/templates/comment.tpl.php index f0b732eaf9..b1be5acde2 100644 --- a/drupal/sites/default/boinc/themes/boinc/templates/comment.tpl.php +++ b/drupal/sites/default/boinc/themes/boinc/templates/comment.tpl.php @@ -102,6 +102,12 @@ ?>
uid): ?> + roles)): ?> +
+ + roles)): ?> +
+ setAttribute(NumberFormatter::MIN_FRACTION_DIGITS, 0); ;?> setAttribute(NumberFormatter::MAX_FRACTION_DIGITS, 0); ;?> diff --git a/drupal/sites/default/boinc/themes/boinc/templates/node-forum.tpl.php b/drupal/sites/default/boinc/themes/boinc/templates/node-forum.tpl.php index 111fc89acc..9d59e9ef48 100644 --- a/drupal/sites/default/boinc/themes/boinc/templates/node-forum.tpl.php +++ b/drupal/sites/default/boinc/themes/boinc/templates/node-forum.tpl.php @@ -157,6 +157,12 @@ ?>
uid): ?> + roles)): ?> +
+ + roles)): ?> +
+ setAttribute(NumberFormatter::MIN_FRACTION_DIGITS, 0); ;?> setAttribute(NumberFormatter::MAX_FRACTION_DIGITS, 0); ;?> diff --git a/drupal/sites/default/boinc/themes/boinc/templates/node-team_forum.tpl.php b/drupal/sites/default/boinc/themes/boinc/templates/node-team_forum.tpl.php index dd45b0fdfc..55acaa8583 100644 --- a/drupal/sites/default/boinc/themes/boinc/templates/node-team_forum.tpl.php +++ b/drupal/sites/default/boinc/themes/boinc/templates/node-team_forum.tpl.php @@ -173,6 +173,12 @@ ?>
uid): ?> + roles)): ?> +
+ + roles)): ?> +
+ setAttribute(NumberFormatter::MIN_FRACTION_DIGITS, 0); ;?> setAttribute(NumberFormatter::MAX_FRACTION_DIGITS, 0); ;?>