2014-04-11 11:38:56 +00:00
|
|
|
|
<div class="navbar">
|
|
|
|
|
<div class="navbar-inner">
|
|
|
|
|
<span class="brand"><i class="<%= node.root? ? 'icons-house' : 'icons-list-2' %>"></i></span>
|
|
|
|
|
<% if node.class.to_s.eql?('Page') %>
|
|
|
|
|
<% unless node.root? %>
|
|
|
|
|
<% name, icon_name = get_item_module_infos(node) %>
|
|
|
|
|
<span title="<%= name %>" class="item-type page tip"><i class="<%= icon_name %>"></i></span>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<span title="<%= t(:link) %>" class="item-type link tip"><i class="icon-link"></i></span>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class="item-title">
|
|
|
|
|
<%= content_tag(:em, node.url, class: "muted") if node.class.to_s.eql?('Link') %>
|
|
|
|
|
<% if node.class.to_s.eql?('Page') %>
|
2014-05-14 11:47:25 +00:00
|
|
|
|
<%= link_to node.name, "/" + I18n.locale.to_s + node.url %>
|
2014-04-11 11:38:56 +00:00
|
|
|
|
<% else %>
|
2014-05-14 11:47:25 +00:00
|
|
|
|
<%= link_to node.title, "/" + I18n.locale.to_s + node.url %>
|
2014-04-11 11:38:56 +00:00
|
|
|
|
<% end %>
|
|
|
|
|
<div class="item-menu">
|
|
|
|
|
<%= link_to content_tag(:i, nil, class: "icon-eye-open"), pages_edit_view_path(:id => node.id.to_s), class: "view-page open-slide tip", title: "View", data: {title: node.name} if node.class.to_s.eql?('Page') %>
|
|
|
|
|
<%# elsif node.class.to_s.downcase.eql?("link") %>
|
|
|
|
|
<%#= link_to content_tag(:i, nil, class: "icon-edit"), "#link", class: "open-slide tip link edit", title: t('editing.link'), data: {title: t('editing.link'), id: node.id.to_s, parent: node.parent_id.to_s, form: {name: node.name}.merge(node.title_translations).merge(node.urls)} %>
|
|
|
|
|
<%# end %>
|
2014-05-29 10:32:27 +00:00
|
|
|
|
<%= link_to content_tag(:i, nil, class: "icons-mobile"), pages_edit_view_path(:id => node.id.to_s, :mobile_view=>1), class: "view-page open-slide tip", title: "Edit Mobile Page", data: {title: "Edit Mobile Page"} if node.class.to_s.downcase.eql?("page") && current_site.mobile_on%>
|
2014-05-22 09:57:58 +00:00
|
|
|
|
<% unless name.eql? "sitemap" %>
|
2014-05-28 07:57:58 +00:00
|
|
|
|
<%= link_to content_tag(:i, nil, class: "icon-edit"), edit_page_path(node.id), class: "open-slide tip page edit", title: "Edit Page", data: {title: "Edit Page"} if node.class.to_s.downcase.eql?("page") && !node.root? %>
|
2014-04-11 11:38:56 +00:00
|
|
|
|
<%= link_to content_tag(:i, nil, class: "icons-newspaper"), new_page_path(:parent_page => node.id.to_s), class: "open-slide tip page", title: "Add Page", data: {title: "Add Page", id: 'new', parent: node.id.to_s} if node.class.to_s.eql?('Page') && level < 3 %>
|
|
|
|
|
<%#= link_to content_tag(:i, nil, class: "icon-link"), "#link", class: "open-slide tip link", title: t(:add_link), data: {title: t(:add_link), id: 'new', parent: node.id.to_s} if node.class.to_s.eql?('Page') %>
|
|
|
|
|
<%= link_to content_tag(:i, nil, class: "icon-trash"), page_path(node.id),:method => :delete,:remote => true, "data-confirm" => "Are you sure ?", class: "delete tip", title: "Delete", data: {title: "Delete"} unless node.root? %>
|
2014-05-22 09:57:58 +00:00
|
|
|
|
<% end %>
|
2014-04-11 11:38:56 +00:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="item-info pull-right">
|
2014-04-21 07:19:29 +00:00
|
|
|
|
<% I18n.available_locales.each do |valid_locale| %>
|
|
|
|
|
<% if node.enabled_for.include?(valid_locale.to_s) %>
|
|
|
|
|
<span class="label label-warning"><%= t(valid_locale.to_s) %></span>
|
2014-04-11 11:38:56 +00:00
|
|
|
|
|
|
2014-04-21 07:19:29 +00:00
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
2014-04-11 11:38:56 +00:00
|
|
|
|
<span class="badge <%= 'badge-inverse' if node.root? %>"></span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|