anchor.diff:  
   <h2>Tests</h2>
   
  +<% # Button to create a new testcase %>
  +<%= link_to "Create new testcase", new_project_document_path(@project), :class => 'icon icon-add',
  +      :onclick => 'showAndScrollTo("add-document", "document_title"); return false;' if User.current.allowed_to?(:add_documents, @project) 
  +%>
  +<br />
  +<br />
   Here you can see all the test cases of the project:
   
   <script type="text/javascript">
  
positive.code:     %><ul><%
      map.each do |k, v|
          if v[:type] == "method"
              %> <li data-jstree='{"icon":"jstree-file"}'> <%
          else
          # If "opened" is true, the whole tree is opened when accessing the page
          # If "opened" is false, the tree is closed when accessing the page
            %> <li data-jstree='{"opened":false}'> <%
          end
          %>
          <%= v[:name] %> 
          <%= v[:type] %> <br />
  
          <% listing(v[:content]) if v[:content].is_a?(::Hash)
          %></li><%
      end
      %></ul><%
  
negative.code:     if path_array.length == 0
          test = {}
          test[:name] = t.name
          test[:status] = t.status.downcase
          test[:type] = "method"
          test[:content] = t
          map[t.name] = test
  