Sha256: bffe9e393e765c3b27ced8d451572b9600fa88d978efdcf5850aeffe4adc6f29

Contents?: true

Size: 1.74 KB

Versions: 2

Compression:

Stored size: 1.74 KB

Contents

<!DOCTYPE html>
<html>
  <head>
  	<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    <title><%%= "Área administrativa - #{ yield(:title) }" %></title>
    <%%= stylesheet_link_tag 'application' %>
    <%%= javascript_include_tag :defaults %>
    <%%= yield(:head) %>
    <%%= csrf_meta_tag %>
  </head>
  <body>
  <div class="top_nav">
  	 <%% if logged_in? %>
       <%%= current_<%= user_singular_name %>.username %> | <%%= current_<%= user_singular_name %>.email %> | <%%= link_to "» Sair", logout_path, :class => 'logout' %>
      <%% else %>
        <%%= link_to "» Entrar", login_path, :class => 'login' %>
      <%% end %>
	</div>        	
  	<div id="header">
  		<%%= link_to image_tag("logo.png"), admin_home_url %>
  	</div>
	<div id="container">
		<div id="sidenav">
			<div class="menu">
			  <%%= menu do |m| %>
			    <%%= m.<%= user_plural_name %> admin_<%= user_plural_name %>_path do %>
			  	  <%%= image_tag 'users.png'  %> <%= user_plural_class_name %>
			    <%% end %>	
			    <%%= m.menu1 "#menu" do %>
			      <%%= image_tag 'menu.png'  %> Menu 1
			    <%% end %>
			    <%%= m.menu2 "#menu" do %>
			      <%%= image_tag 'menu.png'  %> Menu 2			    
			    <%% end %>
			    <%%= m.menu3 "#menu" do %>
			      <%%= image_tag 'menu.png'  %> Menu 3			    
			    <%% end %>
			    <%%= m.menu4 "#menu" do %>
			      <%%= image_tag 'menu.png'  %> Menu 4		    
			    <%% end %>
			  <%% end %>
			</div>			
  		</div>  		
  		<div id="main">	 
  		  <div class="box-header">	     
	        <%% if show_title? %>  
	          <h2><%%= yield(:title) %></h2>
	        <%% end %>
	      </div>    
	      <div class="box">
	        <%%= raw flash_messages %>
	        <%%= yield %>
	      </div>
	    </div>
	</div>
  </body>
</html>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
flexi_generators-0.2.6 lib/generators/flexi_auth/templates/views/erb/application.html.erb
flexi_generators-0.2.5 lib/generators/flexi_auth/templates/views/erb/application.html.erb