* BlogsController.cs: cleans unused code

and drops the server side "Preview" notion, made obsolete by client side
  MarkdownDeep js

* Edit.aspx: no more server side preview action

* YavscModel.csproj: no more server side preview action

* BlogEditEntryModel.cs: made osolete by MarkDown js

* BlogEditCommentModel.cs: made osolete by MarkDown js
This commit is contained in:
Paul Schneider
2015-06-09 15:43:14 +02:00
parent 282b750d53
commit a7f5f399ed
7 changed files with 28 additions and 90 deletions

View File

@ -1,22 +0,0 @@
using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace Yavsc.Model.Blogs
{
/// <summary>
/// Blog edit comment model.
/// </summary>
public class BlogEditCommentModel:Comment
{
/// <summary>
/// Gets or sets a value indicating whether this <see cref="Yavsc.Model.Blogs.BlogEditCommentModel"/> is preview.
/// </summary>
/// <value><c>true</c> if preview; otherwise, <c>false</c>.</value>
[DisplayName("Prévisualiser")]
[Required]
public bool Preview { get; set; }
}
}

View File

@ -1,43 +0,0 @@
using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace Yavsc.Model.Blogs
{
/// <summary>
/// Blog edit entry model.
/// </summary>
public class BlogEditEntryModel:BlogEntry
{
/// <summary>
/// Gets or sets a value indicating whether this <see cref="Yavsc.Model.Blogs.BlogEditEntryModel"/> is preview.
/// </summary>
/// <value><c>true</c> if preview; otherwise, <c>false</c>.</value>
[DisplayName("Prévisualiser")]
[Required]
public bool Preview { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="Yavsc.Model.Blogs.BlogEditEntryModel"/> class.
/// </summary>
public BlogEditEntryModel ()
{
}
/// <summary>
/// Initializes a new instance of the <see cref="Yavsc.Model.Blogs.BlogEditEntryModel"/> class.
/// </summary>
/// <param name="be">Be.</param>
public BlogEditEntryModel(BlogEntry be) {
this.Preview = true;
this.Content = be.Content;
this.Title = be.Title;
this.Posted = be.Posted;
this.Modified = be.Modified;
this.Visible = be.Visible;
this.UserName = be.UserName;
this.Id = be.Id;
}
}
}

6
yavscModel/ChangeLog Normal file
View File

@ -0,0 +1,6 @@
2015-06-09 Paul Schneider <paul@pschneider.fr>
* YavscModel.csproj:
* BlogEditEntryModel.cs:
* BlogEditCommentModel.cs:

View File

@ -49,11 +49,9 @@
<Compile Include="RolesAndMemebers\NewAdminModel.cs" />
<Compile Include="RolesAndMemebers\NewRoleModel.cs" />
<Compile Include="RolesAndMemebers\RegisterViewModel.cs" />
<Compile Include="Blogs\BlogEditEntryModel.cs" />
<Compile Include="Admin\RestoreQuery.cs" />
<Compile Include="Admin\DataAccess.cs" />
<Compile Include="RolesAndMemebers\Profile.cs" />
<Compile Include="Blogs\BlogEditCommentModel.cs" />
<Compile Include="FileSystem\FileInfoCollection.cs" />
<Compile Include="WorkFlow\Writting.cs" />
<Compile Include="WorkFlow\Estimate.cs" />