<fieldset id="task_dependencies">
  <legend><%=_ "Dependencies"%></legend>

  <label for="dependencies_input"><%=_ 'Depends on'%></label>
  <% if perms['edit'].empty? %>
    <input name="dependencies[]" size="12" type="text" id="dependencies_input" title="<%=_("Search by task number or title")%>" class="tooltip" >
    <div style="clear:both; display:none;" id="dependencies_input_auto_complete"></div>
  <% else %>
    <input name="dependencies[]" size="12" type="text" disabled="disabled">
  <% end %>

  <span class="dependencies">
    <%= render :partial => "dependency", :collection => @task.dependencies.accessed_by(current_user), :locals => { :perms => perms } %>
  </span>

  <% if @task.dependants.any? %>
    <div style="clear:both">
      <label for="dependants"><%=_ "Depended on by"%></label>
      <% @task.dependants.accessed_by(current_user).each do |d| %>
        <%= link_to_task(d) %><br/>
      <% end %>
    </div>
  <% end %>
</fieldset>


<fieldset id="task_dependencies">
  <legend><%=_ "Dependencies"%></legend>

  <label for="dependencies_input"><%=_ 'Depends on'%></label>
  <% if perms['edit'].empty? %>
    <input name="dependencies[]" size="12" type="text" id="dependencies_input" title="<%=_("Search by task number or title")%>" class="tooltip" >
    <div style="clear:both; display:none;" id="dependencies_input_auto_complete"></div>
  <% else %>
    <input name="dependencies[]" size="12" type="text" disabled="disabled">
  <% end %>

  <span class="dependencies">
    <%= render :partial => "tasks/dependency", :collection => @task.dependencies.accessed_by(current_user), :locals => { :perms => perms } %>
  </span>

  <% if @task.dependants.any? %>
    <div style="clear:both">
      <label for="dependants"><%=_ "Depended on by"%></label>
      <% @task.dependants.accessed_by(current_user).each do |d| %>
        <%= link_to_task(d) %><br/>
      <% end %>
    </div>
  <% end %>
</fieldset>


Use full partial name in tasks view, this view is use by templates controller.
Use full partial name in tasks view, this view is use by templates controller.
