From fb0fdfcb8ba9697687da74dca988bda89b5aaf2f Mon Sep 17 00:00:00 2001 From: Yukimi Kazari Date: Wed, 7 Jun 2017 05:42:07 -0400 Subject: [PATCH] Added WEBM icon --- app/assets/stylesheets/application.css | 11 ++++++----- app/helpers/PostHelper.php | 3 +++ ...lication-0b1f0761b0f488c409a80b516518e0e1.css | 11 ++++++----- public/images/type-webm.gif | Bin 0 -> 1251 bytes 4 files changed, 15 insertions(+), 10 deletions(-) create mode 100644 public/images/type-webm.gif 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 0000000000000000000000000000000000000000..b6f62b3321c471e3e6acc2c3f557d0e8db750773 GIT binary patch literal 1251 zcmZ?wbhEHb)L{@{XkcX6V`B3E|9{2*+!4M33NDEyi9p)MzM>#8IXksPAt^OIGtXA( z{qFrr3YjUkO5vuy2EGN(sTr9bRYj@6RemAKRoTgwDN6Qs3N{s16}bhusU?XD6}dTi z#a0!zN{K1?NvT#qHb_`sNdc^+B->WW5hS4iveP-gC{@8!&saCvz|c^^%uLVF#MI2p zP)EVYz|ctF0Eof6`()~Xj@TAnpKdC8`Lf!&sHg;q@=(~U%$M(T(8_% zFTW^V-_X+15@d#vkuFe$ZgFK^Nn(X=Ua>OF1ees}><76{9OHt!~%UoJp=vRT#&!Os*6j4QW4I;s=7F&vLIDID784h zv?w_hs9YJQ85nl>EdnV7y2i@CC=(bdi8(I$$)&lec_p4Mwn{)5y_C!pD@zv>7ejM% zLjyw-Cs%VrLrXI=BMTE3S94cmCv!Jf3z!+$^cuRkm>8HjIh#0{nHn0pnmbyUxmg%m zxVRWOyI8t78pHH@<`tJD<|U`X?9Bw)3)Sm{SFe?GQEFmIeo;t%ehw@J1Z3ow=Gku_A z^g)RODY3wWfGH5fgeQF<2cCIS^ME;~2$(e(|Nr~@=l8FlKfZta`sMSdk00K@d;8|~ ztCugHKYRM*@uPti4*$! zdV9LNIy>6iT3ec%8XM~CYHO;iDl5v%N=u513Jdb{a&xk?GBeWCQd5$X5)DC zA|t}XLPLUs0t5X0e0{vVJU!gqTwR=<93AZKY;CNqEG^8n__EyA~Tz0ddIb~%Fm)AW>D|>oo+otZ#UMIen>m1sf;M^^^ z!n&(tn~%^9Zl&;Dt2RVwZ!Nq1G&}T5t^c*WZ)aQzGdQ!J@b;g6{$