Better version info communication and administration
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
Ember.Handlebars.helper 'version', ->
|
||||
new Handlebars.SafeString $app_version
|
||||
@@ -29,9 +29,9 @@ Ember.$.ajaxPrefilter (options) ->
|
||||
if options.type.toUpperCase() == 'GET'
|
||||
if auth_token = Qstorage.getItem('auth_token')
|
||||
if options.data
|
||||
options.data += "&auth_token=#{auth_token}"
|
||||
options.data += "&auth_token=#{auth_token}&app_version=#{$app_version}"
|
||||
else
|
||||
options.data = "auth_token=#{auth_token}"
|
||||
options.data = "auth_token=#{auth_token}&app_version=#{$app_version}"
|
||||
if options.type.toUpperCase() == 'POST'
|
||||
if auth_token = Qstorage.getItem('auth_token')
|
||||
if options.data
|
||||
@@ -39,9 +39,10 @@ Ember.$.ajaxPrefilter (options) ->
|
||||
if options.data[0] == '{' || options.data[0] == '[' # json
|
||||
object = JSON.parse(options.data)
|
||||
object.auth_token = auth_token
|
||||
object.app_version = $app_version
|
||||
options.data = JSON.stringify(object)
|
||||
else
|
||||
options.data += "&auth_token=#{auth_token}"
|
||||
options.data += "&auth_token=#{auth_token}&app_version=#{$app_version}"
|
||||
else
|
||||
options.data.auth_token = auth_token
|
||||
else
|
||||
|
||||
@@ -16,3 +16,8 @@
|
||||
.alert-box.alert= submission_error
|
||||
else
|
||||
button.submit-feedback-button.button{action "submitFeedback"}= t 'about.feedback.submit'
|
||||
|
||||
.technical-information-container.row: .large-12.columns
|
||||
.row.version
|
||||
.large-3.medium-3.small-4.columns: strong=t 'about.version'
|
||||
.large-9.medium-9.small-8.columns= version
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
.feedback-container
|
||||
border-top: 1px solid #ccc
|
||||
margin-top: 1em
|
||||
padding-top: 0.5em
|
||||
.feedback-received
|
||||
+alert($bg: $info-color)
|
||||
|
||||
.technical-information-container
|
||||
border-top: 1px solid #ccc
|
||||
margin-top: 1em
|
||||
padding-top: 0.5em
|
||||
margin-bottom: 1em
|
||||
|
||||
Reference in New Issue
Block a user