formatting

main
Paul Schneider 9 years ago
parent f5f3f1462c
commit 281abd0027
2 changed files with 30 additions and 5 deletions

@ -9,6 +9,7 @@
<p> <p>
<a asp-action="Create">@SR["Create a new article"]</a> <a asp-action="Create">@SR["Create a new article"]</a>
</p> </p>
<table class="table"> <table class="table">
<tr> <tr>
<th colspan="3"> <th colspan="3">
@ -17,10 +18,12 @@
</tr> </tr>
@foreach (var item in Model) { @foreach (var item in Model) {
<tr> var trclass = (item.Visible)?"vpost":"ipost";
<td>
@Html.DisplayFor(modelItem => item.Photo) <tr class="@trclass">
<markdown>@item.Title</markdown> <td><a asp-action="Details" asp-route-id="@item.Id">
<img src="@item.Photo" >
<markdown>@item.Title</markdown></a>
</td> </td>
<td> <td>
<span style="font-size:x-small;"> @item.Author.UserName </span> <br> <span style="font-size:x-small;"> @item.Author.UserName </span> <br>
@ -47,5 +50,27 @@
} }
</table> </table>
<style>
tr.vpost {
background-color: #80A050;
max-height: 3em;
}
tr.ipost {
background-color: #303030;
color: #b0b0b0;
font-size: smaller;
max-height: 3em;
}
tr.vpost a {
font-weight: bold;
color: white;
text-shadow: 3px 3px 8px black;
}
tr.ipost a {
font-style: bold;
color: #b0b0b0;
text-shadow: 3px 3px 5px #505050;
}
</style>

@ -26,7 +26,7 @@
<h3>Salons</h3> <h3>Salons</h3>
<ul><li id="pubChan">Public</li></ul> <ul><li id="pubChan">Public</li></ul>
<h3>Utilisateurs</h3> <h3>Utilisateurs</h3>
<ul id="userlist" style="list-style-type:none;"> <ul id="userlist" style="list-style:none; padding: 1em;">
</ul> </ul>
</div> </div>

Loading…