# HG changeset patch # User Ludovic Chabant # Date 1357344082 28800 # Node ID 65c8a53a0e534f8eb2202d7abb96c4dff9d16e12 # Parent 5639fb1a3693baa97265c88dff51302ad6544670 Better warning for locally changed/new page files: - Smaller warning, using Bootstrap alerts. - Warning shows up at top of the page instead of top of the window. diff -r 5639fb1a3693 -r 65c8a53a0e53 wikked/static/js/wikked/views.js --- a/wikked/static/js/wikked/views.js Fri Jan 04 15:59:58 2013 -0800 +++ b/wikked/static/js/wikked/views.js Fri Jan 04 16:01:22 2013 -0800 @@ -182,7 +182,7 @@ var template = Handlebars.compile(src); var warning = $(template(model.toJSON())); warning.css('display', 'none'); - warning.prependTo($('#app')); + warning.prependTo($('#app .page')); warning.slideDown(); $('.dismiss', warning).click(function() { warning.slideUp(); diff -r 5639fb1a3693 -r 65c8a53a0e53 wikked/static/tpl/state-warning.html --- a/wikked/static/tpl/state-warning.html Fri Jan 04 15:59:58 2013 -0800 +++ b/wikked/static/tpl/state-warning.html Fri Jan 04 16:01:22 2013 -0800 @@ -1,4 +1,4 @@ -
-

This page is {{state}} in the repository. You can either edit it to commit the changes, or do it yourself through the command-line.

-

Dismiss

+
+ + This page is {{state}} in the repository. You can either edit it to commit the changes, or do it yourself through the command-line.