trabajo-afectivo/app/views/layouts/knowledge_base.html.erb

77 lines
2.9 KiB
Text
Raw Normal View History

2019-06-04 03:40:48 +00:00
<!DOCTYPE HTML>
<html lang="<%= system_locale_via_uri.locale %>"
data-id='<%= @knowledge_base.id %>'
data-iconset='<%= @knowledge_base.iconset %>'
data-available-locales='<%= all_locales.map(&:locale).join(',') %>'
data-base-path='<%= custom_path_if_needed help_root_path(locale: '{locale}') %>'
data-primary-locale="<%= (filter_primary_kb_locale || all_locales.first)&.locale %>">
<meta charset="utf-8">
<title><%= kb_public_page_title %></title>
<%= stylesheet_link_tag "knowledge_base.css", :media => 'all' %>
<%= render 'knowledge_base/public/inline_stylesheet', knowledge_base: @knowledge_base %>
<%= render 'knowledge_base/public/top_banner', object: @object || @knowledge_base if editor? %>
<header class="header js-header">
<div class="container">
<h1 class="logo">
<%= link_to custom_path_if_needed(help_root_path(locale: params[:locale])) do %>
<img src="/assets/images/<%= Setting.get('product_logo') %>">
<% end %>
</h1>
<nav class="menu">
<% menu_items.each do |menu_item| %>
<%= link_to menu_item.title, menu_item.url, class: 'menu-item', target: menu_item.new_tab ? '_blank' : nil %>
<% end %>
</nav>
</div>
<div class="container">
<div class="search">
<div class="search-field">
<%= icon 'magnifier' %>
2019-06-06 00:13:49 +00:00
<input class="js-search-input" type="search" placeholder="<%= zt('How can we help you? Search for an answer or a topic...') %>">
2019-06-04 03:40:48 +00:00
</div>
<ul class="search-results js-search-results" data-empty-placeholder="<%= zt('No results were found.') %>"></ul>
</div>
</div>
</header>
<%= render_breadcrumb_if_needed %>
<%= yield %>
<footer class="footer">
<div class="container">
<div class="footer-menu">
<div class="copyright">
<%= @knowledge_base.translation.footer_note %>
</div>
<div class="language-picker">
<a class="btn btn--action" href="#" data-toggle="dropdown" aria-expanded="false">
<%= system_locale_via_uri.name %>
<%= icon 'arrow-down' %>
</a>
<ul class="dropdown-menu dropdown-menu-right dropdown-menu-up" role="menu">
<% @object_locales&.each do |locale| %>
<li class="<%= 'is-selected' if locale.name == system_locale_via_uri.name %>">
<%= link_to custom_path_if_needed(url_for(locale: locale.locale)), hreflang: locale.locale do %>
<%= icon 'checkmark' %>
<%= locale.name %>
<% end %>
</li>
<% end %>
</ul>
</div>
</div>
</div>
</footer>
<script type='text/javascript'>
if(window.fetch === undefined || window.Promise === undefined || Element.prototype.prepend === undefined){
document.write('<script src="<%= path_to_javascript('knowledge_base_public_polyfills') %>"><\/script>')
}
</script>
<%= javascript_include_tag 'knowledge_base_public' %>