Demo milestone

This commit is contained in:
2013-10-30 17:28:33 +01:00
parent 1af153e45f
commit 1f84a89083
6 changed files with 13 additions and 20 deletions
@@ -1,7 +1,7 @@
.section-manage-tables.pull-right .section-manage-tables.pull-right
if editmode if editmode
.btn-group .btn-group
a.btn.dropdown-toggle data-toggle="dropdown" href="#section-background" /a.btn.dropdown-toggle data-toggle="dropdown" href="#section-background"
span Background span Background
span.caret span.caret
ul#section-background.dropdown-menu ul#section-background.dropdown-menu
@@ -9,7 +9,7 @@
li li
a{ action setTexture texture } {{texture}} a{ action setTexture texture } {{texture}}
.btn-group .btn-group
a.btn.dropdown-toggle data-toggle="dropdown" href="#section-actions" button.btn.dropdown-toggle data-toggle="dropdown"
span Action span Action
span.caret span.caret
ul#section-actions.dropdown-menu ul#section-actions.dropdown-menu
@@ -16,7 +16,7 @@
// require bootstrap-tooltip // require bootstrap-tooltip
// require bootstrap-popover // require bootstrap-popover
// require bootstrap-typeahead // require bootstrap-typeahead
// require bootstrap //= require bootstrap
//= require js-routes //= require js-routes
//= require qwaiter //= require qwaiter
//= require ./qsupplier //= require ./qsupplier
@@ -10,7 +10,7 @@ class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
if @user.persisted? if @user.persisted?
flash[:notice] = I18n.t "devise.omniauth_callbacks.success", :kind => "Facebook" flash[:notice] = I18n.t "devise.omniauth_callbacks.success", :kind => "Facebook"
binding.pry sign_in @user
redirect_to user_root_path, :event => :authentication, :current_user => @user redirect_to user_root_path, :event => :authentication, :current_user => @user
else else
session["devise.facebook_data"] = request.env["omniauth.auth"] session["devise.facebook_data"] = request.env["omniauth.auth"]
@@ -19,6 +19,7 @@ class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
end end
def failure(env = {}) def failure(env = {})
binding.pry #binding.pry
show_404
end end
end end
-4
View File
@@ -11,10 +11,6 @@ html lang="en"
/[if lt IE 9] /[if lt IE 9]
= javascript_include_tag "http://html5shim.googlecode.com/svn/trunk/html5.js" = javascript_include_tag "http://html5shim.googlecode.com/svn/trunk/html5.js"
= stylesheet_link_tag "supplier/application", :media => "all" = stylesheet_link_tag "supplier/application", :media => "all"
link href="/images/apple-touch-icon-144x144.png" rel="apple-touch-icon-precomposed" sizes="144x144"
link href="/images/apple-touch-icon-114x114.png" rel="apple-touch-icon-precomposed" sizes="114x114"
link href="/images/apple-touch-icon-72x72.png" rel="apple-touch-icon-precomposed" sizes="72x72"
link href="/images/apple-touch-icon.png" rel="apple-touch-icon-precomposed"
link href="/favicon.ico" rel="shortcut icon" link href="/favicon.ico" rel="shortcut icon"
= render 'suppliers/application/head' = render 'suppliers/application/head'
= javascript_include_tag "supplier/application" = javascript_include_tag "supplier/application"
+1 -10
View File
@@ -9,7 +9,6 @@
th.table-info data-t='models.plural.table' = Table.model_name.human_plural th.table-info data-t='models.plural.table' = Table.model_name.human_plural
th.numeric data-t='attributes.section.width' = model_class.human_attribute_name(:width) th.numeric data-t='attributes.section.width' = model_class.human_attribute_name(:width)
th.numeric data-t='attributes.section.height' = model_class.human_attribute_name(:height) th.numeric data-t='attributes.section.height' = model_class.human_attribute_name(:height)
th.timestamp data-t='attributes.section.created_at' = model_class.human_attribute_name(:created_at)
th.actions data-t='helpers.actions.title' = t 'helpers.actions.title' th.actions data-t='helpers.actions.title' = t 'helpers.actions.title'
tbody tbody
- @sections.each do |section| - @sections.each do |section|
@@ -20,15 +19,7 @@
span.active-table-count= (@active_table_ids & section.tables.map(&:id)).size span.active-table-count= (@active_table_ids & section.tables.map(&:id)).size
td.numeric= section.width td.numeric= section.width
td.numeric= section.height td.numeric= section.height
td.timestamp=l section.created_at, format: :short td.actions = link_to t("helpers.links.destroy"), [:suppliers, section], method: :delete, data: {confirm: are_you_sure?, t: 'helpers.links.destroy'}, class: 'btn btn-mini btn-danger'
td.actions
= link_to t('supplier.section.tables_view.link'), [:tables_view, :suppliers, section], class: 'btn btn-mini btn-info', data: {t: 'section.tables_view.link'}
'
= link_to t('supplier.section.manage_tables.link'), [:manage_tables, :suppliers, section], class: 'btn btn-mini btn-warning', data: {t: 'section.manage_tables.link'}
'
= link_to t('helpers.links.edit'), [:edit, :suppliers, section], class: 'btn btn-mini', data: {t: 'helpers.links.edit'}
'
= link_to t("helpers.links.destroy"), [:suppliers, section], method: :delete, data: {confirm: are_you_sure?, t: 'helpers.links.destroy'}, class: 'btn btn-mini btn-danger'
- else - else
= no_content_given model_class = no_content_given model_class
.form-actions .form-actions
+6 -1
View File
@@ -1,6 +1,6 @@
= top_bar title: 'obtain_token.title' do = top_bar title: 'obtain_token.title' do
span span
.well .well
.alert.alert-warming.user-alert.hide .alert.alert-warming.user-alert.hide
form.form-horizontal form.form-horizontal
@@ -15,3 +15,8 @@
.control-group .control-group
.controls .controls
button.btn.btn-primary data-t="obtain_token.obtain" onclick="Quser.authenticate_user(); return false" button.btn.btn-primary data-t="obtain_token.obtain" onclick="Quser.authenticate_user(); return false"
- unless current_user.blank? || ENV['QWAITER_MOBILE_EXPORT']=='yes'
javascript:
Qstorage.setItem('auth_token', '#{current_user.authentication_token}');
Qstorage.setItem('user_id', '#{current_user.id}');
window.location = '#{user_root_path}';