blob: b8dc277310fa6497f7589c3712521fc93095dc2a (
plain)
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
|
!!! xml
%html{xmlns: "http://www.w3.org/1999/xhtml"}
%head
%title= title
= stylesheet_link_tag "application", media: "all"
= stylesheet_link_tag params[:controller], media: "all"
= javascript_include_tag "application"
= javascript_include_tag params[:controller]
%meta{name: "viewport", content: "width=600px"}
%body
.navbar.navbar-default.navbar-static-top
.container
.navbar-header
= link_to "aclog", root_path, class: "navbar-brand"
.navbar-right
%ul.nav.navbar-nav
%li
= link_to "about", about_path
- if logged_in?
%li= link_to "settings", settings_path
%li= link_to "logout", logout_path
%li= link_to "@" + session[:account].user.screen_name, user_path(session[:account].user.screen_name)
- else
%li= link_to "login", "/i/login?redirect_after_login=" + CGI.escape(request.fullpath)
.container
= yield
|