2014-01-16 10:15:00 +00:00
|
|
|
<ul class="nav" role="navigation">
|
|
|
|
|
|
|
|
<!-- menu -->
|
|
|
|
<li id="orbit-start" class="dropdown">
|
2014-03-07 07:15:52 +00:00
|
|
|
<a class="orbitlogo" href="#" role="button" class="dropdown-toggle" data-toggle="dropdown" title="<%= t('dashboard_')%>"></a>
|
2014-01-16 10:15:00 +00:00
|
|
|
<ul class="dropdown-menu" role="menu" aria-labelledby="orbit-start">
|
|
|
|
<li><%= link_to content_tag(:i, nil, :class => 'icons-gauge') + ' ' + t(:dashboard_), admin_dashboards_path, tabindex: '-1' %></li>
|
|
|
|
<li><%= link_to content_tag(:i, nil, :class => 'icons-users') + ' ' + t(:member_), admin_users_new_interface_index_path, tabindex: '-1' %></li>
|
|
|
|
<% if (is_admin? rescue false) %>
|
|
|
|
<li class="divider"></li>
|
|
|
|
<li><%= link_to content_tag(:i, nil, :class => 'icons-cog') + ' ' + t('site.settings'), admin_items_path, tabindex: '-1' %></li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<!-- home -->
|
|
|
|
<li id="orbit-home">
|
2014-03-07 07:15:52 +00:00
|
|
|
<a href="<%= root_path %>" role="button" title="<%= t('homepage')%>">
|
2014-01-16 10:15:00 +00:00
|
|
|
<i class="icons-house"></i> <span class="hide"><%= t(:homepage) %></span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<!-- Desktop -->
|
|
|
|
<% if @site.desktop_closed%>
|
|
|
|
<li id="orbit-desktop">
|
2014-03-07 07:15:52 +00:00
|
|
|
<a href="<%= desktop_path %>" role="button" title="<%= t('desktop')%>">
|
2014-01-16 10:15:00 +00:00
|
|
|
<i class="icons-screen"></i> <span class="hide"><%= t(:desktop) %></span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
<% if @site.default_image.present?%>
|
|
|
|
<style>
|
|
|
|
#orbit-bar .orbitlogo {
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
background-size: 70%;
|
|
|
|
display: inline-block;
|
|
|
|
background-position: center;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-image: url(<%= @site.default_image %>);
|
|
|
|
/* For Suck IE */
|
|
|
|
background-image: url(<%= @site.default_image%>)\9;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<% end %>
|