routing fixes

This commit is contained in:
2012-12-11 01:02:52 +01:00
parent 386cbcc67b
commit f19044ae6a
4 changed files with 11 additions and 9 deletions
+4 -2
View File
@@ -1,5 +1,7 @@
.page-header
h1.page-title data-t="history_list.title" = t('user.history_list.title', list: List.model_name.human)
= top_bar title: 'history_list.title' do
.pull-right
.table-number
.supplier-name
dl.dl-horizontal
dt data-t="attributes.list.created_at" = List.human_attribute_name(:created_at)
dd.list-created-at
+2 -2
View File
@@ -1,5 +1,5 @@
.page-header
h1 data-t="list_history.title" = t('user.list_history.title')
= top_bar title: 'list_history.title' do
span
nav.pagination
ul#list-history-container
- onload_javascript "Qstorage.page = 1; Quser.load_list_history()"
@@ -1,7 +1,7 @@
.page-header
.table-number
.supplier-name
h4= t('user.show_products.title', products: Product.model_name.human_plural)
= top_bar title: 'show_products.title' do
.pull-right
.table-number
.supplier-name
.well
table#products-table.table.table-hover
tbody
+1 -1
View File
@@ -35,7 +35,7 @@ Qwaiter::Application.routes.draw do
# USER
#default_url_options format: 'html'
get '/user/home' => 'index#home', as: :user_root
get '/user/index' => 'user#index', as: :user_root
get '/user' => 'user#index'
get '/user/active_list(.:format)' => 'user#active_list', as: :user_active_list
get '/user/list_info' => 'user#list_info', as: :user_list_info, via: [:get, :options]