diff --git a/css/style.css b/css/style.css index 7429eb20..8906d80f 100644 --- a/css/style.css +++ b/css/style.css @@ -16,7 +16,7 @@ html, body { } #slider-container { - width: 1000px; + width: 1050px; height: 100%; } diff --git a/js/app.js b/js/app.js index b00e0858..73e675ec 100644 --- a/js/app.js +++ b/js/app.js @@ -87,17 +87,16 @@ app = Sammy('#main', function (sam) { blockSize = $('#slider').width(); if (store.get('slide') == 'back') { - $('#slideBack').show().css('display', 'inline-block').css('margin-left', '-'+ blockSize +'px'); + $('#slideBack').css('display', 'inline-block').css('margin-left', '-'+ 2*blockSize +'px'); rendered.appendTo($('#slideBack')); - $('#main').animate({marginLeft: blockSize +'px'}, 500); - $('#slideBack').animate({marginLeft: '0'}, 500, function() { + $('#main').animate({marginLeft: blockSize +'px'}, 500, function() { $('#main').html($('#slideBack').html()); $('#main').css('margin-left', '0'); leSwap(); }); store.clear('slide'); } else if (store.get('slide') == 'to') { - $('#slideTo').show().css('display', 'inline-block'); + $('#slideTo').css('display', 'inline-block'); rendered.appendTo($('#slideTo')); $('#main').animate({marginLeft: '-'+ blockSize +'px'}, 500, function() { $('#main').html($('#slideTo').html()); @@ -187,6 +186,12 @@ app = Sammy('#main', function (sam) { c.view('user_info', data); }); }); + + sam.get('#/users/:user/edit', function (c) { + c.api('/users/'+ c.params['user'], function(data) { + c.view('user_edit', data); + }); + }); }); diff --git a/views/user_edit.ms b/views/user_edit.ms new file mode 100644 index 00000000..8fac2bb7 --- /dev/null +++ b/views/user_edit.ms @@ -0,0 +1,33 @@ +
+ +
+
+

{{Username}}

+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ +
+ +
+ +
diff --git a/views/user_info.ms b/views/user_info.ms index 7fd7441b..9755790f 100644 --- a/views/user_info.ms +++ b/views/user_info.ms @@ -4,8 +4,28 @@ + +
+
Edit
+
Delete
+