Updated Sitemap to New UI
This commit is contained in:
parent
1e5ad750cd
commit
2c0761aafb
|
@ -1,26 +1,35 @@
|
||||||
<%= content_tag :li, :class => active_for_controllers('sites') do -%>
|
<!-- <nav id="sidebar">
|
||||||
<%= link_to content_tag(:i, nil, :class => 'icons-cog') + content_tag(:span, t('site.settings')), admin_site_site_info_path(@site) %>
|
<h2 class="position"><a href="#"><i class="icons-flow-tree"></i></a></h2>
|
||||||
|
<div id="sidebar-menu">
|
||||||
|
<div class="scroller">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="sub-nav-block-list">
|
||||||
|
</div>
|
||||||
|
<div class="sub-nav-arrow"></div>
|
||||||
|
</nav> -->
|
||||||
|
|
||||||
<%= content_tag :ul, :class => ("nav nav-list " + visible_for_controllers('sites')) do -%>
|
<nav id="sidebar">
|
||||||
<%= content_tag :li, link_to(t('site.info'), admin_site_site_info_path(@site)), :class => active_for_action('sites', 'site_info') %>
|
<h2 class="position"><a href="#"><i class="icons-cog"></i></a></h2>
|
||||||
<%#= content_tag :li, link_to(t(:system_info), admin_site_system_info_path(@site)), :class => active_for_action('sites', 'system_info') %>
|
<div id="sidebar-menu">
|
||||||
<%#= content_tag :li, link_to(t('site.language'), admin_site_language_path(@site)), :class => active_for_action('sites', 'language') %>
|
<div class="scroller">
|
||||||
<%= content_tag :li, link_to(t('mail.setting'), admin_site_mail_setting_path(@site)), :class => active_for_action('sites', 'mail_setting') %>
|
<ul class="sidebar-nav no-sub-nav">
|
||||||
<%#= content_tag :li, link_to(t(:theme), admin_site_ui_theme_path(@site)), :class => active_for_action('sites', 'ui_theme') %>
|
<li title="Structure"><%= link_to admin_items_path do %><span><i class="icons-flow-tree"></i></span><%end%></li>
|
||||||
<%= content_tag :li, link_to(t('sitemap'), admin_site_sitemap_path(@site)), :class => active_for_action('sites', 'sitemap') %>
|
|
||||||
<%= content_tag :li, link_to(t('user_actions'), admin_user_actions_path), :class => active_for_action('user_actions', 'index') %>
|
|
||||||
<% end -%>
|
|
||||||
|
|
||||||
<% end -%>
|
<li title="Site Map"><%= link_to admin_site_sitemap_path(@site), :class => active_for_action('sites', 'sitemap') do %><span><i class="icons-directions"></i></span><%end%></li>
|
||||||
|
|
||||||
<%= content_tag :li, :class => active_for_controllers('designs') do -%>
|
<li title="Modules"><%= link_to admin_module_store_path, :class => active_for_action('module_store', 'index') do %><span><i class="icons-layout"></i></span><%end%></li>
|
||||||
<%= link_to content_tag(:i, nil, :class => 'icons-brush') + content_tag(:span, t(:template)), admin_designs_path %>
|
|
||||||
<% end -%>
|
|
||||||
|
|
||||||
<%= content_tag :li, :class => active_for_controllers('template_store', 'module_store') do -%>
|
<li title="Templates"><%= link_to admin_template_store_path, :class => active_for_action('template_store', 'index') do %><span><i class="icons-brush"></i></span><%end%></li>
|
||||||
<%= link_to content_tag(:i, nil, :class => 'icons-cart') + content_tag(:span, t(:purchase)), admin_purchases_path %>
|
|
||||||
<%= content_tag :ul, :class => ("nav nav-list " + visible_for_controllers('template_store', 'module_store')) do -%>
|
|
||||||
<%= content_tag :li, link_to(t('store.template'), admin_template_store_path), :class => active_for_action('template_store', 'index') %>
|
<li title="Site Info"><%= link_to admin_site_site_info_path(@site), active_for_action('sites', 'site_info') do %><span><i class="icons-browser"></i></span><%end%></li>
|
||||||
<%= content_tag :li, link_to(t('store.module'), admin_module_store_path), :class => active_for_action('module_store', 'index') %>
|
|
||||||
<% end %>
|
<li title="Search Engine"><a href="/orbit_4.0.1/admin/search_engine/index.shtml?sidebarNavList=5&subNavBlockList=0"><span><i class="icons-search"></i></span></a></li>
|
||||||
<% end -%>
|
<li title="Preference"><a href="/orbit_4.0.1/admin/preference/index.shtml?sidebarNavList=7&subNavBlockList=0"><span><i class="icons-cog"></i></span></a></li>
|
||||||
|
<li title="System Info"><a href="/orbit_4.0.1/admin/system_info/index.shtml?sidebarNavList=8&subNavBlockList=0"><span><i class="icons-info-2"></i></span></a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="sub-nav-arrow"></div>
|
||||||
|
</nav>
|
|
@ -1,16 +1,10 @@
|
||||||
<div class="map-block <%= 'disabled' if !sitemap_block.show_in_sitemap_for(temp_locale) %>">
|
<% sitemap_block.children.each_with_index do |child, i| %>
|
||||||
<h4>
|
<li "<%= 'disabled' if !child.show_in_sitemap_for(temp_locale) %>">
|
||||||
<button id="<%= sitemap_block.id %>" class="onoff pull-right" temp_locale="<%= temp_locale %>"><%= sitemap_block.show_in_sitemap_for(temp_locale) ? t('on_upcase') : t('off_upcase') %></button>
|
<h6>
|
||||||
<span><%= sitemap_block_counter + 1 %> <%= sitemap_block.title_translations[temp_locale] %></span>
|
<%= content_tag :button, :id => child.id, :temp_locale => temp_locale, :disabled => !child.show_in_sitemap_for(temp_locale) do %>
|
||||||
</h4>
|
|
||||||
<ul>
|
|
||||||
<% sitemap_block.children.each_with_index do |child, i| %>
|
|
||||||
<li class="clear <%= 'disabled' if !child.show_in_sitemap_for(temp_locale) %>">
|
|
||||||
<%= content_tag :button, :id => child.id, :class => "onoff pull-right", :temp_locale => temp_locale, :disabled => !child.show_in_sitemap_for(temp_locale) do %>
|
|
||||||
<%= child.show_in_sitemap_for(temp_locale) ? t('on_upcase') : t('off_upcase') %>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
<span><%= "#{sitemap_block_counter + 1}-#{i + 1}" %> <%= child.title_translations[temp_locale] %></span>
|
<input type="checkbox" class="toggle-check" data-deploy="right">
|
||||||
</li>
|
<span><%= "#{sitemap_block_counter + 1}-#{i + 1}" %> <%= child.title_translations[temp_locale] %></span>
|
||||||
|
</h6>
|
||||||
|
</li>
|
||||||
<% end if sitemap_block.children %>
|
<% end if sitemap_block.children %>
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
|
@ -1,21 +1,23 @@
|
||||||
|
<head>
|
||||||
|
<!-- Meta -->
|
||||||
|
<!--#include virtual="/orbit_4.0.1/include/meta.html"-->
|
||||||
|
|
||||||
|
<!-- Basic CSS -->
|
||||||
|
<!--#include virtual="/orbit_4.0.1/include/basic_css.html"-->
|
||||||
|
<%= stylesheet_link_tag "lib/wrap-nav"%>
|
||||||
|
<%= stylesheet_link_tag "lib/filter"%>
|
||||||
|
<%= stylesheet_link_tag "lib/sitemap"%>
|
||||||
|
<%= stylesheet_link_tag "lib/togglebox"%>
|
||||||
|
|
||||||
|
<%= javascript_include_tag 'lib/sitemap' %>
|
||||||
|
<%= javascript_include_tag 'lib/masonry.pkgd.min' %>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
|
||||||
<% content_for :side_bar do %>
|
<% content_for :side_bar do %>
|
||||||
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t('site.settings'), :link_url => admin_site_site_info_path(@site), :icon => 'icons-cog', :side_bar_content => 'admin/sites/side_bar'} %>
|
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t('site.settings'), :link_url => admin_site_site_info_path(@site), :icon => 'icons-cog', :side_bar_content => 'admin/sites/side_bar'} %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<ul class="nav nav-tabs">
|
|
||||||
<% @site_valid_locales.each_with_index do |locale, i| %>
|
|
||||||
<li <%= ( i == 0 ) ? " class=active" : '' %>><a data-toggle="tab" href=".<%= locale %>"><%= I18nVariable.from_locale(locale) %></a></li>
|
|
||||||
<% end %>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<div class="tab-content">
|
|
||||||
<% @site_valid_locales.each_with_index do |temp_locale, i| %>
|
|
||||||
<div class="tab-pane site-map <%= temp_locale %> fade tab-pane <%= ( i == 0 ) ? "in active" : '' %>">
|
|
||||||
<%= render :partial => 'sitemap_block', :collection => @items, :locals => {:temp_locale => temp_locale} %>
|
|
||||||
</div>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<% content_for :page_specific_javascript do %>
|
<% content_for :page_specific_javascript do %>
|
||||||
<%= javascript_include_tag "lib/jquery.masonry.min.js" %>
|
<%= javascript_include_tag "lib/jquery.masonry.min.js" %>
|
||||||
<script>
|
<script>
|
||||||
|
@ -56,4 +58,35 @@
|
||||||
$.getScript('<%= admin_sites_path %>' + '/' + $(this).attr('id') + '/sitemap_toggle?parent=true&temp_locale=' + $(this).attr('temp_locale'));
|
$.getScript('<%= admin_sites_path %>' + '/' + $(this).attr('id') + '/sitemap_toggle?parent=true&temp_locale=' + $(this).attr('temp_locale'));
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
<section id="main-wrap">
|
||||||
|
<div class="wrap-inner">
|
||||||
|
|
||||||
|
<div id="sitemap">
|
||||||
|
<ul id="map-tree-language" class="nav nav-pills">
|
||||||
|
<% @site_valid_locales.each_with_index do |locale, i| %>
|
||||||
|
<li <%= ( i == 0 ) ? " class=active" : '' %>><a data-toggle="tab" href=".<%= locale %>"><%= I18nVariable.from_locale(locale) %></a></li>
|
||||||
|
<% end %>
|
||||||
|
</ul>
|
||||||
|
<% @site_valid_locales.each_with_index do |temp_locale, i| %>
|
||||||
|
<div class="tab-content map-tree-content">
|
||||||
|
<div class="line"></div>
|
||||||
|
<ul id="<%= temp_locale %>" class="map-tree tab-pane fade <%= ( i == 0 ) ? "in active" : '' %>">
|
||||||
|
<%= render :partial => 'sitemap_block', :collection => @items, :locals => {:temp_locale => temp_locale} %>
|
||||||
|
</ul>
|
||||||
|
<% end %>
|
||||||
|
<br/><br/><br/>
|
||||||
|
|
||||||
|
|
||||||
|
<% @site_valid_locales.each_with_index do |temp_locale, i| %>
|
||||||
|
<div class="tab-pane site-map <%= temp_locale %> fade tab-pane <%= ( i == 0 ) ? "in active" : '' %>">
|
||||||
|
<%= render :partial => 'sitemap_block', :collection => @items, :locals => {:temp_locale => temp_locale} %>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
Loading…
Reference in New Issue