From 7b043c0856f87a33e68b51fe8b257c333c93f642 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Sun, 10 Mar 2013 22:31:14 +0000 Subject: [PATCH] event log: tell when a project doesn't keep a history --- SparkleShare/SparkleEventLogController.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/SparkleShare/SparkleEventLogController.cs b/SparkleShare/SparkleEventLogController.cs index 2e3276c3..237cb4c1 100755 --- a/SparkleShare/SparkleEventLogController.cs +++ b/SparkleShare/SparkleEventLogController.cs @@ -403,9 +403,10 @@ namespace SparkleShare { public string GetHTMLLog (List change_sets) { - if (change_sets.Count == 0) - return ""; // TODO "Project does not have a history" - + if (change_sets == null || change_sets.Count == 0) + return Program.Controller.EventLogHTML.Replace ("", + "
This project does not keep a history.
"); + List activity_days = new List (); change_sets.Sort ((x, y) => (x.Timestamp.CompareTo (y.Timestamp)));