angular.html.haml 1.89 KB
Newer Older
1
!!!
 JosephK's avatar
JosephK committed
2
%html{'ng-app' => 'loomioApp', 'ng-controller' => 'RootController as app'}
3
4
5
6
7
8
9
10
11
12
13
  %head
    %title Framavox
    %meta{charset: 'utf-8'}
    %meta{content: 'IE=Edge', 'http-equiv' => 'X-UA-Compatible'}
    %meta{content: 'width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no', name: "viewport"}
    %base{href: '/'}

    %link{rel: 'canonical', 'ng-if' => 'links.canonical', 'ng-href' => '{{links.canonical}}'}
    %link{rel: 'alternate', type: 'application/rss+xml', 'ng-if' => 'links.rss', 'ng-href' => '{{links.rss}}'}
    %link{rel: 'prev', 'ng-if' => 'links.prev', 'ng-href' => '{{links.prev}}'}
    %link{rel: 'next', 'ng-if' => 'links.next', 'ng-href' => '{{links.next}}'}
 JosephK's avatar
JosephK committed
14
15
16
    %link{rel: 'manifest', href: '/manifest.json'}

    %link{href: client_asset_path(:"app.min.css"), rel: 'stylesheet'}
17

 JosephK's avatar
JosephK committed
18
    %link{href: "https://fonts.googleapis.com/icon?family=Material+Icons", rel: "stylesheet"}
19
20

    = render 'angular/metadata'
 JosephK's avatar
JosephK committed
21
    = render 'angular/intercom' if current_user.is_logged_in?
22

 JosephK's avatar
JosephK committed
23
  %body{'ng-keydown' => 'keyDown($event)', layout: "column", flex: ""}
24
25
    %flash
    %navbar
 JosephK's avatar
JosephK committed
26

 JosephK's avatar
JosephK committed
27
28
29
30
31
32
    %md_content.lmo-sidebar-and-main-container{layout: "row", flex: ""}
      %sidebar{'ng-if': "isLoggedIn() && renderSidebar"}
      %md_content.lmo-main-content{flex: ""}
        .lmo-main-background
          %ng_outlet{'ng-if' => '!refreshing && !pageError'}
          %error_page{'ng-if' => 'pageError', 'error' => 'pageError'}
33
34
35
36
    %outlet{name: 'after-start-menu'}

    %script{src: client_asset_path(:"vendor.min.js")}
    :javascript
 JosephK's avatar
JosephK committed
37
      window.Loomio = #{@appConfig.to_json.html_safe}
 JosephK's avatar
JosephK committed
38
39
      window.Loomio.emojis.source = (emojione.shortnames || "").split("|")
      window.Loomio.emojis.render = emojione.shortnameToImage
40
41
42
    %script{src: client_asset_path(:"app.js")}

    = javascript_include_tag 'angular_ahoy' if hosted_by_loomio?
 JosephK's avatar
JosephK committed
43
    <script src="https://framasoft.org/nav/nav.js" type="text/javascript"></script>