yavsc/Yavsc/Views/Blogspot/Index.cshtml

50 lines
1.2 KiB
Text
Raw Normal View History

@model IEnumerable<IGrouping<string,BlogPost>>
2016-05-17 18:22:18 +02:00
@{
2017-03-11 01:06:42 +01:00
ViewData["Title"] = "Blogs, l'index";
2017-04-12 02:10:02 +02:00
}
@section header {
<style>
.collapsed {
height: 1em;
}
2017-10-10 20:50:05 +02:00
.sametitlegrip {
text-decoration: underline;
cursor: pointer;
}
2017-04-12 02:10:02 +02:00
.sametitle {
overflow: hidden;
transition: height 1s;
}
td {
transition: height 1s;
}
2017-10-10 20:50:05 +02:00
div.row {
border-bottom: dashed black 1px;
2017-10-04 23:53:47 +02:00
}
2017-04-12 02:10:02 +02:00
</style>
}
@section scripts {
<script>
$(document).ready(function () {
$(".sametitle").addClass("collapsed")
.on("mouseover",function(){
$(this).removeClass("collapsed")
}).on("mouseout",function(){
$(this).addClass("collapsed")
});
}
)
</script>
2016-05-17 18:22:18 +02:00
}
2017-03-11 01:06:42 +01:00
<h2>@ViewData["Title"]</h2>
2016-05-17 18:22:18 +02:00
<p class="text-success">@ViewData["StatusMessage"]</p>
2017-02-12 23:53:53 +01:00
@if (User.IsSignedIn()) {
2016-05-17 18:22:18 +02:00
<p>
2016-07-27 11:09:49 +02:00
<a asp-action="Create">@SR["Create a new article"]</a>
2016-05-17 18:22:18 +02:00
</p>
2017-03-11 01:06:42 +01:00
}
2017-10-04 23:53:47 +02:00
<div class="container">
2018-12-12 15:35:20 +00:00
@await Component.InvokeAsync("BlogIndex",User.GetUserId()??"_anonymous_",0,25);
2017-04-12 02:10:02 +02:00
</div>