* style.css: Gives a margin to the login panel

* BlogsController.cs: Simplifies the code and method

* UserList.aspx: Displays the creation date

* BlogEntryCollection.cs: adds xml doc

* UUBlogEntryCollection.cs:
* UUTBlogEntryCollection.cs: fixes a creation from a post array
This commit is contained in:
Paul Schneider 2015-08-05 20:17:50 +02:00
commit 679a249faf
8 changed files with 45 additions and 14 deletions

View file

@ -73,10 +73,11 @@ footer {
.bsh { float: right; }
#login {
background-color: rgba(32,0,0,.5);
margin: .5em;
padding: .5em;
border-radius:10px;
background-color: rgba(32,16,16,.6);
position: fixed;
margin:0em;
padding:0em;
top:0;
right:0;
justify-content: space-around;

View file

@ -1,3 +1,11 @@
2015-08-05 Paul Schneider <paul@pschneider.fr>
* style.css: Gives a margin to the login panel
* BlogsController.cs: Simplifies the code and method
* UserList.aspx: Displays the creation date
2015-08-05 Paul Schneider <paul@pschneider.fr>
* style.css: the style changes ...

View file

@ -131,10 +131,11 @@ namespace Yavsc.Controllers
ViewData ["Avatar"] = bupr.avatar;
ViewData ["RecordCount"] = tr;
UUBlogEntryCollection uuc = new UUBlogEntryCollection (user, c);
if (uuc.ConcernsAUniqueTitle)
if (uuc.Count>0)
return View ("UserPost", new UUTBlogEntryCollection(uuc.UserName,
uuc[0].Title,uuc));
if (uuc.ConcernsAUniqueTitle) {
var uutc = new UUTBlogEntryCollection (uuc.UserName,
uuc [0].Title, uuc);
return View ("UserPost", uutc );
}
return View ("UserPosts", uuc);
}
@ -182,7 +183,7 @@ namespace Yavsc.Controllers
/// </summary>
/// <returns>The post.</returns>
/// <param name="bec">Bec.</param>
private ActionResult UserPosts (UUTBlogEntryCollection bec)
private ActionResult UserPost (UUTBlogEntryCollection bec)
{
if (ModelState.IsValid)
if (bec.Count > 0) {
@ -208,7 +209,7 @@ namespace Yavsc.Controllers
}
}
}
return View (BlogManager.FilterOnReadAccess(bec as UUTBlogEntryCollection));
return View ("UserPost",bec);
}
/// <summary>

View file

@ -5,7 +5,7 @@
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
<ul>
<%foreach (MembershipUser user in Model){ %>
<li><%=user.UserName%> <%=user.Email%> <%=(user.IsApproved)?"":"("+LocalizedText.Not_Approuved+")"%> <%=user.IsOnline?LocalizedText.Online:LocalizedText.Offline%>
<li><%=user.UserName%> (created <%=user.CreationDate.ToString("D")%>) <%=user.Email%> <%=(user.IsApproved)?"":"("+LocalizedText.Not_Approuved+")"%> <%=user.IsOnline?LocalizedText.Online:LocalizedText.Offline%>
<% if (Roles.IsUserInRole("Admin")) { %>
<%= Html.ActionLink(LocalizedText.Remove,"RemoveUser", new { username = user.UserName }, new { @class="actionlink" } ) %>
<% } %>