mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-23 07:34:08 +01:00
remove caching from viewing dependencies
this causes stack overflow in some cases
This commit is contained in:
parent
61123ffa42
commit
66f7fe9f2b
1 changed files with 23 additions and 26 deletions
|
|
@ -1,32 +1,29 @@
|
||||||
<%
|
<%
|
||||||
@rec_depth ||= 0
|
@rec_depth ||= 0
|
||||||
|
|
||||||
cache [successor, "successor"] do
|
|
||||||
%>
|
%>
|
||||||
<div id="<%= dom_id(successor, 'successor') %>" class="item-container">
|
<div id="<%= dom_id(successor, 'successor') %>" class="item-container">
|
||||||
<div id="<%= dom_id(successor, 'successor_line') %>">
|
<div id="<%= dom_id(successor, 'successor_line') %>">
|
||||||
<div class="description<%= staleness_class( successor ) %>" style="margin-left: 20px">
|
<div class="description<%= staleness_class( successor ) %>" style="margin-left: 20px">
|
||||||
<span class="todo.descr"><%= h sanitize(successor.description) %></span>
|
<span class="todo.descr"><%= h sanitize(successor.description) %></span>
|
||||||
|
|
||||||
<%= remote_delete_dependency(successor, predecessor) %>
|
<%= remote_delete_dependency(successor, predecessor) %>
|
||||||
|
|
||||||
<% unless successor.pending_successors.empty?
|
<% unless successor.pending_successors.empty?
|
||||||
if @rec_depth < 8
|
if @rec_depth < 8
|
||||||
@rec_depth+=1 %>
|
@rec_depth+=1 %>
|
||||||
<div class="todo_successors" id="<%= dom_id(successor, 'successors') %>">
|
<div class="todo_successors" id="<%= dom_id(successor, 'successors') %>">
|
||||||
<%= render :partial => "todos/successor",
|
<%= render :partial => "todos/successor",
|
||||||
:collection => successor.pending_successors,
|
:collection => successor.pending_successors,
|
||||||
:locals => { :todo => successor,
|
:locals => { :todo => successor,
|
||||||
:parent_container_type => parent_container_type,
|
:parent_container_type => parent_container_type,
|
||||||
:suppress_dependencies => true,
|
:suppress_dependencies => true,
|
||||||
:predecessor => successor }
|
:predecessor => successor }
|
||||||
%>
|
%>
|
||||||
</div>
|
</div>
|
||||||
<% else %>
|
<% else %>
|
||||||
<a title="There are more dependencies that are not shown">[...]</a>
|
<a title="There are more dependencies that are not shown">[...]</a>
|
||||||
<% end %>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
</div>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue