GIT: perform LF normalization
This commit is contained in:
1 parent
989f08a24d
commit
7d9be5620d
729 files changed
+300734
-300712
No files matched your search
@@ -1,33 +1,33 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
|
||||
namespace Disco.Web.ClientSource.Style.Images.AttachmentTypes
|
||||
{
|
||||
public static class MimeTypeIcons
|
||||
{
|
||||
|
||||
public static string Icon(string MimeType)
|
||||
{
|
||||
|
||||
switch (MimeType.ToLower())
|
||||
{
|
||||
case "application/pdf":
|
||||
return Links.ClientSource.Style.Images.AttachmentTypes.pdf_png;
|
||||
case "application/msword":
|
||||
case "application/vnd.openxmlformats-officedocument.wordprocessingml.document":
|
||||
case "application/vnd.ms-word.document.macroEnabled.12":
|
||||
return Links.ClientSource.Style.Images.AttachmentTypes.document_png;
|
||||
}
|
||||
|
||||
// Generic 'image' icon
|
||||
if (MimeType.StartsWith("image/", StringComparison.InvariantCultureIgnoreCase))
|
||||
return Links.ClientSource.Style.Images.AttachmentTypes.image_png;
|
||||
|
||||
// All other Attachments
|
||||
return Links.ClientSource.Style.Images.AttachmentTypes.unknown_png;
|
||||
}
|
||||
|
||||
}
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
|
||||
namespace Disco.Web.ClientSource.Style.Images.AttachmentTypes
|
||||
{
|
||||
public static class MimeTypeIcons
|
||||
{
|
||||
|
||||
public static string Icon(string MimeType)
|
||||
{
|
||||
|
||||
switch (MimeType.ToLower())
|
||||
{
|
||||
case "application/pdf":
|
||||
return Links.ClientSource.Style.Images.AttachmentTypes.pdf_png;
|
||||
case "application/msword":
|
||||
case "application/vnd.openxmlformats-officedocument.wordprocessingml.document":
|
||||
case "application/vnd.ms-word.document.macroEnabled.12":
|
||||
return Links.ClientSource.Style.Images.AttachmentTypes.document_png;
|
||||
}
|
||||
|
||||
// Generic 'image' icon
|
||||
if (MimeType.StartsWith("image/", StringComparison.InvariantCultureIgnoreCase))
|
||||
return Links.ClientSource.Style.Images.AttachmentTypes.image_png;
|
||||
|
||||
// All other Attachments
|
||||
return Links.ClientSource.Style.Images.AttachmentTypes.unknown_png;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user