fix message finding and add a top bar

This commit is contained in:
2012-12-11 15:10:26 +01:00
parent 9f09d8f10b
commit 627174d493
4 changed files with 17 additions and 15 deletions
@@ -164,7 +164,9 @@ $(function(){
$locale = Qstorage.getItem('locale') || 'en';
if(Qstorage.getItem('message')){
var container = $('.alert-success');
container.find('div').text($translations[$locale]['messages'][Qstorage.getItem('message')]);
var msg_finder = Qstorage.getItem('message');
if(msg_finder.indexOf('.') == -1) msg_finder = 'messages.'+msg_finder;
container.find('div').text(t(msg_finder));
container.show();
Qstorage.removeItem('message');
}
@@ -16,6 +16,8 @@ body
margin-top: 4px
margin-bottom: 6px
padding-bottom: 0
.main-content
padding-top: 16px
.supplier-is-closed
.alert
form
@@ -1,6 +1,6 @@
@import "bootstrap"
body
padding-top: 60px
padding-top: 42px
@import "bootstrap-responsive"
// Set the correct sprite paths
+11 -13
View File
@@ -58,20 +58,18 @@ html lang="en"
});
body class=action_name
- unless ENV['QWAITER_MOBILE_EXPORT'] == 'yes'
.navbar.navbar-fixed-top
.navbar-inner
.container
a.btn.btn-navbar data-target=".nav-collapse" data-toggle="collapse"
span.icon-bar
span.icon-bar
span.icon-bar
= link_to image_tag('icons/logo-small.png', alt: application_title), user_root_path, class: :brand
.container.nav-collapse
ul.nav#top-navigation-list
li= link_to 'View history', user_list_history_path
.navbar.navbar-fixed-top
.navbar-inner
.container
a.btn.btn-navbar data-target=".nav-collapse" data-toggle="collapse"
span.icon-bar
span.icon-bar
span.icon-bar
= link_to image_tag('icons/logo-small.png', alt: application_title), user_root_path, class: :brand
.container.nav-collapse
ul.nav#top-navigation-list
li= link_to 'View history', user_list_history_path
.container
.content
.alert.alert-error.hide
button.close type="button" data-dismiss="alert" ×