Sha256: 483e6510bfa534ccb44276c059ff54f71ed553bffa8dec422be4825abd24c320

Contents?: true

Size: 694 Bytes

Versions: 11

Compression:

Stored size: 694 Bytes

Contents

<%# Mobile toggle will only appear if a Page template has a mobile counterpart.  %>
<% if mobile_template_exists?(@page) %>
    <%
       mobile_state = session[:mobile_mode] == true ? "Mobile" : "Desktop"
    %>
    <div class="btn-group">
      <button class="btn dropdown-toggle btn-small btn-info btn-solo" data-toggle="dropdown">
        <%= mobile_state %>
        <span class="caret"></span>
      </button>
      <ul class="dropdown-menu" role="menu">
        <li><%= link_to "View as Mobile", "#{@page.path}?template=mobile", :target => "_top" %></li>
        <li><%= link_to "View as Desktop", "#{@page.path}?template=full", :target => "_top" %></li>
      </ul>
    </div>
<% end %>

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
browsercms-artirix-4.0.4 app/views/cms/application/_mobile_toolbar.html.erb
browsercms-artirix-4.0.3.3 app/views/cms/application/_mobile_toolbar.html.erb
browsercms-artirix-4.0.3.2 app/views/cms/application/_mobile_toolbar.html.erb
browsercms-artirix-4.0.3.1 app/views/cms/application/_mobile_toolbar.html.erb
browsercms-artirix-4.0.3 app/views/cms/application/_mobile_toolbar.html.erb
browsercms-artirix-4.0.2 app/views/cms/application/_mobile_toolbar.html.erb
browsercms-artirix-4.0.1.1 app/views/cms/application/_mobile_toolbar.html.erb
browsercms-artirix-4.0.0.rc1.art4 app/views/cms/application/_mobile_toolbar.html.erb
browsercms-4.0.0.rc1 app/views/cms/application/_mobile_toolbar.html.erb
browsercms-4.0.0.beta app/views/cms/application/_mobile_toolbar.html.erb
browsercms-4.0.0.alpha app/views/cms/application/_mobile_toolbar.html.erb