aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/layouts/_base.html.haml
diff options
context:
space:
mode:
authorrhenium <rhenium@rhe.jp>2015-04-05 15:58:03 +0900
committerrhenium <rhenium@rhe.jp>2015-04-05 15:58:03 +0900
commita1812b253efdc1b06dba4ef59b6c3dcc8ef22c54 (patch)
tree558bb10f0bdf4b0b7b50916a5c3aa5c5e80db21c /app/views/layouts/_base.html.haml
parente3d1ef82877f8bbeb6c2e9d6499fdd5ecbc40c94 (diff)
downloadaclog-a1812b253efdc1b06dba4ef59b6c3dcc8ef22c54.tar.gz
web: reorganize views
Diffstat (limited to 'app/views/layouts/_base.html.haml')
-rw-r--r--app/views/layouts/_base.html.haml68
1 files changed, 0 insertions, 68 deletions
diff --git a/app/views/layouts/_base.html.haml b/app/views/layouts/_base.html.haml
deleted file mode 100644
index 32ce935..0000000
--- a/app/views/layouts/_base.html.haml
+++ /dev/null
@@ -1,68 +0,0 @@
-%html{xmlns: "http://www.w3.org/1999/xhtml"}
- %head
- %title= yield :title
- %meta{name: "viewport", content: "width=device-width"}
- %meta{"http-equiv" => "X-UA-Compatible", content: "IE=edge,chrome=1"}
- %link{rel: "shortcut icon", href: image_path("favicon.ico")}
- %link{rel: "apple-touch-icon-precomposed", href: image_path("apple-touch-icon-precomposed.png")}
- %meta{name: "msapplication-TileImage", content: image_path("tile-image.png")}
- %meta{name: "msapplication-TileColor", content: "#f0eadb"}
- %meta{name: "twitter:widgets:csp", content: "on"}
- = stylesheet_link_tag "application", media: nil
- = javascript_include_tag "application"
- = csrf_meta_tags
- - if @next_url
- %link{rel: "next", href: @next_url}
- - if @prev_url
- %link{rel: "prev", href: @prev_url}
- %body{data: meta_info}
- %nav.navbar.navbar-static-top
- .container
- .nav.navbar-nav.navbar-left
- = link_to root_path, class: "navbar-brand" do
- aclog
- - if Rails.env.development?
- (dev)
- %ul.nav.navbar-nav.navbar-right
- %li.dropdown.omittable
- %a.dropdown-toggle{href: "#", data: { toggle: "dropdown" }}<
- All
- %span.caret/
- %ul.dropdown-menu
- %li= link_to "Best", best_path
- %li= link_to "Timeline", timeline_path
- %li.dropdown.omittable#user-jump-dropdown
- %a.dropdown-toggle{href: "#", data: { toggle: "dropdown", "v-on" => "click: focus" }}<
- User
- %span.caret/
- %ul.dropdown-menu
- %li
- %form{autocomplete: "off", data: {"v-on" => "submit: submit"}}
- .input-group
- %input.form-control{type: "text", placeholder: "Username", data: {"v-model" => "enteredUserName"}}
- %span.input-group-btn
- %button.btn{type: "submit"} Go
- %template{data: {"v-repeat" => "users"}}
- %li.user-jump-suggestion
- %a{href: user_path("dummy").sub("dummy", "{{screen_name}}"), title: "{{name}} (@{{screen_name}})"}<
- %img.twitter-icon{src: "{{profile_image_url}}", alt: "@{{screen_name}}", data: {"v-on" => "error: failProfileImage"}}
- %span @{{screen_name}}
- %li{data: {"v-if" => "loading"}}
- %img.loading-image{src: image_path("loading.gif")}
- - if logged_in?
- %li.dropdown
- %a.dropdown-toggle{href: "#", data: { toggle: "dropdown" }}<
- = profile_image_tag current_user, :mini
- %span.caret/
- %ul.dropdown-menu
- %li= link_to "Best", user_path(current_user.screen_name)
- %li= link_to "Timeline", user_timeline_path(current_user.screen_name)
- %li= link_to "Favorites", user_favorites_path(current_user.screen_name)
- %li= link_to "Discovered by", user_discovered_by_path(current_user.screen_name)
- %li= link_to "Discovered users", user_discovered_users_path(current_user.screen_name)
- %li.divider
- %li= link_to "Settings", settings_path
- %li= link_to "Sign out", logout_path
- - else
- %li= link_to "Sign in", "/i/login?redirect_after_login=" + CGI.escape(request.fullpath), method: :post, class: "signup"
- = yield