diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index 67c4f84..62c96ea 100755 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -1405,11 +1405,12 @@ a.directlink:hover > .directlink-info { .smallimg .directlink-icon-large { display: none; } .smallimg .directlink-icon-uhd { display: none; } -.file-jpg .file-type-png,.file-jpg .file-type-gif,.file-jpg .file-type-mp4,.file-jpg .file-type-flv { display: none; } -.file-png .file-type-jpg,.file-png .file-type-gif,.file-png .file-type-mp4,.file-png .file-type-flv { display: none; } -.file-gif .file-type-jpg,.file-gif .file-type-png,.file-gif .file-type-mp4,.file-gif .file-type-flv { display: none; } -.file-mp4 .file-type-jpg,.file-mp4 .file-type-png,.file-mp4 .file-type-gif,.file-mp4 .file-type-flv { display: none; } -.file-flv .file-type-jpg,.file-flv .file-type-png,.file-flv .file-type-gif,.file-flv .file-type-mp4 { display: none; } +.file-jpg .file-type-png,.file-jpg .file-type-gif,.file-jpg .file-type-mp4,.file-jpg .file-type-flv,.file-jpg .file-type-webm { display: none; } +.file-png .file-type-jpg,.file-png .file-type-gif,.file-png .file-type-mp4,.file-png .file-type-flv,.file-png .file-type-webm { display: none; } +.file-gif .file-type-jpg,.file-gif .file-type-png,.file-gif .file-type-mp4,.file-gif .file-type-flv,.file-gif .file-type-webm { display: none; } +.file-mp4 .file-type-jpg,.file-mp4 .file-type-png,.file-mp4 .file-type-gif,.file-mp4 .file-type-flv,.file-mp4 .file-type-webm { display: none; } +.file-flv .file-type-jpg,.file-flv .file-type-png,.file-flv .file-type-gif,.file-flv .file-type-mp4,.file-flv .file-type-webm { display: none; } +.file-webm .file-type-jpg,.file-flv .file-type-png,.file-flv .file-type-gif,.file-flv .file-type-mp4,.file-flv .file-type-flv { display: none; } .rating-e .image-rating-s,.rating-e .image-rating-q { display: none; } .rating-q .image-rating-s,.rating-q .image-rating-e { display: none; } diff --git a/app/helpers/PostHelper.php b/app/helpers/PostHelper.php index 6902055..75ca3e8 100755 --- a/app/helpers/PostHelper.php +++ b/app/helpers/PostHelper.php @@ -87,6 +87,7 @@ class PostHelper extends Rails\ActionView\Helper + @@ -116,6 +117,8 @@ class PostHelper extends Rails\ActionView\Helper $ddl_class .= " file-flv"; if ($post->file_ext == "mp4") $ddl_class .= " file-mp4"; + if ($post->file_ext == "webm") + $ddl_class .= " file-webm"; if ($post->rating == "s") $ddl_class .= " rating-s"; diff --git a/public/assets/application-0b1f0761b0f488c409a80b516518e0e1.css b/public/assets/application-0b1f0761b0f488c409a80b516518e0e1.css index 2fcbab3..b5275f7 100644 --- a/public/assets/application-0b1f0761b0f488c409a80b516518e0e1.css +++ b/public/assets/application-0b1f0761b0f488c409a80b516518e0e1.css @@ -734,11 +734,12 @@ a.directlink:hover>.directlink-info{display:none} .rating-e .image-rating-s,.rating-e .image-rating-q { display: none; } .rating-q .image-rating-s,.rating-q .image-rating-e { display: none; } .rating-s .image-rating-q,.rating-s .image-rating-e { display: none; } -.file-jpg .file-type-png,.file-jpg .file-type-gif,.file-jpg .file-type-mp4,.file-jpg .file-type-flv { display: none; } -.file-png .file-type-jpg,.file-png .file-type-gif,.file-png .file-type-mp4,.file-png .file-type-flv { display: none; } -.file-gif .file-type-jpg,.file-gif .file-type-png,.file-gif .file-type-mp4,.file-gif .file-type-flv { display: none; } -.file-mp4 .file-type-jpg,.file-mp4 .file-type-png,.file-mp4 .file-type-gif,.file-mp4 .file-type-flv { display: none; } -.file-flv .file-type-jpg,.file-flv .file-type-png,.file-flv .file-type-gif,.file-flv .file-type-mp4 { display: none; } +.file-jpg .file-type-png,.file-jpg .file-type-gif,.file-jpg .file-type-mp4,.file-jpg .file-type-flv,.file-jpg .file-type-webm { display: none; } +.file-png .file-type-jpg,.file-png .file-type-gif,.file-png .file-type-mp4,.file-png .file-type-flv,.file-png .file-type-webm { display: none; } +.file-gif .file-type-jpg,.file-gif .file-type-png,.file-gif .file-type-mp4,.file-gif .file-type-flv,.file-gif .file-type-webm { display: none; } +.file-mp4 .file-type-jpg,.file-mp4 .file-type-png,.file-mp4 .file-type-gif,.file-mp4 .file-type-flv,.file-mp4 .file-type-webm { display: none; } +.file-flv .file-type-jpg,.file-flv .file-type-png,.file-flv .file-type-gif,.file-flv .file-type-mp4,.file-flv .file-type-webm { display: none; } +.file-webm .file-type-jpg,.file-flv .file-type-png,.file-flv .file-type-gif,.file-flv .file-type-mp4,.file-flv .file-type-flv { display: none; } .similar .directlink-icon{display:none} .top-corner-float{background:#222;border:solid #000 2px;padding:6px;position:fixed;right:2px;top:2px;z-index:5;font-size: 12px} .post-hover{background:#222;border:2px solid #000;max-width:30em;min-width:20em;padding:2px;position:absolute;z-index:2} diff --git a/public/images/type-webm.gif b/public/images/type-webm.gif new file mode 100644 index 0000000..b6f62b3 Binary files /dev/null and b/public/images/type-webm.gif differ