diff options
author | re4k <re4k@re4k.info> | 2013-04-30 23:09:54 +0900 |
---|---|---|
committer | re4k <re4k@re4k.info> | 2013-04-30 23:09:54 +0900 |
commit | 10c7c723c16d757b5a5692542911a08715966b6f (patch) | |
tree | 995d9b184bc5f9dc9d3d5819c723d62478e29784 /app/views/layouts/_base.html.haml | |
parent | 617c786764e4c10d85c87945a6c281061e65dcc8 (diff) | |
download | aclog-10c7c723c16d757b5a5692542911a08715966b6f.tar.gz |
refactor (not tested, no compatibility)
Diffstat (limited to 'app/views/layouts/_base.html.haml')
-rw-r--r-- | app/views/layouts/_base.html.haml | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/app/views/layouts/_base.html.haml b/app/views/layouts/_base.html.haml index d0c876c..27cf75f 100644 --- a/app/views/layouts/_base.html.haml +++ b/app/views/layouts/_base.html.haml @@ -1,7 +1,7 @@ !!! xml %html{xmlns: "http://www.w3.org/1999/xhtml"} %head - %title= strip_tags(@title.to_s) + " - aclog" + %title= title = stylesheet_link_tag "application" = javascript_include_tag "twitter" = javascript_include_tag "application" @@ -10,17 +10,15 @@ .navbar-inner .container .brand - = link_to "aclog", controller: "main", action: "index" + = link_to "aclog", root_path %ul.nav.pull-right %li - = link_to "report", controller: "report", action: "index" + = link_to "report", report_path %li - = link_to "search", controller: "search", action: "search" - %li - = link_to "about", controller: "main", action: "about" + = link_to "about", about_path - if logged_in? - %li= link_to "logout", controller: "sessions", action: "destroy" - %li= link_to session[:account].user.screen_name, user_path(session[:account].user.screen_name) + %li= link_to "logout", logout_path + %li= link_to session[:account].user.screen_name, user_best_path(session[:account].user.screen_name) - else %li= link_to "login", "/i/login" .container |