[Fusionforge-commits] FusionForge branch master updated. bc3c7aad81949f1c97cdec7873a166ff8af49fdf

Alain Peyrat aljeux at fusionforge.org
Fri Jun 28 11:39:01 CEST 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, master has been updated
       via  bc3c7aad81949f1c97cdec7873a166ff8af49fdf (commit)
      from  e63fda69042bead333f568ee54a82488c7907465 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit bc3c7aad81949f1c97cdec7873a166ff8af49fdf
Author: Alain Peyrat <alain.peyrat at alcatel-lucent.com>
Date:   Sun Jun 23 08:57:12 2013 +0200

    docman: for a locked document, display who locked it

diff --git a/src/common/docman/views/listfile.php b/src/common/docman/views/listfile.php
index fe9a2fc..1639eb5 100644
--- a/src/common/docman/views/listfile.php
+++ b/src/common/docman/views/listfile.php
@@ -279,6 +279,13 @@ if (isset($nested_docs[$dirid]) && is_array($nested_docs[$dirid])) {
 			$html_image_attr['class'] = 'tabtitle';
 			$html_image_attr['title'] = _('Reserved Document');
 			echo html_image('docman/document-reserved.png', '22', '22', $html_image_attr);
+			$reserved_by = $d->getReservedBy();
+			if ($reserved_by) {
+				$user = user_get_object($reserved_by);
+				if (is_object($user)) {
+					echo ' '._('by').' '.make_user_link($user->getUnixName(), $user->getRealName());
+				}
+			}
 		} else {
 			echo $d->getStateName();
 		}

-----------------------------------------------------------------------

Summary of changes:
 src/common/docman/views/listfile.php |    7 +++++++
 1 file changed, 7 insertions(+)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list