Skip to content

Instantly share code, notes, and snippets.

@yojimbosteel
Created September 23, 2016 19:10
Show Gist options
  • Save yojimbosteel/82c5795a817b4518e6e8e59216cd2fd8 to your computer and use it in GitHub Desktop.
Save yojimbosteel/82c5795a817b4518e6e8e59216cd2fd8 to your computer and use it in GitHub Desktop.
SLIM file causing crash after update to ST 3124
html lang="en" ng-app="App"
/ <!--[if lt IE 7]> <html lang="en" class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
/ <!--[if IE 7]> <html lang="en" class="no-js lt-ie9 lt-ie8"> <![endif]-->
/ <!--[if IE 8]> <html lang="en" class="no-js lt-ie9"> <![endif]-->
/ <!--[if gt IE 8]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
head
/! [if !IE]><!
javascript:
if (/*@cc_on!@*/false && document.documentMode === 10) {
document.documentElement.className+=' ie10';
}
/! <![endif]
title == content_for(:title) || page_title
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true
link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"
meta charset='utf-8'
meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'
meta name='viewport' content='width=device-width, initial-scale=1.0'
meta http-equiv='cleartype' content='on'
meta#logged_in name='logged_in' content="#{!!current_person}"
meta#current_person content="#{current_person.try(:id)}"
meta#global_config content="#{GlobalConfig.options.to_json}"
= favicon_link_tag favicon
= javascript_include_tag 'application', 'data-turbolinks-track' => true
/ = javascript_include_tag 'modernizr', 'data-turbolinks-track' => true
= csrf_meta_tags
== controller_include_tags
== content_for(:head)
body ng-controller="LayoutController"
md-toolbar.md-accent
.md-toolbar-tools
-if current_person
md-menu-bar
md-menu
button aria-label="Menu" ng-click='$mdOpenMenu($event)'
md-tooltip Navigation
md-icon menu
=render "layouts/toolbar"
md-menu
button ng-click="$mdOpenMenu($event)"
md-tooltip Notifications
md-icon style='font-size: 24px; line-height: 48px; color: {{(notifications | filter: {complete: "!true"}).length > 0 ? "inherit" : "rgba(0,0,0,0.4)"}}'
| notifications
.attention {{(notifications | filter: {complete: '!true'}).length > 0 ? (notifications | filter: {complete: '!true'}).length : ""}}
md-menu-content width="6"
close-button
md-menu-item ng-repeat='notification in notifications | orderBy: "-position"'
a href='{{notification.location}}' ng-click='completeNotification(notification)'
md-button ng-click='dothing'ng-disabled='notification.complete' {{notification.title}}
md-menu-item ng-hide='notifications.length > 0'
md-button ng-click='dothing' No New Notifications
span.flex flex=true
a href="http://#{try(:help_desk_prefix)}transconio.happyfox.com" target="_blank"
md-button.md-icon-button
md-tooltip Submit a ticket
md-icon feedback
a href="/#/"
md-button.md-icon-button
md-tooltip Dashboard
md-icon home
a href="people#/#{current_person.id}"
md-button.md-icon-button
md-tooltip Profile
md-icon settings
main-content ng-controller="AppController"
md-whiteframe.md-whiteframe-z2.md-background#side_nav_bar class="#{current_person ? '' : 'hidden'}"
ul.filters
h2 ==content_for(:filter_name) || 'Filters'
md-divider
==content_for(:filters)
md-whiteframe.md-whiteframe-z2#main_layout layout-fill=true layout=!current_person layout-align="center center" style='height: auto'
- if content_for?(:page_title)
md-toolbar.md-primary.md-padding
h3.no-margin=content_for(:page_title)
==yield
footer
.content
-if current_person
.left
=button_to('Logout', destroy_person_session_path, method: :delete)
.right Transcon Environmental
.loading-screen ng-show='loading'
.shroud
.image
md-progress-circular md-mode="indeterminate" md-diameter="72"
/ img src="/assets/timelapse.gif" width="107px" height="72px"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment