Index: EditTablerowPlugin.pm
===================================================================
--- EditTablerowPlugin.pm (revision 6127)
+++ EditTablerowPlugin.pm (working copy)
@@ -338,36 +338,42 @@
$title = $boldTitle if $boldTitle;
$title = "---" unless $title;
$text .= "*" if $boldTitle;
- # Add edit links, maybe this should just be a link of the first table item
- my $eurl = &TWiki::Func::getScriptUrl ( $web, $topic, "editTableRow" ) ;
- my $button = '';
- if ( $params{'editlink'} ) {
- my $value = $params{'editlink'};
- my $img = "";
- if( $value =~ s/(.+),\s*(.+)/$1/o ) {
- $img = $2;
- $img =~ s|%ATTACHURL%|%PUBURL%/$installWeb/EditTablerowPlugin|o;
- $img =~ s|%WEB%|$installWeb|o;
+
+ if ( $params{"changerows"} ) {
+ # Add edit links, maybe this should just be a link of the first table item
+ my $eurl = &TWiki::Func::getScriptUrl ( $web, $topic, "editTableRow" ) ;
+ my $button = '';
+ if ( $params{'editlink'} ) {
+ my $value = $params{'editlink'};
+ my $img = "";
+ if( $value =~ s/(.+),\s*(.+)/$1/o ) {
+ $img = $2;
+ $img =~ s|%ATTACHURL%|%PUBURL%/$installWeb/EditTablerowPlugin|o;
+ $img =~ s|%WEB%|$installWeb|o;
+ }
+ if( $img ) {
+ $button = "
";
+ } else {
+ $button = "$value";
+ }
}
- if( $img ) {
- $button = "
";
+ $text .= "$button";
+ if ( $button ) {
+ $text .= " $title"
+ } else {
+ $text .= " $title"
+ }
}
- $text .= "$button";
- if ( $button ) {
- $text .= " $title"
- } else {
- $text .= " $title"
- }
$text .= "*" if $boldTitle;