markdown strike & underline & htbase

This commit is contained in:
Paul Schneider 2016-08-03 16:38:25 +02:00
commit 652a75c05e
9 changed files with 46 additions and 5679 deletions

View file

@ -30,8 +30,7 @@
@SR["Content"]
</dt>
<dd>
<div markdown="@Model.Content" base="~/@Model.Id"
site="SiteSettings.Value"></div>
<div markdown="@Model.Content" site="SiteSettings.Value"></div>
</dd>
<dt>
@SR[Html.DisplayNameFor(model => model.Modified)]

View file

@ -5,6 +5,7 @@
}
@section header{
<link href="~/css/quill.snow.css" rel="stylesheet">
<link href="~/css/dropzone.css" rel="stylesheet">
@ -32,16 +33,13 @@
</style>
}
@section scripts{
<script src="~/js/dropzone.js"></script>
<script src="~/js/quill.js"></script>
<script src="~/js/showdown.js"></script>
<script src="~/js/to-markdown.js"></script>
<script src="~/js/md-helpers.js"></script>
<script>
$(document).ready(function() {
var editortitre = new Quill('#Titlecnt', {
@ -96,27 +94,30 @@ editorcontenu.on('text-change',function(delta,source){
});
</script>
@{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); }
@Html.Partial("_ValidationScriptsPartial")
}
<h2 > @SR["Blog post edition"] </h2>
<div id="Titletoolbar" class="hidden ql-snow ql-toolbar">
<button class="ql-format-button ql-bold"></button>
<button class="ql-format-button ql-italic"></button>
<button class="ql-format-button ql-underline"></button>
<button class="ql-format-button ql-strike"></button>
</div>
<h2 id="Titlecnt"><markdown>@Model.Title</markdown></h2>
<div id="contentbar" class="hidden ql-snow ql-toolbar">
<span class="ql-format-group">
<button class="ql-format-button ql-bold"></button>
<button class="ql-format-button ql-italic"></button>
<button class="ql-format-button ql-underline"></button>
<button class="ql-format-button ql-strike"></button>
<span class="ql-format-group">
<button class="ql-format-button ql-image"></button>
<environment names="Development">
<button class="ql-format-button ql-link"></button>
<button class="ql-format-button ql-image"></button>
</environment>
</span>
<span class="ql-format-group">
<span title="List" class="ql-format-button ql-list"></span>

View file

@ -11,16 +11,9 @@
</p>
<table class="table">
<tr>
<th>
<th colspan="3">
@SR[Html.DisplayNameFor(model => model.Title)]
</th>
<th>
@SR["Author"]
</th>
<th>
@SR["Date"]
</th>
<th></th>
</tr>
@foreach (var item in Model) {
@ -30,13 +23,10 @@
<markdown>@item.Title</markdown>
</td>
<td>
@item.Author.UserName
</td>
<td>
<span style="font-size:x-small;">
<span style="font-size:x-small;"> @item.Author.UserName </span> <br>
<span style="font-size:xx-small;">
posté le @item.Posted.ToString("dddd d MMM yyyy à H:mm")
@if ((item.Modified - item.Posted).Minutes > 10)
{ 
@if ((item.Modified - item.Posted).Minutes > 10){ 
@:- Modifié le @item.Modified.ToString("dddd d MMM yyyy à H:mm")
}
</span>