Sha256: 4be9c6f7406dcbccc2d8071e39dd56a22a0a529c091aed3f513a3184c71d1d68
Contents?: true
Size: 1.88 KB
Versions: 2
Compression:
Stored size: 1.88 KB
Contents
<% count = page.children.count children = count > 0 expanded = expanded_rows.include?(page.id) padding_left = (level * 22) + 4 children_class = children ? (expanded ? ' children-visible' : ' children-hidden') : ' no-children' virtual_class = page.virtual? ? " virtual": "" expander = children ? image_tag((expanded ? "collapse" : "expand"), :class => "expander", :alt => 'toggle children', :title => '', :align => 'center') : "" icon_name = page.virtual? ? "virtual-page" : "page" icon = image_tag(icon_name, :class => "icon", :alt => 'page-icon', :title => '', :align => 'center') title = %{<span class="title">#{ page.title }</span>} behavior_id = page.behavior_id.to_s.strip behavior = behavior_id.empty? ? '' : %{<small class="info">(#{ behavior_id })</small>} spinner = image_tag("spinner.gif", :class => 'busy', :id => "busy-#{page.id}", :alt => "", :title => "", :align => "center", :style => 'display: none;') -%> <tr id="page-<%= page.id %>" class="node level-<%= level %><%= children_class %><%= virtual_class %>"> <td class="page" style="padding-left: <%= padding_left %>px"> <span class="w1"> <% if simple -%> <%= icon %> <%= title %> <% else -%> <%= expander %><a href="<%= page_edit_url(:id => page) %>"><%= icon %> <%= title %></a> <%= behavior %> <%= spinner %> <% end -%> </span> </td> <% unless simple -%> <td class="status <%= page.status.name.downcase %>-status"><%= page.status.name %></td> <td class="add-child"><%= link_to image_tag('add-child', :alt => 'add child'), page_new_url(:parent_id => page) %></td> <td class="remove"><%= link_to image_tag('remove', :alt => 'remove page'), page_remove_url(:id => page) %></td> <% end -%> </tr> <% level = level + 1 -%> <% if expanded page.children.each do |child| -%> <%= render_node child, :level => level, :simple => simple -%> <% end end -%>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
radiant-0.5.1 | app/views/admin/page/_node.rhtml |
radiant-0.5.2 | app/views/admin/page/_node.rhtml |