Hallo now edits my images,
and each post can display a dedicated photo. * NpgsqlBlogProvider.cs: implements a blog post photo storage * BlogsController.cs: implements a method to update the photo url * style.css: yastyle * AdminController.cs: refactoring the notification: Introduces a static `Notice` method, server side, to populate an array in `ViewData`, used in the paster page. * BlogsController.cs: Controls the photo update * YavscHelpers.cs: * yavsc.circles.js: * HomeController.cs: * GoogleController.cs: notification refactoring * App.master: - notification refactoring - html structure in the `nav` * hallo.js: event 'hallomodified' now also occurs at image modifications * to-markdown.js: ?Fixes? html images alt text and title to Markdown * yavsc.js: implements the photo in database * Edit.aspx: A nicer bill edition, with a photo * UserPost.aspx: Displays the photo * UserPosts.aspx: Fixes the new usage of `ResultPages` * Web.config: totem custo * instdbws.sql: adds a `photo` field in the `blog` table * BlogEntry.cs: defines the photo in the model * BlogManager.cs: a new method to set the photo on a blog post. * BlogProvider.cs: the blog provider now also gives some photo * LocalizedText.fr.Designer.cs: Reordering the french localisation resource * LocalizedText.fr.resx: Reorders the french localisation resource
This commit is contained in:
parent
303e4fa57b
commit
9494d6f353
26 changed files with 1015 additions and 828 deletions
|
|
@ -28,6 +28,15 @@ namespace Yavsc.Model.Blogs
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the photo.
|
||||
/// </summary>
|
||||
/// <value>The photo.</value>
|
||||
public string Photo {
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
string title;
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
|
|
@ -100,6 +100,10 @@ namespace Yavsc.Model.Blogs
|
|||
Provider.UpdatePost (postid, title, content, visible, cids);
|
||||
}
|
||||
|
||||
public static void UpdatePostPhoto (long postid, string photo)
|
||||
{
|
||||
Provider.UpdatePostPhoto (postid, photo);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Finds the post.
|
||||
|
|
|
|||
|
|
@ -150,6 +150,13 @@ namespace Yavsc.Model.Blogs
|
|||
/// </summary>
|
||||
/// <param name="tagid">Tagid.</param>
|
||||
public abstract void RemoveTag (long tagid);
|
||||
|
||||
/// <summary>
|
||||
/// Updates the post photo.
|
||||
/// </summary>
|
||||
/// <param name="pid">Pid.</param>
|
||||
/// <param name="photo">Photo.</param>
|
||||
public abstract void UpdatePostPhoto (long pid, string photo);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,18 @@
|
|||
2015-10-08 Paul Schneider <paul@pschneider.fr>
|
||||
|
||||
* BlogEntry.cs: defines the photo in the model
|
||||
|
||||
* BlogManager.cs: a new method to set the photo on a blog
|
||||
post.
|
||||
|
||||
* BlogProvider.cs: the blog provider now also gives some photo
|
||||
|
||||
* LocalizedText.fr.Designer.cs: Reordering the french
|
||||
localisation resource
|
||||
|
||||
* LocalizedText.fr.resx: Reorders the french localisation
|
||||
resource
|
||||
|
||||
2015-10-04 Paul Schneider <paul@pschneider.fr>
|
||||
|
||||
* MarkdownHelper.cs:
|
||||
|
|
|
|||
106
yavscModel/LocalizedText.fr.Designer.cs
generated
106
yavscModel/LocalizedText.fr.Designer.cs
generated
|
|
@ -76,9 +76,9 @@ namespace Yavsc.Model {
|
|||
}
|
||||
}
|
||||
|
||||
public static string was_added_to_the_role {
|
||||
public static string Create {
|
||||
get {
|
||||
return ResourceManager.GetString("was_added_to_the_role", resourceCulture);
|
||||
return ResourceManager.GetString("Create", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -88,12 +88,6 @@ namespace Yavsc.Model {
|
|||
}
|
||||
}
|
||||
|
||||
public static string ImportException {
|
||||
get {
|
||||
return ResourceManager.GetString("ImportException", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string Title {
|
||||
get {
|
||||
return ResourceManager.GetString("Title", resourceCulture);
|
||||
|
|
@ -124,12 +118,6 @@ namespace Yavsc.Model {
|
|||
}
|
||||
}
|
||||
|
||||
public static string DocTemplateException {
|
||||
get {
|
||||
return ResourceManager.GetString("DocTemplateException", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string Ciffer {
|
||||
get {
|
||||
return ResourceManager.GetString("Ciffer", resourceCulture);
|
||||
|
|
@ -172,9 +160,9 @@ namespace Yavsc.Model {
|
|||
}
|
||||
}
|
||||
|
||||
public static string User_name {
|
||||
public static string ImportException {
|
||||
get {
|
||||
return ResourceManager.GetString("User_name", resourceCulture);
|
||||
return ResourceManager.GetString("ImportException", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -196,9 +184,9 @@ namespace Yavsc.Model {
|
|||
}
|
||||
}
|
||||
|
||||
public static string Welcome {
|
||||
public static string was_added_to_the_role {
|
||||
get {
|
||||
return ResourceManager.GetString("Welcome", resourceCulture);
|
||||
return ResourceManager.GetString("was_added_to_the_role", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -220,15 +208,21 @@ namespace Yavsc.Model {
|
|||
}
|
||||
}
|
||||
|
||||
public static string UserName {
|
||||
public static string Consultant {
|
||||
get {
|
||||
return ResourceManager.GetString("UserName", resourceCulture);
|
||||
return ResourceManager.GetString("Consultant", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string Remember_me {
|
||||
public static string EventWebPage {
|
||||
get {
|
||||
return ResourceManager.GetString("Remember_me", resourceCulture);
|
||||
return ResourceManager.GetString("EventWebPage", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string User_List {
|
||||
get {
|
||||
return ResourceManager.GetString("User List", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -238,15 +232,21 @@ namespace Yavsc.Model {
|
|||
}
|
||||
}
|
||||
|
||||
public static string Home {
|
||||
public static string Not_Approuved {
|
||||
get {
|
||||
return ResourceManager.GetString("Home", resourceCulture);
|
||||
return ResourceManager.GetString("Not Approuved", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string Pdf_version {
|
||||
public static string Remember_me {
|
||||
get {
|
||||
return ResourceManager.GetString("Pdf_version", resourceCulture);
|
||||
return ResourceManager.GetString("Remember_me", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string DocTemplateException {
|
||||
get {
|
||||
return ResourceManager.GetString("DocTemplateException", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -292,21 +292,21 @@ namespace Yavsc.Model {
|
|||
}
|
||||
}
|
||||
|
||||
public static string Welcome {
|
||||
get {
|
||||
return ResourceManager.GetString("Welcome", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string Online {
|
||||
get {
|
||||
return ResourceManager.GetString("Online", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string Not_Approuved {
|
||||
public static string Home {
|
||||
get {
|
||||
return ResourceManager.GetString("Not Approuved", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string Create {
|
||||
get {
|
||||
return ResourceManager.GetString("Create", resourceCulture);
|
||||
return ResourceManager.GetString("Home", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -328,27 +328,9 @@ namespace Yavsc.Model {
|
|||
}
|
||||
}
|
||||
|
||||
public static string role_created {
|
||||
public static string User_name {
|
||||
get {
|
||||
return ResourceManager.GetString("role_created", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string User_List {
|
||||
get {
|
||||
return ResourceManager.GetString("User List", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string EventWebPage {
|
||||
get {
|
||||
return ResourceManager.GetString("EventWebPage", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string Item_added_to_basket {
|
||||
get {
|
||||
return ResourceManager.GetString("Item_added_to_basket", resourceCulture);
|
||||
return ResourceManager.GetString("User_name", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -358,9 +340,21 @@ namespace Yavsc.Model {
|
|||
}
|
||||
}
|
||||
|
||||
public static string Consultant {
|
||||
public static string Pdf_version {
|
||||
get {
|
||||
return ResourceManager.GetString("Consultant", resourceCulture);
|
||||
return ResourceManager.GetString("Pdf_version", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string Item_added_to_basket {
|
||||
get {
|
||||
return ResourceManager.GetString("Item_added_to_basket", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string role_created {
|
||||
get {
|
||||
return ResourceManager.GetString("role_created", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,62 +12,60 @@
|
|||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
|
||||
<data name="access_denied"><value>Accès refusé</value></data>
|
||||
<data name="Bill_edition"><value>Édition d'un billet</value></data>
|
||||
<data name="Consultant"><value>Consultant</value></data>
|
||||
<data name="Count"><value>Nombre</value></data>
|
||||
<data name="Ciffer"><value>Chiffre</value></data>
|
||||
<data name="ImportException"><value>Exception à l'import</value></data>
|
||||
<data name="none"><value>aucun(e)</value></data>
|
||||
<data name="Modify"><value>Modifier</value></data>
|
||||
<data name="no_content"><value>pas de contenu</value></data>
|
||||
<data name="Title"><value>Titre</value></data>
|
||||
<data name="Description"><value>Description</value></data>
|
||||
<data name="Product_reference"><value>Référence produit</value></data>
|
||||
<data name="Unitary_cost"><value>Coût unitaire</value></data>
|
||||
<data name="Count"><value>Nombre</value></data>
|
||||
<data name="Preview"><value>Prévisualiser</value><comment>Prévisualiser le document</comment></data>
|
||||
<data name="Welcome"><value>Bienvenue</value><comment></comment></data>
|
||||
<data name="User List"><value>Liste des utilisateurs</value><comment></comment></data>
|
||||
<data name="Register"><value>Enregistez-vous</value></data>
|
||||
<data name="Online"><value>En ligne</value></data>
|
||||
<data name="Offline"><value>Hors ligne</value></data>
|
||||
<data name="Not Approuved"><value>Non approuvé</value></data>
|
||||
<data name="Remove"><value>Supprimer</value></data>
|
||||
<data name="Pdf_version"><value>Version Pdf</value></data>
|
||||
<data name="Tex_version"><value>Version LaTeX</value></data>
|
||||
<data name="User_name"><value>Nom d'utilisateur</value></data>
|
||||
<data name="Google_error"><value>Erreur Google : {0}</value></data>
|
||||
<data name="access_denied"><value>Accès refusé</value></data>
|
||||
<data name="UserName"><value>Nom d'utilisateur</value></data>
|
||||
<data name="Google_calendar"><value>Agenda Google</value></data>
|
||||
<data name="Consultant"><value>Consultant</value></data>
|
||||
<data name="MinDate"><value>Date minimale du rendez-vous</value></data>
|
||||
<data name="MaxDate"><value>Date maximale du rendez-vous</value></data>
|
||||
<data name="Date_search"><value>Demande de rendez-vous</value></data>
|
||||
<data name="Remember_me"><value>Se souvenir du mot de passe</value></data>
|
||||
<data name="DocTemplateException"><value>Une erreur est survenue à la génération de votre document</value></data>
|
||||
<data name="Message_sent"><value>Votre message a été envoyé</value></data>
|
||||
<data name="was_added_to_the_role"><value>a été ajouté au rôle</value></data>
|
||||
<data name="was_added_to_the_empty_role"><value>Il n'y avait pas 'utilisateur dans le rôle '{1}'. Vous ({0}) avez été ajouté au rôle '{1}'.</value></data>
|
||||
<data name="younotadmin"><value>Vous n'êtes pas administrateur</value></data>
|
||||
<data name="role_created"><value>Rôle créé</value></data>
|
||||
<data name="Item_added_to_basket"><value>Article ajouté au panier</value></data>
|
||||
<data name="Estimate_not_found"><value>Devis non trouvé</value></data>
|
||||
<data name="My_Estimates"><value>Mes estimations</value></data>
|
||||
<data name="User_name"><value>Nom d'utilisateur</value></data>
|
||||
<data name="Circles"><value>Cercles</value></data>
|
||||
<data name="Location"><value>Lieu</value></data>
|
||||
<data name="StartDate"><value>Date de démarrage</value></data>
|
||||
<data name="EndDate"><value>Date de fin</value></data>
|
||||
<data name="ProviderName"><value>Nom du fournisseur</value></data>
|
||||
<data name="ProviderId"><value>Identifiant du fournisseur</value></data>
|
||||
<data name="Comment"><value>Commentaire</value></data>
|
||||
<data name="EventWebPage"><value>Page web de l'événement</value></data>
|
||||
<data name="ImgLocator"><value>URI de l'image</value></data>
|
||||
<data name="Home"><value>Accueil</value></data>
|
||||
<data name="Bill_edition"><value>Édition d'un billet</value></data>
|
||||
<data name="Create"><value>Créer</value></data>
|
||||
<data name="Members"><value>Membres</value></data>
|
||||
<data name="UserName"><value>Nom d'utilisateur</value></data>
|
||||
<data name="Date_search"><value>Demande de rendez-vous</value></data>
|
||||
<data name="DocTemplateException"><value>Une erreur est survenue à la génération de votre document</value></data>
|
||||
<data name="Description"><value>Description</value></data>
|
||||
<data name="DisplayName"><value>Nom affiché</value></data>
|
||||
<data name="entries"><value>entrées</value></data>
|
||||
<data name="EndDate"><value>Date de fin</value></data>
|
||||
<data name="Estimate_not_found"><value>Devis non trouvé</value></data>
|
||||
<data name="EventWebPage"><value>Page web de l'événement</value></data>
|
||||
<data name="Google_calendar"><value>Agenda Google</value></data>
|
||||
<data name="Google_error"><value>Erreur Google : {0}</value></data>
|
||||
<data name="Home"><value>Accueil</value></data>
|
||||
<data name="ImgLocator"><value>URI de l'image</value></data>
|
||||
<data name="ImportException"><value>Exception à l'import</value></data>
|
||||
<data name="InternalServerError"><value>Erreur serveur interne</value></data>
|
||||
<data name="Item_added_to_basket"><value>Article ajouté au panier</value></data>
|
||||
<data name="Location"><value>Lieu</value></data>
|
||||
<data name="MaxDate"><value>Date maximale du rendez-vous</value></data>
|
||||
<data name="Members"><value>Membres</value></data>
|
||||
<data name="Message_sent"><value>Votre message a été envoyé</value></data>
|
||||
<data name="MinDate"><value>Date minimale du rendez-vous</value></data>
|
||||
<data name="Modify"><value>Modifier</value></data>
|
||||
<data name="My_Estimates"><value>Mes estimations</value></data>
|
||||
<data name="none"><value>aucun(e)</value></data>
|
||||
<data name="Not Approuved"><value>Non approuvé</value></data>
|
||||
<data name="no_content"><value>pas de contenu</value></data>
|
||||
<data name="Offline"><value>Hors ligne</value></data>
|
||||
<data name="Online"><value>En ligne</value></data>
|
||||
<data name="Pdf_version"><value>Version Pdf</value></data>
|
||||
<data name="Preview"><value>Prévisualiser</value><comment>Prévisualiser le document</comment></data>
|
||||
<data name="Product_reference"><value>Référence produit</value></data>
|
||||
<data name="ProviderId"><value>Identifiant du fournisseur</value></data>
|
||||
<data name="ProviderName"><value>Nom du fournisseur</value></data>
|
||||
<data name="Register"><value>Enregistez-vous</value></data>
|
||||
<data name="Remember_me"><value>Se souvenir du mot de passe</value></data>
|
||||
<data name="Remove"><value>Supprimer</value></data>
|
||||
<data name="role_created"><value>Rôle créé</value></data>
|
||||
<data name="StartDate"><value>Date de démarrage</value></data>
|
||||
<data name="Tex_version"><value>Version LaTeX</value></data>
|
||||
<data name="Title"><value>Titre</value></data>
|
||||
<data name="Unitary_cost"><value>Coût unitaire</value></data>
|
||||
<data name="User List"><value>Liste des utilisateurs</value><comment></comment></data>
|
||||
<data name="User_name"><value>Nom d'utilisateur</value></data>
|
||||
<data name="was_added_to_the_role"><value>a été ajouté au rôle</value></data>
|
||||
<data name="was_added_to_the_empty_role"><value>Il n'y avait pas 'utilisateur dans le rôle '{1}'. Vous ({0}) avez été ajouté au rôle '{1}'.</value></data>
|
||||
<data name="Welcome"><value>Bienvenue</value><comment></comment></data>
|
||||
<data name="younotadmin"><value>Vous n'êtes pas administrateur</value></data>
|
||||
|
||||
</root>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue