Send Netdot-devel mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://osl.uoregon.edu/mailman/listinfo/netdot-devel
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Netdot-devel digest..."


Today's Topics:

   1. [SCM] Netdot Git repository branch netdot-1.0     updated.
      netdot-1.0.1-RC3-42-g43ceacb (Apache)
   2. [SCM] Netdot Git repository branch netdot-1.0     updated.
      netdot-1.0.1-RC3-43-g19be862 (Apache)
   3. [SCM] Netdot Git repository branch netdot-1.0     updated.
      netdot-1.0.1-RC3-44-g3ab586b (Apache)
   4. [Netdot - Feature #1665] (New) External URL field
      ([email protected])
   5. [Netdot - Feature #1666] (New) Jack to User link  (and vice
      versa) ([email protected])


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

Message: 1
Date: Tue, 24 Jul 2012 12:01:39 -0700
From: Apache <[email protected]>
Subject: [Netdot-devel] [SCM] Netdot Git repository branch netdot-1.0
        updated. netdot-1.0.1-RC3-42-g43ceacb
To: [email protected]
Message-ID: <[email protected]>

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 "Netdot Git repository".

The branch, netdot-1.0 has been updated
       via  43ceacb4cfcc22b633c54480e8fa55e6abd6c2b3 (commit)
      from  481b0c53eb24ac12d705d4b3ebdbf437c80b02db (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 43ceacb4cfcc22b633c54480e8fa55e6abd6c2b3
Author: Carlos Vicente <[email protected]>
Date:   Tue Jul 24 15:01:05 2012 -0400

    Do not use <pre> tags to display comments in <textarea> boxes. Instead, 
replace newlines with the HTML break tag

diff --git a/lib/Netdot/UI.pm b/lib/Netdot/UI.pm
index 797ea49..766bb0f 100644
--- a/lib/Netdot/UI.pm
+++ b/lib/Netdot/UI.pm
@@ -1058,7 +1058,7 @@ sub text_area($@){
     if ( $isEditing ){
         $output .= sprintf("<textarea name=\"%s\" %s>%s</textarea>\n", $name, 
$htmlExtra, $value);
     }else{
-        $output .= sprintf("<pre>%s</pre>\n", $value);
+        $output .= sprintf("%s", $self->nl2br($value));
     }
     
     if ($returnAsVar==1) {
@@ -2479,6 +2479,21 @@ sub check_value_lengths {
 }
 
 
+############################################################################
+=head2 nl2br - Returns string with '<br />' inserted before all newlines.
+
+  Arguments: string 
+  Returns: string
+  Examples: $ui->nl2br($text);
+
+=cut
+sub nl2br {
+    my ($self, $t) = @_;
+    return unless $t;
+    $t =~ s/([\r\n])/<br />$1/g;
+    return $t;
+}
+
 =head1 AUTHORS
 
 Carlos Vicente, Nathan Collins, Aaron Parecki, Peter Boothe.

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

Summary of changes:
 lib/Netdot/UI.pm |   17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Netdot Git repository


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

Message: 2
Date: Tue, 24 Jul 2012 12:08:15 -0700
From: Apache <[email protected]>
Subject: [Netdot-devel] [SCM] Netdot Git repository branch netdot-1.0
        updated. netdot-1.0.1-RC3-43-g19be862
To: [email protected]
Message-ID: <[email protected]>

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 "Netdot Git repository".

The branch, netdot-1.0 has been updated
       via  19be86294307870674b9a5c93ec981010e9816ba (commit)
      from  43ceacb4cfcc22b633c54480e8fa55e6abd6c2b3 (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 19be86294307870674b9a5c93ec981010e9816ba
Author: Carlos Vicente <[email protected]>
Date:   Tue Jul 24 15:07:32 2012 -0400

    Correctin

diff --git a/lib/Netdot/UI.pm b/lib/Netdot/UI.pm
index 766bb0f..255f0f8 100644
--- a/lib/Netdot/UI.pm
+++ b/lib/Netdot/UI.pm
@@ -2490,7 +2490,7 @@ sub check_value_lengths {
 sub nl2br {
     my ($self, $t) = @_;
     return unless $t;
-    $t =~ s/([\r\n])/<br />$1/g;
+    $t =~ s/([\r\n])/<br \/>$1/g;
     return $t;
 }
 

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

Summary of changes:
 lib/Netdot/UI.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Netdot Git repository


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

Message: 3
Date: Wed, 25 Jul 2012 06:27:51 -0700
From: Apache <[email protected]>
Subject: [Netdot-devel] [SCM] Netdot Git repository branch netdot-1.0
        updated. netdot-1.0.1-RC3-44-g3ab586b
To: [email protected]
Message-ID: <[email protected]>

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 "Netdot Git repository".

The branch, netdot-1.0 has been updated
       via  3ab586b7af95345362dffe6516b6fa3550cd6e02 (commit)
      from  19be86294307870674b9a5c93ec981010e9816ba (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 3ab586b7af95345362dffe6516b6fa3550cd6e02
Author: Carlos Vicente <[email protected]>
Date:   Wed Jul 25 09:27:15 2012 -0400

    Correction in device report search for asset undefined

diff --git a/htdocs/reports/device_inventory.html 
b/htdocs/reports/device_inventory.html
index c895792..039c91c 100644
--- a/htdocs/reports/device_inventory.html
+++ b/htdocs/reports/device_inventory.html
@@ -100,7 +100,7 @@ if ( $report_type eq 'product' || $report_type eq 
'product_monitored' ){
            if ( $t{$pt}{prod}{$product}{id} ){
                push( @row, '<a href="../generic/view.html?table=Product&id=' . 
$t{$pt}{prod}{$product}{id} . '">' . $product . '</a>' );
            }elsif ( $product eq "Unset" ){
-               push( @row, '<a 
href="../generic/search_obj.html?table=Device&asset=undef&res=1">' . $product . 
'</a>' );
+               push( @row, '<a 
href="../generic/search_obj.html?table=Device&asset_id=undef&res=1">' . 
$product . '</a>' );
            }
            push( @row, $t{$pt}{prod}{$product}{num}  );
            push( @rows, \@row );

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

Summary of changes:
 htdocs/reports/device_inventory.html |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Netdot Git repository


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

Message: 4
Date: Wed, 25 Jul 2012 06:58:54 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Feature #1665] (New) External URL
        field
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8


Issue #1665 has been reported by john lines.

----------------------------------------
Feature #1665: External URL field
https://osl.uoregon.edu/redmine/issues/1665

Author: john lines
Status: New
Priority: Normal
Assignee: 
Category: 
Target version: 
Resolution: 


An External URL field associated with most objects would allow Netdot to be 
made more extensible, for example allowing stuctured notes about a device in a 
wiki, or link to a service contract, or home page for a person.

It is possible to put URLs into the comments field, but they are not recognised 
as html links.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://osl.uoregon.edu/redmine/my/account


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

Message: 5
Date: Wed, 25 Jul 2012 07:05:42 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Feature #1666] (New) Jack to User
        link    (and vice versa)
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8


Issue #1666 has been reported by john lines.

----------------------------------------
Feature #1666: Jack to User link (and vice versa)
https://osl.uoregon.edu/redmine/issues/1666

Author: john lines
Status: New
Priority: Normal
Assignee: 
Category: 
Target version: 
Resolution: 


A link from a user to a network jack and vice versa would be useful.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://osl.uoregon.edu/redmine/my/account


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

_______________________________________________
Netdot-devel mailing list
[email protected]
https://osl.uoregon.edu/mailman/listinfo/netdot-devel


End of Netdot-devel Digest, Vol 64, Issue 24
********************************************

Reply via email to