gallery update

This commit is contained in:
devin 2012-08-06 11:07:58 +08:00 committed by chris
parent 1ba87982ba
commit 8a9e724979
4 changed files with 87 additions and 61 deletions

View File

@ -1,5 +1,3 @@
@import url(http://fonts.googleapis.com/css?family=Mako);
/*html { background: #eee; } /*html { background: #eee; }
body { body {
background: #fff; background: #fff;
@ -13,7 +11,7 @@ body.fullscreen, .fullscreen #container, .fullscreen #container2, .fullscreen #m
*/ */
.rg, .rgp { font-family: mako, 'Sans Serif'; } .rg, .rgp { }
.rg input, .rgp input, .rg textarea, .rgp textarea { .rg input, .rgp input, .rg textarea, .rgp textarea {
resize: none; resize: none;
border: none; border: none;
@ -23,7 +21,6 @@ body.fullscreen, .fullscreen #container, .fullscreen #container2, .fullscreen #m
padding: 0; padding: 0;
display: block; display: block;
font-size: 13px; font-size: 13px;
font-family: mako, 'Sans Serif';
} }
.rgp textarea { overflow: auto; } .rgp textarea { overflow: auto; }
.rg a, .rgp a { .rg a, .rgp a {
@ -463,4 +460,9 @@ body.fullscreen, .fullscreen #container, .fullscreen #container2, .fullscreen #m
.rgih98.focus { background-position: 0 -326px; } .rgih98.focus { background-position: 0 -326px; }
.rgih98.focus span { background-position: right -326px; } .rgih98.focus span { background-position: right -326px; }
.w380 { width: 380px; } .w380 { width: 380px; }
#orbit_gallery .nav-tabs, #orbit_gallery .tab-pane {
margin-left: 8px;
margin-right: 8px;
}

View File

@ -1,24 +1,63 @@
<div class="albumname_edit"> <%=
<label for="">Album Name:</label> # for tab effect, please check
<div class="inputui rginput rgih26 w380"><span><input type="text" id='album_name_text' value="<%= @album_name %>" class="txtchange" /></span></div> # /Users/ally/orbit/vendor/built_in_modules/announcement/app/views/panel/announcement/back_end/bulletins/_form.html.erb
</div> # from line 129
<div id='description_loader'> %>
<% @images.each do |image| %> <ul class="nav nav-tabs">
<div class="rgphoto_edit"> <li class="active"><a data-toggle="tab" href=".zh_tw">中文</a></li>
<a href="orbit_gallery?theater=<%= image.id %>"><img src="<%= image.file.thumb.url %>"></a> <li><a data-toggle="tab" href=".en">英文</a></li>
<div class="inputui rginput rgih98 w380"> </ul>
<span> <div class="tab_content">
<textarea name="description_box" class="txtchange" for="<%= image.id%>"><%= image.description %></textarea> <div class="zh_tw tab-pane in active">
</span> <div class="albumname_edit">
<label for="">Album Name:</label>
<div class="inputui rginput rgih26 w380"><span><input type="text" id='album_name_text' value="<%= @album_name %>" class="txtchange" /></span></div>
</div> </div>
<div class="edit_fn"> <div id='description_loader'>
<a class="rgui rgbt rgbtsg bt-dels" onclick="return false;" title="Delete" href="<%= image.id %>">Delete</a> <% @images.each do |image| %>
<% if image.id.to_s == @cover %> <div class="rgphoto_edit">
<a class="rgui rgbt rgbtsg bt-cover setcover" onclick="return false;" title="Set Cover" href="<%= image.id %>">Set Cover</a> <a href="orbit_gallery?theater=<%= image.id %>"><img src="<%= image.file.thumb.url %>"></a>
<% else %> <div class="inputui rginput rgih98 w380">
<a class="rgui rgbt rgbtsg bt-cover" onclick="return false;" title="Set Cover" href="<%= image.id %>">Set Cover</a> <span>
<textarea name="description_box" class="txtchange" for="<%= image.id%>"><%= image.description %></textarea>
</span>
</div>
<div class="edit_fn">
<a class="rgui rgbt rgbtsg bt-dels" onclick="return false;" title="Delete" href="<%= image.id %>">Delete</a>
<% if image.id.to_s == @cover %>
<a class="rgui rgbt rgbtsg bt-cover setcover" onclick="return false;" title="Set Cover" href="<%= image.id %>">Set Cover</a>
<% else %>
<a class="rgui rgbt rgbtsg bt-cover" onclick="return false;" title="Set Cover" href="<%= image.id %>">Set Cover</a>
<% end %>
</div>
</div>
<% end %>
</div>
</div>
<div class="en tab-pane">
<div class="albumname_edit">
<label for="">Album Name:</label>
<div class="inputui rginput rgih26 w380"><span><input type="text" id='album_name_text' value="<%= @album_name %>" class="txtchange" /></span></div>
</div>
<div id='description_loader'>
<% @images.each do |image| %>
<div class="rgphoto_edit">
<a href="orbit_gallery?theater=<%= image.id %>"><img src="<%= image.file.thumb.url %>"></a>
<div class="inputui rginput rgih98 w380">
<span>
<textarea name="description_box" class="txtchange" for="<%= image.id%>"><%= image.description %></textarea>
</span>
</div>
<div class="edit_fn">
<a class="rgui rgbt rgbtsg bt-dels" onclick="return false;" title="Delete" href="<%= image.id %>">Delete</a>
<% if image.id.to_s == @cover %>
<a class="rgui rgbt rgbtsg bt-cover setcover" onclick="return false;" title="Set Cover" href="<%= image.id %>">Set Cover</a>
<% else %>
<a class="rgui rgbt rgbtsg bt-cover" onclick="return false;" title="Set Cover" href="<%= image.id %>">Set Cover</a>
<% end %>
</div>
</div>
<% end %> <% end %>
</div> </div>
</div> </div>
<% end %>
</div> </div>

View File

@ -20,21 +20,6 @@
<a href="panel/gallery/back_end/orbit_gallery" class="btn js_history"><i class="icons-brush-large"></i>清除</a> <a href="panel/gallery/back_end/orbit_gallery" class="btn js_history"><i class="icons-brush-large"></i>清除</a>
</div> </div>
</div> </div>
<div class="table-label">
<table class="table main-list">
<thead>
<tr>
<th class="span1">
<input id="check_all" name="check_all" type="checkbox" value="1">
<a href="#" class="list-remove"><i class="icon-trash"></i></a>
</th>
<th class="span2">Thumbnail</th>
<th class="span2">Category</th>
<th>Title</th>
</tr>
</thead>
</table>
</div>
</div> </div>
</div> </div>
<table id="gallery_list" class="table main-list"> <table id="gallery_list" class="table main-list">

View File

@ -1,25 +1,25 @@
zh_tw: zh_tw:
gallery: gallery:
album_name: Album Name album_name: 相簿名稱
all: All all: 全部
select_category: "--Select a category--" select_category: 選擇類別
manage_categories: Manage Categories manage_categories: 類別管理
categories: Categories categories: 類別
new_category: New Category new_category: 新類別
save_changes: Save Changes save_changes: 儲存變更
close: Close close: 關閉
delete: Delete delete: 刪除
english: English english: 英文
chinese: Chinese chinese: 中文
album_desc: Album Desc album_desc: 相簿描述
add_album: Add Album add_album: 新增相簿
back_to_photos: Back to Photos back_to_photos: 回到照片列表
back_to_albums: Back to Albums back_to_albums: 回到相簿列表
add_images: Add Images add_images: 新增照片
del_album: Delete Album del_album: 刪除相簿
edit: Edit edit: 編輯
delete_selected: Delete Selected delete_selected: 刪除已選擇項目
del_album?: "Delete this album?" del_album?: "刪除這本相簿嗎?"
album_not_found: "Album not found" album_not_found: "相簿不存在"
pic_not_found: "Picture not found" pic_not_found: "照片不存在"