From 806d426d106efea2b2b13314108c4ac046511e1c Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Tue, 18 Sep 2012 02:56:30 -0700 Subject: export host selection per service, RT#17914 --- FS/FS/part_export.pm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'FS') diff --git a/FS/FS/part_export.pm b/FS/FS/part_export.pm index 97394af18..c757d368d 100644 --- a/FS/FS/part_export.pm +++ b/FS/FS/part_export.pm @@ -330,6 +330,31 @@ sub label { ($self->exportname || $self->exporttype ). ' ('. $self->machine. ')'; } +=item label_html + +Returns a label for this export, "exportname: exporttype to machine". + +=cut + +sub label_html { + my $self = shift; + + my $label = $self->exportname + ? ''. $self->exportname. ': ' #
'. + : ''; + + $label .= $self->exporttype; + + $label .= ' to '. ( $self->machine eq '_SVC_MACHINE' + ? 'per-service hostname' + : $self->machine + ) + if $self->machine; + + $label; + +} + #=item part_svc # #Returns the service definition (see L) for this export. -- cgit v1.2.1