[longomatch] Add home and away team as system teams and rename the default dashboard



commit c11d72df1205e50c76ecb64d6fd9bf75a1a0e50b
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Fri Apr 17 12:25:28 2015 +0200

    Add home and away team as system teams and rename the default dashboard

 LongoMatch.Services/TemplatesService.cs |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/LongoMatch.Services/TemplatesService.cs b/LongoMatch.Services/TemplatesService.cs
index 20853c1..893ec48 100644
--- a/LongoMatch.Services/TemplatesService.cs
+++ b/LongoMatch.Services/TemplatesService.cs
@@ -99,10 +99,6 @@ namespace LongoMatch.Services
                        methodDefaultTemplate = typeof(T).GetMethod ("DefaultTemplate");
                        systemTemplates = new List<T> ();
                        this.storage = storage;
-                       // Create the default template, it will be added to the list
-                       // of system templates to make it always available on the app 
-                       // and also read-only
-                       Create ("default", 20);
                }
 
                public bool Exists (string name)
@@ -259,6 +255,8 @@ namespace LongoMatch.Services
        {
                public TeamTemplatesProvider (IStorage storage) : base (storage)
                {
+                       Create ("Home team", 20);
+                       Create ("Away team", 20);
                }
        }
 
@@ -266,6 +264,10 @@ namespace LongoMatch.Services
        {
                public CategoriesTemplatesProvider (IStorage storage) : base (storage)
                {
+                       // Create the default template, it will be added to the list
+                       // of system templates to make it always available on the app 
+                       // and also read-only
+                       Create ("Default dashboard", 20);
                }
        }
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]