Feature #26: User Flags

Flags can be associated with Users. Includes minor updates to Job Queues
and improved visibility of user information.
This commit is contained in:
Gary Sharp
2014-06-10 17:16:24 +10:00
parent b64ac3b16f
commit 4c3a68da30
104 changed files with 8112 additions and 1623 deletions
@@ -1,9 +1,5 @@
using Disco.Models.Services.Jobs.JobQueues;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Disco.Models.UI.Config.JobQueue
{
@@ -14,6 +10,9 @@ namespace Disco.Models.UI.Config.JobQueue
int OpenJobCount { get; set; }
int TotalJobCount { get; set; }
IEnumerable<KeyValuePair<string, string>> Icons { get; set; }
IEnumerable<KeyValuePair<string, string>> ThemeColours { get; set; }
List<Disco.Models.Repository.JobType> JobTypes { get; set; }
bool CanDelete { get; set; }
@@ -0,0 +1,7 @@
namespace Disco.Models.UI.Config.UserFlag
{
public interface ConfigUserFlagCreateModel : BaseUIModel
{
Repository.UserFlag UserFlag { get; set; }
}
}
@@ -0,0 +1,9 @@
using System.Collections.Generic;
namespace Disco.Models.UI.Config.UserFlag
{
public interface ConfigUserFlagIndexModel : BaseUIModel
{
List<Repository.UserFlag> UserFlags { get; set; }
}
}
@@ -0,0 +1,15 @@
using System.Collections.Generic;
namespace Disco.Models.UI.Config.UserFlag
{
public interface ConfigUserFlagShowModel : BaseUIModel
{
Repository.UserFlag UserFlag { get; set; }
int CurrentAssignmentCount { get; set; }
int TotalAssignmentCount { get; set; }
IEnumerable<KeyValuePair<string, string>> Icons { get; set; }
IEnumerable<KeyValuePair<string, string>> ThemeColours { get; set; }
}
}