initial source commit
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 99 B |
|
After Width: | Height: | Size: 99 B |
|
After Width: | Height: | Size: 100 B |
|
After Width: | Height: | Size: 100 B |
|
After Width: | Height: | Size: 94 B |
|
After Width: | Height: | Size: 94 B |
|
After Width: | Height: | Size: 94 B |
|
After Width: | Height: | Size: 94 B |
|
After Width: | Height: | Size: 173 B |
|
After Width: | Height: | Size: 633 B |
|
After Width: | Height: | Size: 610 B |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 367 B |
|
After Width: | Height: | Size: 652 B |
|
After Width: | Height: | Size: 699 B |
|
After Width: | Height: | Size: 745 B |
|
After Width: | Height: | Size: 705 B |
|
After Width: | Height: | Size: 509 B |
|
After Width: | Height: | Size: 696 B |
|
After Width: | Height: | Size: 569 B |
|
After Width: | Height: | Size: 681 B |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 562 B |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 852 B |
|
After Width: | Height: | Size: 855 B |
|
After Width: | Height: | Size: 658 B |
@@ -0,0 +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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 2.6 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 947 B |
|
After Width: | Height: | Size: 7.7 KiB |
|
After Width: | Height: | Size: 869 B |
|
After Width: | Height: | Size: 114 B |
|
After Width: | Height: | Size: 48 KiB |
|
After Width: | Height: | Size: 61 KiB |
|
After Width: | Height: | Size: 60 KiB |
|
After Width: | Height: | Size: 48 KiB |
|
After Width: | Height: | Size: 61 KiB |
|
After Width: | Height: | Size: 60 KiB |
|
After Width: | Height: | Size: 60 KiB |
|
After Width: | Height: | Size: 48 KiB |
|
After Width: | Height: | Size: 61 KiB |
|
After Width: | Height: | Size: 8.0 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 852 B |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 901 B |
|
After Width: | Height: | Size: 700 B |
|
After Width: | Height: | Size: 773 B |
|
After Width: | Height: | Size: 748 B |
|
After Width: | Height: | Size: 763 B |
|
After Width: | Height: | Size: 769 B |
|
After Width: | Height: | Size: 723 B |
|
After Width: | Height: | Size: 542 B |
|
After Width: | Height: | Size: 7.8 KiB |
|
After Width: | Height: | Size: 586 B |
|
After Width: | Height: | Size: 539 B |
|
After Width: | Height: | Size: 5.4 KiB |
|
After Width: | Height: | Size: 726 B |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 90 B |
|
After Width: | Height: | Size: 164 B |
|
After Width: | Height: | Size: 319 KiB |