/
application.html.haml
32 lines (32 loc) · 1.33 KB
/
application.html.haml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
!!!
%html
%head
%title joinasquad.com: Let's play together
= stylesheet_link_tag "application"
= javascript_include_tag "application"
= csrf_meta_tags
%body
%a(href="http://github.com/cairo140/joinasquad.com")
%img(src="https://a248.e.akamai.net/assets.github.com/img/4c7dc970b89fd04b81c8e221ba88ff99a06c6b61/687474703a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f77686974655f6666666666662e706e67" alt="Fork me on GitHub" id="fork_me_on_github")
%nav.navbar.navbar-fixed-top
.navbar-inner
.fluid-container.sidebar-left
.logo-container.fluid-sidebar
%h1#logo
%a{:href => root_path}
! <span class="white">joinasquad</span><span class="yellow">.</span><span class="white">com</span>
%ul.nav.fluid-content
%li= link_to 'Home', root_path
%li= link_to 'Games', games_path
- if user_signed_in?
%li= link_to('Profile', current_user)
%li= link_to('Logout', destroy_user_session_path, :method => :delete)
%section#notifications
.fluid-container
- unless alert.nil?
.alert.alert-error= alert
- unless notice.nil?
.alert= notice
%section#content
.fluid-container.sidebar-left
= yield