consitency refactor

This commit is contained in:
2014-11-27 19:42:51 +01:00
parent 5453837880
commit 3bc1e5685c
37 changed files with 338 additions and 235 deletions
+21
View File
@@ -0,0 +1,21 @@
doctype html
html lang="en"
head
meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"
meta name="viewport" content="width=device-width, initial-scale=1.0"
title= content_for?(:title) ? yield(:title) : application_title
= csrf_meta_tags
/! Le HTML5 shim, for IE6-8 support of HTML elements
/[if lt IE 9]
= javascript_include_tag "http://html5shim.googlecode.com/svn/trunk/html5.js"
= stylesheet_link_tag "supplier/foundation1/application", media: "all"
link href="/favicon.ico" rel="shortcut icon"
= render 'suppliers/application/head'
= javascript_include_tag "supplier/foundation1/application"
= javascript_include_tag 'supplier/app/application'
= yield :head
/= javascript_include_tag "https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&libraries=places&language=#{I18n.locale}"
body
#ember-app-container
-7
View File
@@ -1,7 +0,0 @@
- content_for :head do
= javascript_include_tag 'supplier/app/application'
/- content_for :footer do
javascript:
$(function(){
Qsupplier.watch_events();
});
-2
View File
@@ -1,2 +0,0 @@
- content_for :head do
= javascript_include_tag 'supplier/app/application'
@@ -5,8 +5,8 @@ header.top-menu
section.main-buttons
= link_to image_tag('icons/logo-small.png'), supplier_root_path, class: 'top-menu-root'
= link_to t('supplier.top_menu.menu'), "/supplier#/menu", class: 'top-menu-menu'
= link_to ProductCategory.model_name.human_plural, suppliers_product_categories_path, data: {t: 'models.plural.product_category'}, class: 'top-menu-product_categories'
= link_to Product.model_name.human_plural, suppliers_products_path, data: {t: 'models.plural.product'}, class: 'top-menu-products'
/= link_to ProductCategory.model_name.human_plural, suppliers_product_categories_path, data: {t: 'models.plural.product_category'}, class: 'top-menu-product_categories'
/= link_to Product.model_name.human_plural, suppliers_products_path, data: {t: 'models.plural.product'}, class: 'top-menu-products'
= link_to Section.model_name.human_plural, "/supplier#/sections", data: {t: 'models.plural.section'}, class: 'top-menu-sections'
= link_to Table.model_name.human_plural, "/supplier#/tables", data: {t: 'models.plural.table'}, class: 'top-menu-tables'
= link_to List.model_name.human_plural, "/supplier#/lists", data: {t: 'models.plural.list'}, class: 'top-menu-lists'