application.mobile.haml 1.27 KB
Newer Older
movilla's avatar
movilla committed
1 2 3
-# Copyright (c) 2010-2011, Diaspora Inc. This file is
-# licensed under the Affero General Public License version 3 or later. See
-# the COPYRIGHT file.
maxwell's avatar
maxwell committed
4 5

!!!
6 7
%html{lang: I18n.locale.to_s, dir: (rtl? ? "rtl" : "ltr")}
  %head{prefix: og_prefix}
8 9 10 11
    - content_for :javascript do
      = javascript_include_tag "mobile/mobile"
      = load_javascript_locales

12 13
    = render "head"
    = include_color_theme "mobile"
Jonne Haß's avatar
Jonne Haß committed
14

15
    %meta{name: "viewport", content: "width=device-width, minimum-scale=1, maximum-scale=1, user-scalable=no"}/
16 17 18
    %meta{name: "HandheldFriendly", content: "True"}/
    %meta{name: "MobileOptimized", content: "320"}/
    %meta{"http-equiv" => "cleartype", :content => "on"}/
19 20

    / iOS mobile web app indicator
21 22 23
    / NOTE(we will enable these once we don't have to rely on back/forward buttons anymore)
    /%meta{:name => "apple-mobile-web-app-capable", :content => "yes"}
    /%link{:rel => "apple-touch-startup-image", :href => "/images/apple-splash.png"}
maxwell's avatar
maxwell committed
24

25
  %body
26
    #app
27
      = render "layouts/header"
28
      - if user_signed_in?
29
        = render "layouts/drawer"
30

31 32 33
      .flash-messages-container
        .flash-messages#flash-messages

34 35 36
      #main{:role => "main"}
        - if current_page?(:activity_stream)
          %h3
37
            = t("streams.activity.title")
38
        = yield