diff --git a/app/controllers/admin/object_auths_new_interface_controller.rb b/app/controllers/admin/object_auths_new_interface_controller.rb
index 42e82b47..1d367c94 100644
--- a/app/controllers/admin/object_auths_new_interface_controller.rb
+++ b/app/controllers/admin/object_auths_new_interface_controller.rb
@@ -4,6 +4,7 @@ class Admin::ObjectAuthsNewInterfaceController < OrbitBackendController
def setting
+
@sys_users = User.all(conditions: {admin: false}).includes(:avatar)
@ob_auth = ObjectAuth.find params[:object_auth_id]
@options_from_collection_for_select_ob_auth = [@ob_auth].collect{|oa| [oa.auth_obj.pp_object,oa.id] }
diff --git a/config/routes.rb b/config/routes.rb
index 443208e0..01fb3aca 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -224,7 +224,7 @@ Orbit::Application.routes.draw do
match '/desktop/temp_func/'=>'desktop#temp_func'
- match '/panel/:app_name/front_end/:app_action/:id/*controller_action' => 'pages#show_from_link', :constraints => lambda { |request|
+ match '/panel/:app_name/front_end/:app_action/:id(/:controller_action)' => 'pages#show_from_link', :constraints => lambda { |request|
!request.query_string.include?("inner=true")
}
diff --git a/vendor/built_in_modules/gallery/app/assets/javascripts/galleryAPI_frontend.js.erb b/vendor/built_in_modules/gallery/app/assets/javascripts/galleryAPI_frontend.js.erb
index 22d75fc4..957f8749 100644
--- a/vendor/built_in_modules/gallery/app/assets/javascripts/galleryAPI_frontend.js.erb
+++ b/vendor/built_in_modules/gallery/app/assets/javascripts/galleryAPI_frontend.js.erb
@@ -9,7 +9,7 @@ var galleryAPI = function(){
this.urlVars = rcom.getUrlVars();
this.albumArea = $("#orbit_gallery");
this.loadArea = null;
- this.tagList = $("ul#.tag_list");
+ this.tagList = $(".taglist ul");
// this.authenticated = false;
this.initialize = function(callbackFn){
$(document).ready(function(){
@@ -93,25 +93,12 @@ var galleryAPI = function(){
$img.height("100%");
var updatePhotoTag = function(){
- var tags = imageArray[imagecount].tag_ids;
- if(tags.length > 0 && g.tagList.find("li").length == 0){
- var tagnames = imageArray[imagecount].tag_names;
- g.tagList.empty();
- for(i in tagnames){
- $li = $("
"+tagnames[i]+"");
- g.tagList.append($li);
- }
- }else if(tags.length > 0 && g.tagList.find("li").length > 0) {
- g.tagList.find("input").attr("checked",false);
- for(tag in tags){
- g.tagList.find("li[data-content="+tags[tag]+"] input").attr("checked",true);
- }
- }else if(tags.length == 0){
- if(g.tagList.find("input").length == 0)
- g.tagList.empty();
- else
- g.tagList.find("input").attr("checked",false);
+ var tagnames = imageArray[imagecount].tag_names;
+ g.tagList.empty();
+ for(tag in tagnames){
+ g.tagList.append(""+tagnames[tag]+"");
}
+
}
@@ -227,7 +214,6 @@ var galleryAPI = function(){
window.location.hash = pageurl;
}
// $(".slideinfo b.info").text(imageArray[imagecount].title);
- if($('.bt-tag').hasClass("active"))
updatePhotoTag();
$(".slideinfo .info").text(imageArray[imagecount].description);
if(imageArray.length > 1)
diff --git a/vendor/built_in_modules/gallery/app/controllers/panel/gallery/front_end/albums_controller.rb b/vendor/built_in_modules/gallery/app/controllers/panel/gallery/front_end/albums_controller.rb
index c9a20b3a..b39c1fa5 100644
--- a/vendor/built_in_modules/gallery/app/controllers/panel/gallery/front_end/albums_controller.rb
+++ b/vendor/built_in_modules/gallery/app/controllers/panel/gallery/front_end/albums_controller.rb
@@ -87,11 +87,15 @@ class Panel::Gallery::FrontEnd::AlbumsController < OrbitWidgetController
end
def theater
- @tags = GalleryTag.all
@image = GalleryImage.find(params[:id])
@albumid = @image.gallery_album_id
@album = GalleryAlbum.find(@albumid)
@images = @album.gallery_images.all
+ tags = @album.tag_ids
+ @tagnames = Array.new
+ tags.each do |tag|
+ @tagnames << GalleryTag.find(tag)[I18n.locale]
+ end
end
diff --git a/vendor/built_in_modules/gallery/app/views/panel/gallery/front_end/albums/theater.html.erb b/vendor/built_in_modules/gallery/app/views/panel/gallery/front_end/albums/theater.html.erb
index 9eabc31b..58137ea5 100644
--- a/vendor/built_in_modules/gallery/app/views/panel/gallery/front_end/albums/theater.html.erb
+++ b/vendor/built_in_modules/gallery/app/views/panel/gallery/front_end/albums/theater.html.erb
@@ -34,7 +34,9 @@
<%= t('gallery.photo_tag') %>
-
+ <% @tagnames.each do |tagname| %>
+ - <%= tagname %>
+ <% end %>