RequirementSpec-Presenter in RequirementSpecTextBlock umbenannt
authorMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 6 Mar 2013 14:04:17 +0000 (15:04 +0100)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 1 Apr 2014 11:02:25 +0000 (13:02 +0200)
SL/Presenter/RequirementSpec.pm [deleted file]
SL/Presenter/RequirementSpecTextBlock.pm [new file with mode: 0644]

diff --git a/SL/Presenter/RequirementSpec.pm b/SL/Presenter/RequirementSpec.pm
deleted file mode 100644 (file)
index b8a202d..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-package SL::Presenter::RequirementSpec;
-
-use strict;
-
-use parent qw(Exporter);
-
-use Exporter qw(import);
-our @EXPORT = qw(requirement_spec_text_block_jstree_data);
-
-use Carp;
-
-use SL::JSON;
-
-sub requirement_spec_text_block_jstree_data {
-  my ($self, $text_block, %params) = @_;
-
-  return {
-    data     => $text_block->title || '',
-    metadata => { id =>         $text_block->id, type => 'textblock' },
-    attr     => { id => "tb-" . $text_block->id, href => $params{href} || '#' },
-  };
-}
-
-1;
diff --git a/SL/Presenter/RequirementSpecTextBlock.pm b/SL/Presenter/RequirementSpecTextBlock.pm
new file mode 100644 (file)
index 0000000..8e2eb81
--- /dev/null
@@ -0,0 +1,24 @@
+package SL::Presenter::RequirementSpecTextBlock;
+
+use strict;
+
+use parent qw(Exporter);
+
+use Exporter qw(import);
+our @EXPORT = qw(requirement_spec_text_block_jstree_data);
+
+use Carp;
+
+use SL::JSON;
+
+sub requirement_spec_text_block_jstree_data {
+  my ($self, $text_block, %params) = @_;
+
+  return {
+    data     => $text_block->title || '',
+    metadata => { id =>         $text_block->id, type => 'textblock' },
+    attr     => { id => "tb-" . $text_block->id, href => $params{href} || '#', class => 'text-block-context-menu' },
+  };
+}
+
+1;