* 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 jsmain
parent
282b750d53
commit
a7f5f399ed
@ -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; }
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@ -0,0 +1,6 @@
|
|||||||
|
2015-06-09 Paul Schneider <paul@pschneider.fr>
|
||||||
|
|
||||||
|
* YavscModel.csproj:
|
||||||
|
* BlogEditEntryModel.cs:
|
||||||
|
* BlogEditCommentModel.cs:
|
||||||
|
|
||||||
Loading…
Reference in New Issue