diff --git a/app/controllers/attachments_controller.rb b/app/controllers/attachments_controller.rb index 4525176ac..62bef8fb1 100644 --- a/app/controllers/attachments_controller.rb +++ b/app/controllers/attachments_controller.rb @@ -361,7 +361,7 @@ private def login_without_softapplication referer = request.headers['Referer'] - require_login unless referer =~ /softapplication/ + require_login unless referer =~ /softapplication/ || referer =~ /memos/ end def renderTag diff --git a/app/controllers/contest_notification_controller.rb b/app/controllers/contest_notification_controller.rb index 8c6e51bd5..461b62457 100644 --- a/app/controllers/contest_notification_controller.rb +++ b/app/controllers/contest_notification_controller.rb @@ -1,4 +1,5 @@ class ContestNotificationController < ApplicationController + layout 'contest_base' def show @notification = ContestNotification.find(params[:id]) end diff --git a/app/controllers/journals_controller.rb b/app/controllers/journals_controller.rb index 28505a047..77ee9d648 100644 --- a/app/controllers/journals_controller.rb +++ b/app/controllers/journals_controller.rb @@ -54,6 +54,11 @@ class JournalsController < ApplicationController end (render_404; return false) unless @issue && @detail @diff = Redmine::Helpers::Diff.new(@detail.value, @detail.old_value) + respond_to do |format| + format.html { + render :layout => 'project_base' + } + end end def new diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb index dfacff864..47f33f34a 100644 --- a/app/helpers/projects_helper.rb +++ b/app/helpers/projects_helper.rb @@ -181,7 +181,7 @@ module ProjectsHelper # unless project.is_public == 1 if project.is_public != 1 - s = "#{l(:lable_private)}".html_safe + s = "#{l(:label_private)}".html_safe else s = "".html_safe end @@ -197,7 +197,7 @@ module ProjectsHelper if !project.is_public # end longjun - s = "#{l(:lable_private)}".html_safe + s = "#{l(:label_private)}".html_safe else s = "".html_safe end diff --git a/app/views/memos/show.html.erb b/app/views/memos/show.html.erb index 9b68e80fc..577c3ff7f 100644 --- a/app/views/memos/show.html.erb +++ b/app/views/memos/show.html.erb @@ -23,7 +23,8 @@ )if !@memo.locked? && User.current.logged? %> <%= link_to( - image_tag('edit.png'), + #image_tag('edit.png'), + l(:button_edit), {:action => 'edit', :id => @memo}, :method => 'get', :title => l(:button_edit)