From 8a2113a69a62213d05a436a15c25e76c1894df60 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Tue, 6 Oct 2015 10:32:54 +0200 Subject: [PATCH 1/5] Fixes Html div import * style.css: reactive margins * Edit.aspx: The 'div' tag is not interpreted in Markdown. --- web/App_Themes/style.css | 14 ++++++++++---- web/ChangeLog | 6 ++++++ web/Views/Blogs/Edit.aspx | 1 - 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/web/App_Themes/style.css b/web/App_Themes/style.css index be9389a6..71e630e6 100644 --- a/web/App_Themes/style.css +++ b/web/App_Themes/style.css @@ -4,7 +4,8 @@ body { background-color: black; color: #D0FFD0; font-family: 'Arial', cursive; - padding: 2em; + padding:2em; + margin:2em; } .iconsmall { max-height: 1.3em; max-width: 1.3em; } @@ -19,7 +20,7 @@ header { border-radius:1em; margin: 1em; padding: 3em; - min-height: 10em; + min-height: 8em; background: url("/images/star-939235_1280.jpg") 0 0 no-repeat fixed; } @@ -265,14 +266,18 @@ input, select { { display:none;} } -@media all and (min-width: 640px) { .bshpanel { display:block; } .bsh { display: none; } .c3 { display:initial; } .c3-alt { display:none; } - } @media all and (max-width: 640px) { +body { padding: 1em; margin: 1em;} + header {min-height: 5em;} + } + +@media all and (max-width: 460px) { +body { padding: .5em; margin:.5;} header { margin: .5em; padding: .5em; @@ -317,6 +322,7 @@ input, select { } @media all and (max-width: 350px) { +body { padding: 0em; margin:0; } .c2 { display:none; } .c2-alt { display:initial; } } diff --git a/web/ChangeLog b/web/ChangeLog index de12274d..d555dba4 100644 --- a/web/ChangeLog +++ b/web/ChangeLog @@ -1,3 +1,9 @@ +2015-10-06 Paul Schneider + + * style.css: reactive margins + + * Edit.aspx: The 'div' tag is not interpreted in Markdown. + 2015-10-04 Paul Schneider * App.master: Indicates that a login permits to comment diff --git a/web/Views/Blogs/Edit.aspx b/web/Views/Blogs/Edit.aspx index bd98bbe9..83c813f1 100644 --- a/web/Views/Blogs/Edit.aspx +++ b/web/Views/Blogs/Edit.aspx @@ -82,7 +82,6 @@ jQuery('#vcontent').hallo({ 'em', 'strong', 'br', - 'div', 'ol', 'ul', 'li', From 303aaa5e1bb0bc7e940ebb767c0e64d22ba53178 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Wed, 7 Oct 2015 11:50:44 +0200 Subject: [PATCH 2/5] Starting to test some controller * BlogUnitTest.cs: Should test the user registration * NpgsqlBlogProvider.cs: Fixes usage of Npgsql upgrade to latest version * TestAPI.csproj: switch to .Net framework 4.5.1 * AccountController.cs: refactoring password validation * CalendarController.cs: * WorkFlowController.cs: SendActivationMessage became an extension method * style.css: menu items already have a background and color, since they're `` tags * Unregister.aspx: * AccountController.cs: refactoring user registration * BlogsController.cs: Fixes a confusion between Author and reader ... * YavscHelpers.cs: refactoring the password reset * App.master: no more
-<%= Html.ActionLink("S'enregistrer","Register",new {returnUrl=ViewData["returnUrl"]}, new { @class="actionlink" }) %> +<%= Html.ActionLink("S'enregistrer","RegisterForm",new {returnUrl=ViewData["returnUrl"]}, new { @class="actionlink" }) %>
?returnUrl=<%=ViewData["returnUrl"]==null?Request.Url.PathAndQuery:(string)ViewData["returnUrl"]%>" class="actionlink"> diff --git a/web/Views/Account/Profile.aspx b/web/Views/Account/Profile.aspx index f04f9791..9c016311 100644 --- a/web/Views/Account/Profile.aspx +++ b/web/Views/Account/Profile.aspx @@ -112,7 +112,7 @@ Avatar : - <%= Html.ActionLink("Désincription","Unregister", "Account",null, new { @class="actionlink" })%> + <%= Html.ActionLink("Désincription","Unregister", "Account", new { id=ViewData["UserName"] } , new { @class="actionlink" })%>