* font-awesome.css: an awesome css

* hallo.js: Use a forked Hallo.js

* showdown.js:
* to-markdown.js:
* mdd_gripper.png:
* mdd_toolbar.png:
* mdd_modal_background.png: The client side Markdown is now
  implemented using Hallo.js

* FontAwesome.otf:
* fontawesome-webfont.eot:
* fontawesome-webfont.svg:
* fontawesome-webfont.ttf:
* fontawesome-webfont.woff:
* fontawesome-webfont.woff2: awesome

* MarkdownDeep.dll: a modified version to render video and audio tags

* NpgsqlBlogProvider.cs:
* CalendarController.cs:
* WorkFlowController.cs: refactoring: The `UserName` property from the
  `BlogEntry` class is renamed to `Author`

* InputUserName.cs: formatting

* BlogsController.cs: * refactoring: The `UserName` property from the
  `BlogEntry` class is renamed to `Author`
* Fixes pandoc process on file named with some spaces

* BlogsController.cs: UserName became Author on BlogEntry objects

* Global.asax.cs: route /fonts is now ignored.

* MarkdownHelper.cs: transform Markdown using a given base url

* App.master: jquery was not needed on all pages.

* Edit.aspx: using Hallo.js

* BlogEntry.cs:
* UserPost.aspx:
* UserPosts.aspx:
* BlogManager.cs:
* RemoveTitle.aspx:
* BlogEntryCollection.cs:
* UUBlogEntryCollection.cs:
* UUTBlogEntryCollection.cs: refactoring

* Web.config: ?

* Web.csproj: * use my local assembly for MarkdownDeep.dll
* fontawesome integration
* Hallo.js, to-markdown.js, showdowwn.js integration

* packages.config: Now use forked MarkdownDeep

* MarkdownDeepLib.min.js:
* MarkdownDeep License.txt:
* MarkdownDeep Quick Reference.txt: using my local revision

* mdd_ajax_loader.gif: The client side Markdown is now implemented
  using Hallo.js
This commit is contained in:
Paul Schneider 2015-09-23 18:48:38 +02:00
commit 77149697dd
42 changed files with 6854 additions and 634 deletions

View file

@ -71,8 +71,8 @@ namespace Yavsc.Model.Blogs
/// </summary>
/// <value>The name of the user.</value>
[StringLength(255)]
[DisplayName("Nom de l'auteur")]
public string UserName {
[DisplayName("Auteur")]
public string Author {
get {
return userName;
}

View file

@ -64,7 +64,7 @@ namespace Yavsc.Model.Blogs
/// <summary>
/// The name of the user.
/// </summary>
public string UserName;
public string Author;
/// <summary>
/// The identifier.
/// </summary>
@ -111,7 +111,7 @@ namespace Yavsc.Model.Blogs
return from be in this
orderby be.Posted descending
group
new PostInfoByTitle { UserName=be.UserName, Id=be.Id,
new PostInfoByTitle { Author=be.Author, Id=be.Id,
Posted=be.Posted, Modified=be.Modified }
by be.Title
into titlegroup
@ -128,7 +128,7 @@ namespace Yavsc.Model.Blogs
group
new PostInfoByUser { Title=be.Title, Id=be.Id,
Posted=be.Posted, Modified=be.Modified }
by be.UserName
by be.Author
into usergroup
select usergroup;
}

View file

@ -192,7 +192,7 @@ namespace Yavsc.Model.Blogs
throw new PostNotFoundException ();
if (!Roles.IsUserInRole ("Admin")) {
string rguser = Membership.GetUser ().UserName;
if (rguser != e.UserName) {
if (rguser != e.Author) {
if (throwEx)
throw new AccessViolationException (
string.Format (
@ -212,7 +212,7 @@ namespace Yavsc.Model.Blogs
// only deliver to admins, owner, or specified circle memebers
if (u == null)
return false;
if (u.UserName != e.UserName)
if (u.UserName != e.Author)
if (!Roles.IsUserInRole (u.UserName, "Admin"))
{
if (!e.Visible)

View file

@ -43,14 +43,14 @@ namespace Yavsc.Model.Blogs
/// Gets the name of the user.
/// </summary>
/// <value>The name of the user.</value>
public string UserName { get { return _username; } }
public string Author { get { return _username; } }
/// <summary>
/// Returns a <see cref="System.String"/> that represents the current <see cref="Yavsc.Model.Blogs.UUBlogEntryCollection"/>.
/// </summary>
/// <returns>A <see cref="System.String"/> that represents the current <see cref="Yavsc.Model.Blogs.UUBlogEntryCollection"/>.</returns>
public override string ToString ()
{
return string.Format ("[UUBlogEntryCollection: UserName={0} Count={1}]", UserName, Count);
return string.Format ("[UUBlogEntryCollection: Author={0} Count={1}]", Author, Count);
}
}

View file

@ -51,7 +51,7 @@ namespace Yavsc.Model.Blogs
public override string ToString ()
{
return string.Format ("[UUTBlogEntryCollection: " +
"Title={0} User={1} Count={2}]", Title, UserName, Count);
"Title={0} User={1} Count={2}]", Title, Author, Count);
}

View file

@ -1,3 +1,11 @@
2015-09-23 Paul Schneider <paul@pschneider.fr>
* BlogEntry.cs:
* BlogManager.cs:
* BlogEntryCollection.cs:
* UUBlogEntryCollection.cs:
* UUTBlogEntryCollection.cs: refactoring
2015-09-16 Paul Schneider <paul@pschneider.fr>
* LocalizedText.resx: