mef
This commit is contained in:
@ -12,39 +12,53 @@ namespace Yavsc.Models
|
||||
public partial class Blog : IBlog, ICircleAuthorized
|
||||
{
|
||||
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
[Display(Name="Identifiant du post")]
|
||||
public long Id { get; set; }
|
||||
|
||||
[Display(Name="Contenu")]
|
||||
public string Content { get; set; }
|
||||
[Display(Name="Photo")]
|
||||
public string Photo { get; set; }
|
||||
[Display(Name="Indice de qualité")]
|
||||
public int Rate { get; set; }
|
||||
[Display(Name="Titre")]
|
||||
public string Title { get; set; }
|
||||
[Display(Name="Identifiant de l'auteur")]
|
||||
public string AuthorId { get; set; }
|
||||
|
||||
[Display(Name="Auteur")]
|
||||
|
||||
[ForeignKey("AuthorId"),JsonIgnore]
|
||||
public ApplicationUser Author { set; get; }
|
||||
[Display(Name="Visible")]
|
||||
public bool Visible { get; set; }
|
||||
|
||||
[Display(Name="Date de création")]
|
||||
public DateTime DateCreated
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
[Display(Name="Créateur")]
|
||||
public string UserCreated
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
[Display(Name="Dernière modification")]
|
||||
public DateTime DateModified
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
[Display(Name="Utilisateur ayant modifé le dernier")]
|
||||
public string UserModified
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
[InverseProperty("Target")]
|
||||
[Display(Name="Liste de contrôle d'accès")]
|
||||
public virtual List<CircleAuthorizationToBlogPost> ACL { get; set; }
|
||||
|
||||
public bool AuthorizeCircle(long circleId)
|
||||
|
@ -349,6 +349,7 @@
|
||||
<data name="Send a public message"><value>Envoyer un message publique</value></data>
|
||||
<data name="Set"><value>Positioner</value></data>
|
||||
<data name="SettingsClass"><value>Classe du paramétrage</value></data>
|
||||
<data name="Son blog"><value>Son blog</value></data>
|
||||
<data name="Your performer profile"><value>Votre profile professionel</value></data>
|
||||
|
||||
<data name="Setup below your activity parameters"><value>Positionnez ci-après vos les paramêtre de votre activité</value></data>
|
||||
|
@ -12,25 +12,19 @@
|
||||
<hr/>
|
||||
|
||||
<div class="meta">
|
||||
@SR["Author"] : @Model.Author.UserName -
|
||||
@Html.DisplayFor(model => model.Author)
|
||||
|
||||
@SR["Modified"] :
|
||||
@Html.DisplayNameFor(model => model.DateModified) :
|
||||
|
||||
@Html.DisplayFor(model => model.DateModified) -
|
||||
@Html.DisplayFor(model => model.DateModified)
|
||||
|
||||
@SR["Created"] :
|
||||
@Html.DisplayNameFor(model => model.DateCreated) :
|
||||
|
||||
@Html.DisplayFor(model => model.DateCreated)
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<ul>
|
||||
@if (await AuthorizationService.AuthorizeAsync(User, Model, new EditRequirement())) {
|
||||
<li>
|
||||
<a asp-action="Edit" asp-route-id="@Model.Id">@SR["Edit"]</a>
|
||||
</li>
|
||||
<a asp-action="Edit" asp-route-id="@Model.Id" class="btn btn-link">@SR["Edit"]</a>
|
||||
}
|
||||
<li>
|
||||
<a asp-action="Index">@SR["Back to List"]</a>
|
||||
</li>
|
||||
</ul>
|
||||
<a asp-action="Index" class="btn btn-link">@SR["Back to List"]</a>
|
||||
|
@ -12,9 +12,9 @@
|
||||
<script>
|
||||
$("#cbv").change(function() {
|
||||
if (this.checked) {
|
||||
$("tr.ipost").removeClass("hidden");
|
||||
$("tr.hiddenpost").removeClass("hidden");
|
||||
} else {
|
||||
$("tr.ipost").addClass("hidden");
|
||||
$("tr.hiddenpost").addClass("hidden");
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@ -31,11 +31,11 @@
|
||||
</tr>
|
||||
|
||||
@foreach (var item in Model) {
|
||||
var trclass = (item.Visible)?"vpost":"ipost";
|
||||
var trclass = (item.Visible)?"visiblepost":"hiddenpost";
|
||||
|
||||
<tr class="@trclass">
|
||||
<td><a asp-action="Details" asp-route-id="@item.Id">
|
||||
<img src="@item.Photo" >
|
||||
<td><a asp-action="Details" asp-route-id="@item.Id" class="bloglink">
|
||||
<img src="@item.Photo" class="smalltofhol">
|
||||
<markdown>@item.Title</markdown></a>
|
||||
</td>
|
||||
<td>
|
||||
@ -52,13 +52,13 @@
|
||||
<ul class="actiongroup">
|
||||
@if (await AuthorizationService.AuthorizeAsync(User, item, new ViewRequirement())) {
|
||||
<li>
|
||||
<a asp-action="Details" asp-route-id="@item.Id">Details</a>
|
||||
<a asp-action="Details" asp-route-id="@item.Id" class="btn btn-lg">Details</a>
|
||||
</li>
|
||||
}
|
||||
@if (await AuthorizationService.AuthorizeAsync(User, item, new EditRequirement())) {
|
||||
<li><a asp-action="Edit" asp-route-id="@item.Id">@SR["Edit"]</a>
|
||||
<li><a asp-action="Edit" asp-route-id="@item.Id" class="btn btn-default">@SR["Edit"]</a>
|
||||
</li>
|
||||
<li><a asp-action="Delete" asp-route-id="@item.Id">@SR["Delete"]</a>
|
||||
<li><a asp-action="Delete" asp-route-id="@item.Id" class="btn btn-danger">@SR["Delete"]</a>
|
||||
</li>
|
||||
}
|
||||
</ul>
|
||||
|
@ -1,22 +1,7 @@
|
||||
@model ApplicationUser
|
||||
|
||||
<img src="~/Avatars/@(Model.UserName).xs.png" alt="">
|
||||
<img src="~/Avatars/@(Model.UserName).s.png" alt="" class="smalltofhol">
|
||||
@Model.UserName
|
||||
<ul>
|
||||
@if (Model.Posts!=null) {
|
||||
<li> <a asp-controller="Blogspot" asp-action="UserPosts"
|
||||
asp-route-id="@Model.UserName">@SR["His blog"]</a>
|
||||
</li>
|
||||
}
|
||||
@if (!string.IsNullOrEmpty(
|
||||
Model.DedicatedGoogleCalendar))
|
||||
{
|
||||
<li> @SR["Exposes his Google calendar!"]
|
||||
</li>
|
||||
}
|
||||
@if (Model.Devices?.Count>0)
|
||||
{
|
||||
<li> @SR["Uses the mobile application, and receives push notifications"]
|
||||
</li>
|
||||
}
|
||||
</ul>
|
||||
@if (Model.Posts!=null) { <a asp-controller="Blogspot" asp-action="UserPosts"
|
||||
asp-route-id="@Model.UserName" class="btn btn-link">@SR["index de ses articles"]</a>
|
||||
}
|
30
Yavsc/wwwroot/css/bootstrap.css
vendored
30
Yavsc/wwwroot/css/bootstrap.css
vendored
@ -1592,21 +1592,11 @@ pre code {
|
||||
margin-right: auto;
|
||||
margin-left: auto;
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.container {
|
||||
width: 750px;
|
||||
|
||||
.container {
|
||||
width: calc(100% - 22px);
|
||||
}
|
||||
}
|
||||
@media (min-width: 992px) {
|
||||
.container {
|
||||
width: 970px;
|
||||
}
|
||||
}
|
||||
@media (min-width: 1200px) {
|
||||
.container {
|
||||
width: 1170px;
|
||||
}
|
||||
}
|
||||
|
||||
.container-fluid {
|
||||
padding-right: 15px;
|
||||
padding-left: 15px;
|
||||
@ -3062,9 +3052,9 @@ fieldset[disabled] a.btn {
|
||||
pointer-events: none;
|
||||
}
|
||||
.btn-default {
|
||||
color: #333;
|
||||
background-color: #fff;
|
||||
border-color: #ccc;
|
||||
color: #fff;
|
||||
background-color: #222;
|
||||
border-color: #aaa;
|
||||
}
|
||||
.btn-default:focus,
|
||||
.btn-default.focus {
|
||||
@ -3459,7 +3449,7 @@ fieldset[disabled] .btn-danger.active {
|
||||
}
|
||||
.btn-link {
|
||||
font-weight: normal;
|
||||
color: #337ab7;
|
||||
color: #c470f0;
|
||||
border-radius: 0;
|
||||
}
|
||||
.btn-link,
|
||||
@ -3479,7 +3469,7 @@ fieldset[disabled] .btn-link {
|
||||
}
|
||||
.btn-link:hover,
|
||||
.btn-link:focus {
|
||||
color: #23527c;
|
||||
color: #f9a6f9;
|
||||
text-decoration: underline;
|
||||
background-color: transparent;
|
||||
}
|
||||
@ -3487,7 +3477,7 @@ fieldset[disabled] .btn-link {
|
||||
fieldset[disabled] .btn-link:hover,
|
||||
.btn-link[disabled]:focus,
|
||||
fieldset[disabled] .btn-link:focus {
|
||||
color: #777;
|
||||
color: #ae8fae;
|
||||
text-decoration: none;
|
||||
}
|
||||
.btn-lg,
|
||||
|
2
Yavsc/wwwroot/css/bootstrap.min.css
vendored
2
Yavsc/wwwroot/css/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
@ -6,8 +6,8 @@ body {
|
||||
background-color: #210912;
|
||||
color:#999;
|
||||
}
|
||||
h1,h2,h3{color:#fff;}
|
||||
|
||||
h1,h2,h3,h4,h5,h6{color:#fff;}
|
||||
.smalltofhol { max-height: 3em; max-width: 3em; float:left; margin:.5em; }
|
||||
.price {
|
||||
font-weight: bold;
|
||||
font-size: x-large;
|
||||
@ -32,34 +32,37 @@ h1,h2,h3{color:#fff;}
|
||||
padding: 1em;
|
||||
}
|
||||
.blog a {
|
||||
color: #9f9;
|
||||
color: #FF8;
|
||||
font-weight: 900;
|
||||
}
|
||||
.blog a:active,
|
||||
.blog a:hover {
|
||||
outline: 0;
|
||||
color: #6C6;
|
||||
color: #FAFA09;
|
||||
}
|
||||
|
||||
tr.vpost {
|
||||
background-color: #306020;
|
||||
tr.visiblepost {
|
||||
max-height: 3em;
|
||||
}
|
||||
tr.ipost {
|
||||
background-color: #303030;
|
||||
tr.hiddenpost {
|
||||
background-color: #130414;
|
||||
font-size: smaller;
|
||||
max-height: 2em;
|
||||
}
|
||||
tr.vpost a {
|
||||
a.bloglink {
|
||||
font-weight: bold;
|
||||
color: white;
|
||||
text-shadow: 3px 3px 8px black;
|
||||
text-shadow: 0px 0px 8px white;
|
||||
}
|
||||
tr.ipost a {
|
||||
font-style: bold;
|
||||
color: #b0b0b0;
|
||||
text-shadow: 3px 3px 5px #505050;
|
||||
a {
|
||||
font-weight: 900;
|
||||
color: #FF8;
|
||||
}
|
||||
a:active,
|
||||
a:hover {
|
||||
outline: 0;
|
||||
color: #FAFA09;
|
||||
}
|
||||
|
||||
.panel{
|
||||
float: left;
|
||||
padding:1em;
|
||||
@ -76,15 +79,6 @@ select,
|
||||
color: #333;
|
||||
}
|
||||
|
||||
a {
|
||||
font-weight: 900;
|
||||
color: #9f9;
|
||||
}
|
||||
a:active,
|
||||
a:hover {
|
||||
outline: 0;
|
||||
color: #6C6;
|
||||
}
|
||||
.jumbotron {
|
||||
background-color: #502020;
|
||||
padding: .5em;
|
||||
|
2
Yavsc/wwwroot/css/site.min.css
vendored
2
Yavsc/wwwroot/css/site.min.css
vendored
File diff suppressed because one or more lines are too long
@ -3,20 +3,22 @@
|
||||
"version": 2,
|
||||
"targets": {
|
||||
".NETFramework,Version=v4.5.1": {},
|
||||
".NETPortable,Version=v4.5,Profile=Profile111": {}
|
||||
".NETPortable,Version=v4.5,Profile=Profile111": {},
|
||||
".NETFramework,Version=v4.5.1/debian.8-x86": {},
|
||||
".NETFramework,Version=v4.5.1/debian.8-x64": {},
|
||||
".NETPortable,Version=v4.5,Profile=Profile111/debian.8-x86": {},
|
||||
".NETPortable,Version=v4.5,Profile=Profile111/debian.8-x64": {}
|
||||
},
|
||||
"libraries": {},
|
||||
"projectFileDependencyGroups": {
|
||||
"": [],
|
||||
".NETFramework,Version=v4.5.1": [],
|
||||
".NETPortable,Version=v4.5,Profile=Profile111": [
|
||||
"System.Collections >= 4.0.0",
|
||||
"System.Collections.Generic >= 4.0.0",
|
||||
"System.Globalization >= 4.0.0",
|
||||
"System.Resources.ResourceManager >= 4.0.0",
|
||||
"System.Runtime >= 4.0.0"
|
||||
"fx/System.Runtime >= 4.0.0",
|
||||
"fx/System.Globalization >= 4.0.0",
|
||||
"fx/System.Resources.ResourceManager >= 4.0.0",
|
||||
"fx/System.Collections >= 4.0.0",
|
||||
"fx/System.Collections.Generic >= 4.0.0"
|
||||
]
|
||||
},
|
||||
"tools": {},
|
||||
"projectFileToolGroups": {}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user