From 9c82bbd0c72d6b6d697a059c27d648da6dde3ada Mon Sep 17 00:00:00 2001 From: yasushiito Date: Sun, 24 Mar 2013 16:52:04 +0900 Subject: [PATCH] t#31024:fix publishing picture --- app/views/resource_pictures/new.html.erb | 3 ++- script/uploader.rb | 8 +++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/app/views/resource_pictures/new.html.erb b/app/views/resource_pictures/new.html.erb index 0cc7e9f5..bab33904 100644 --- a/app/views/resource_pictures/new.html.erb +++ b/app/views/resource_pictures/new.html.erb @@ -1,2 +1,3 @@ -

<%= t '.title' -%>

+

<%= t 'resource_pictures.new.title' -%>

+<% @page_title = t('resource_pictures.new.title') %> <%= render 'resource_pictures/form' %> diff --git a/script/uploader.rb b/script/uploader.rb index 99f0a3e0..f1d143c8 100644 --- a/script/uploader.rb +++ b/script/uploader.rb @@ -115,7 +115,9 @@ class Uploader ) rp = JSON.parse r rescue - puts ' failed: ' + r.to_s + puts ' failed: ' + u.to_s + puts param + puts r.to_s end rp end @@ -157,6 +159,10 @@ class Uploader next unless oid puts 'success: ' + oid.to_s ls = @licenses[lsname] + unless ls + puts 'not detect licenses: ' + lsname.to_s + next + end lsid = ls['id'] lgid = ls['license_group_id'].to_i lg = @license_groups[lgid] -- 2.11.0