From ede9727a183064f2a03f4e18306e2db9e1640230 Mon Sep 17 00:00:00 2001 From: devin Date: Tue, 21 Aug 2012 13:56:50 +0800 Subject: [PATCH] gallery update --- .../app/assets/images/gallery/pbar-ani.gif | Bin 3159 -> 0 bytes .../app/assets/javascripts/galleryAPI.js.erb | 2 +- .../app/assets/stylesheets/gallery.css | 77 ++++++------------ .../orbit_galleries/edit_album.html.erb | 39 +++++++-- .../back_end/orbit_galleries/index.html.erb | 4 +- .../gallery/config/locales/en.yml | 2 - .../gallery/config/locales/zh_tw.yml | 2 - 7 files changed, 61 insertions(+), 65 deletions(-) delete mode 100755 vendor/built_in_modules/gallery/app/assets/images/gallery/pbar-ani.gif diff --git a/vendor/built_in_modules/gallery/app/assets/images/gallery/pbar-ani.gif b/vendor/built_in_modules/gallery/app/assets/images/gallery/pbar-ani.gif deleted file mode 100755 index 6edd17420169a20ba7700755ead09074b27a5f57..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3159 zcmcJRX;f1O8iwNn)`WlyATT1(N`(+2M;!?gS;T~}XjKr@Q_%!NSR|q%LdbS6$;}=R zBmx1`0s;k!EohV_S_CXENU2*rRIP#ri6RwQ;xKe>Y;`*4+;jS4?7#fV``qXI?tQ<| zFbdI+=7X|FHK9;-O&2N~bd~kGlc!FrD;m`04SAYsWl_2GxE3lX2ajp_iV}`Yoh><$ zDJqzmHQVhs%w}?QR7mg^@+yMQoLMLo%FQ&_Vjju{g@=Em%zulTt4r$+tFv=8_GDZC z=%(7Y(}`T$uwUbpfOn}$X&se3=e!&{s~H{la$4B_s3&dz?81<$redM4GAjOd%cTUq zC72mW&~!aGu#&^l-W+!B-xT_p<5U~(*wDXz698NcTLg(YpbQj>RghGkpOagdg~6bU zH6>-mC%;gtbBn&Ls?t=5tn2G*s!PB9y6Mc>CiMB{me#grtnNFVzN7PE`}YlT{x9rH7L^NsSZh2$)z)dhc`XQnVoAW)pu4b)ZD(Y=$EHp-*I8r;H!H?LhFiWNByj$@efpO zTiaLqzRu=u;xoV;0l@FUyFQ4fSw9DRUox>LF#0o_~q(mAikOwM{$NO2;!*b$Kio`~oF(1?@raT0hZ zneTV9+PQb$^Z5rm%SS$nn2i-C{`%T0y!wV=eCO@WE||-)`5sF;2E-=(veWVxuYCzC z*NsGVJ?{U`V8`K+(Sj&$ybwr|lEo5{D}+>sMAk=`~+` zf&NW*#Ed%Ja3iROaw^1Fc;)7dy%oznm;iR=Hu~XXmfTAukmAyRDwbKCJNUiV1ec8F zM{?*nf1Eedg1L58cxSgLn{VXO_ka=^csAphiY8xgCFY?2@?$4>-h zFl|6SV!XK*j8=bFJe5lYnPvnjZ>sbA+iC-SZ=l&!EQbW}L=fmF6v)>q z7a%GIZ?(70o5_Gnpc2tAs<7BgdNsF#i8|kEv3E)(93IBp=(D@}t*UpU!;Yt~O%D z?Ua4}siG#w^h$c}e$sMiM*5%3ErC8F;f-oweXtIa`E0_ zFu3rKOC`{DB(wy5v^Ph_zSr*i^gb+vO#v8u2K+G~$l^Y_$fzdEW2<`<>*hs=s zniLTs_Z%j`DrD&oFoHUG4lS8v&%cGU)hOe#q-jUmYr;DR8XZ%YYv7rL>{ecU7A(5| zeCQwJ2e3STHU&%&B*3jik{?kLb3a97NE^N41AmxPX0^l)8IX;ji*6Kfd@) z1aqv+QAg+susU5m$CBSkClE<9>VP@4VMXwPZNq)LZnI9e2!CqcOLUKKG?fOZdu=SH zzs@+N2zzNM^0!+A=0u&jlb$KfhAyP+0!CF0$`5uDdSLJyXw0w1G zq_itzham<(ribgv3Z2?n{z$TMS^!^-Q`8OB(Z&UJ>DyeSK1bT8z%Fv5V;O;O_f)Jw z`}P8|H+S1tKJ78jf(#rG20`LIvUG``axEeOE3G@UP9G~!X4}L`{ s4MhL--CFslZD^T)v=@-W+rTs`VFDJw$P$7SG@m45$Qi1jg((0301o9upa1{> diff --git a/vendor/built_in_modules/gallery/app/assets/javascripts/galleryAPI.js.erb b/vendor/built_in_modules/gallery/app/assets/javascripts/galleryAPI.js.erb index 856140590..6be6ed5b6 100644 --- a/vendor/built_in_modules/gallery/app/assets/javascripts/galleryAPI.js.erb +++ b/vendor/built_in_modules/gallery/app/assets/javascripts/galleryAPI.js.erb @@ -165,7 +165,7 @@ var galleryAPI = function(){ var $img = $("
"+album.name+"
"); var tag_string = ""; for(tag in album.tag_names){ - tag_string+= '' + album.tag_names[tag] + ''; + tag_string+= '' + album.tag_names[tag] + ''; } $img.find(".tagnames").html(tag_string); g.albumArea.find("#imgholder").append($img); diff --git a/vendor/built_in_modules/gallery/app/assets/stylesheets/gallery.css b/vendor/built_in_modules/gallery/app/assets/stylesheets/gallery.css index 045e1bc28..9875ef9a8 100755 --- a/vendor/built_in_modules/gallery/app/assets/stylesheets/gallery.css +++ b/vendor/built_in_modules/gallery/app/assets/stylesheets/gallery.css @@ -43,17 +43,10 @@ .rgalbum, .rgphoto { float: left; margin: 0 10px 24px 0; } .rgalbum { padding: 16px; - margin: 0 8px 8px 0; - border: solid 1px #ccc; + margin: 0; + border-right: solid 1px #ccc; + border-bottom: solid 1px #ccc; height: 180px; - border-radius: 4px; - - transition: all 0.3s ease; - -webkit-transition: all 0.3s ease; - -moz-transition: all 0.3s ease; -} -.rgalbum:hover { - box-shadow: 0 0 6px rgba(0,0,0,0.2); } .rgalbum img { transition: all, 0.5s ease; @@ -62,23 +55,8 @@ -ms-transition: all, 0.5s ease; } .rgphoto { } -.rgphoto a { - display: block; - padding: 4px; - border: solid 1px #ddd; - background-color: #fff; - border-radius: 4px; - transition: all, 0.3s ease; - -webkit-transition: all, 0.3s ease; - -moz-transition: all, 0.3s ease; -} -.rgphoto a:hover { - border-color: #999; - box-shadow: 0 3px 6px rgba(0,0,0,0.2); -} .rgphoto img, .rgphoto_edit img { - display: block; - border-radius: 3px; + display: block; transition: all, 0.3s ease; -webkit-transition: all, 0.3s ease; -moz-transition: all, 0.3s ease; @@ -104,6 +82,7 @@ clear: both; overflow: hidden; margin-bottom: 10px; + border-bottom: solid 1px #fcfcfc; } .albumname_edit label { width: 120px; @@ -357,6 +336,23 @@ padding: 6px; } .rgphoto_edit .rgbtsg.active { display: inline-block; } +/* +.bt-add { background-position: 0 -106px; } +.bt-add:hover { background-position: 0 -296px; } +.bt-add:active { background-position: 0 -486px; } +.bt-del { background-position: 0 -144px; } +.bt-del:hover { background-position: 0 -334px; } +.bt-del:active { background-position: 0 -524px; } +.bt-edit { background-position: 0 -182px; } +.bt-edit:hover { background-position: 0 -372px; } +.bt-edit:active { background-position: 0 -562px; } +.bt-back { background-position: 0 -676px; } +.bt-back:hover { background-position: 0 -714px; } +.bt-back:active { background-position: 0 -752px; } +.bt-save, .bt-finish { background-position: 0 -220px; } +.bt-save:hover, .bt-finish:hover { background-position: 0 -410px; } +.bt-save:active, .bt-finish:active { background-position: 0 -600px; } +*/ .bt-finish { display: block; float: right; clear: both; } .bt-addnew { margin: 0 auto; @@ -495,14 +491,8 @@ top: 50%; margin-top: -7px; } -#tag_panel .tag_save { - position: absolute; - right: 0; - bottom: 0; - height: 31px; - border-left: solid 1px #ccc; - background-color: #fff; - padding: 2px 4px 0 4px; +#tag_panel .bt-save { + } @@ -527,21 +517,6 @@ } #orbit_gallery .form-actions { background-color: whiteSmoke; } -.o_gallery .tagnames { - display: inline-block; +.o_album .rgbody { + margin: 10px 8px; } -.o_gallery .label-tags { - display: inline-block; - margin: 0 6px 6px 0; -} - -.o_gallery .rgbody, .o_album .rgbody { - padding: 10px 8px; -} - -#categories .add-album .control-label { - text-align: left; - width: 100px; - padding-left: 12px; - padding-right: 12px; -} \ No newline at end of file diff --git a/vendor/built_in_modules/gallery/app/views/panel/gallery/back_end/orbit_galleries/edit_album.html.erb b/vendor/built_in_modules/gallery/app/views/panel/gallery/back_end/orbit_galleries/edit_album.html.erb index 3291942fe..c98690320 100644 --- a/vendor/built_in_modules/gallery/app/views/panel/gallery/back_end/orbit_galleries/edit_album.html.erb +++ b/vendor/built_in_modules/gallery/app/views/panel/gallery/back_end/orbit_galleries/edit_album.html.erb @@ -4,17 +4,42 @@
  • <%= t('gallery.edit') %>
  • -
    -
    - <% @site_valid_locales.each_with_index do |locale, i| %> - <% if i == 0 %> -
    - <% else %> -
    + +
    + <% i = 0 %> + <% @site_valid_locales.each do |locale| %> + <% if i == 0 %> +
    + <% else %> +
    + <% end %> + <% i = 1 %> +
    + +
    +
    +
    + <% @images.each do |image| %> +
    + +
    + +
    +
    + <% if image.id.to_s == @cover %> + + <% else %> + + <% end %> + + +
    +
    <% end %>
    diff --git a/vendor/built_in_modules/gallery/app/views/panel/gallery/back_end/orbit_galleries/index.html.erb b/vendor/built_in_modules/gallery/app/views/panel/gallery/back_end/orbit_galleries/index.html.erb index 51b0a5271..c98dd323f 100644 --- a/vendor/built_in_modules/gallery/app/views/panel/gallery/back_end/orbit_galleries/index.html.erb +++ b/vendor/built_in_modules/gallery/app/views/panel/gallery/back_end/orbit_galleries/index.html.erb @@ -92,8 +92,8 @@
    - - + <%= I18n.t("gallery.save") %> +
    <% end %>