cleanup and add translation hooks

This commit is contained in:
2012-11-29 19:01:35 +01:00
parent b9c0ca326b
commit e0a3333e8f
8 changed files with 65 additions and 38 deletions
+3 -1
View File
@@ -18,7 +18,7 @@ html lang="en"
link href="/favicon.ico" rel="shortcut icon"
javascript:
var data_host = '#{Rails.env == 'development' ? 'http://qwaiter.dev' : 'http://data.qwaiter.com' }';
var data_host = 'http://localhost:3000';
//var data_host = 'http://localhost:3000';
var event_host = '#{event_host}';
//data_host = 'http://192.168.1.148:3000';
var $locale = 'en';
@@ -80,3 +80,5 @@ html lang="en"
/ Placed at the end of the document so the pages load faster
= javascript_include_tag "user/application"
= yield :footer
javascript:
jQuery(function(){#{onload_javascript}});
+8 -11
View File
@@ -1,25 +1,22 @@
.page-header= title t('user.history_list.title', list: List.model_name.human)
.page-header
h1.page-title data-t="history_list.title" = t('user.history_list.title', list: List.model_name.human)
dl.dl-horizontal
dt= List.human_attribute_name(:created_at)
dt data-t="attributes.list.created_at" = List.human_attribute_name(:created_at)
dd.list-created-at
dt= List.human_attribute_name(:closed_at)
dt data-t="attributes.list.closed_at" = List.human_attribute_name(:closed_at)
dd.list-closed-at
dt= Supplier.model_name.human
dt data-t="models.supplier" = Supplier.model_name.human
dd.supplier-name
.well
table#history-list-table.table.list-table
thead
tr
th= Order.model_name.human
th.currency= Product.human_attribute_name(:price)
th data-t="models.order" = Order.model_name.human
th.currency data-t="attributes.product.price" = Product.human_attribute_name(:price)
tbody
tr
td colspan=2 = slider_image
tfoot
script#active-list-order-template[type="text/html"]= render 'active_list_order.mustache'
script#active-list-orders-footer-template[type="text/html"]= render 'active_list_orders_footer.mustache'
- content_for :footer do
javascript:
jQuery(function(){
Quser.load_history_list();
})
- onload_javascript "Quser.load_history_list()"
+2 -6
View File
@@ -1,9 +1,5 @@
.page-header
h2 data-t="list_history.title" = t('user.list_history.title')
h1 data-t="list_history.title" = t('user.list_history.title')
nav.pagination
ul#list-history-container
- content_for :footer do
javascript:
$(function(){
Quser.load_list_history();
});
- onload_javascript "Quser.load_list_history()"