event log: tell when a project doesn't keep a history

This commit is contained in:
Hylke Bons 2013-03-10 22:31:14 +00:00
parent 45bfe34f06
commit 7b043c0856

View file

@ -403,9 +403,10 @@ namespace SparkleShare {
public string GetHTMLLog (List<SparkleChangeSet> 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 ("<!-- $event-log-content -->",
"<div class='day-entry'><div class='day-entry-header'>This project does not keep a history.</div></div>");
List <ActivityDay> activity_days = new List <ActivityDay> ();
change_sets.Sort ((x, y) => (x.Timestamp.CompareTo (y.Timestamp)));