pettanr_unknown_v01_licenses 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
1
  <div>
2
- <h2>digest credit</h2>
2
+ <h2><%= t('pettanr_unknown_v01_licenses.digest_credit') -%></h2>
3
3
  <%= render @resource_picture.credit_template, :picture => @resource_picture %>
4
4
  </div>
5
5
  <div>
6
- <h2>full credit</h2>
6
+ <h2><%= t('pettanr_unknown_v01_licenses.full_credit') -%></h2>
7
7
  <%= render @resource_picture.full_credit_template, :picture => @resource_picture %>
8
8
  </div>
@@ -5,36 +5,26 @@
5
5
  end
6
6
  %>
7
7
  <%= form_tag('/pettanr_unknown_v01_licenses/attributes') do %>
8
- <% if @unknown_license.errors.any? %>
9
- <div id="error_explanation">
10
- <h2><%= pluralize(@unknown_license.errors.count, "error") %> prohibited this comic from being saved:</h2>
11
-
12
- <ul>
13
- <% @unknown_license.errors.full_messages.each do |msg| %>
14
- <li><%= msg %></li>
15
- <% end %>
16
- </ul>
17
- </div>
18
- <% end %>
8
+ <%= render 'system/error_explanation', :obj => @unknown_license %>
19
9
 
20
10
  <table class="no-border">
21
11
  <tr>
22
- <td>License Group</td>
12
+ <td><%= t_m 'LicenseGroup' -%></td>
23
13
  <td><%= h @license_group.caption -%></td>
24
- <td>selected</td>
14
+ <td><%= t('pettanr_unknown_v01_licenses.selected') -%></td>
25
15
  </tr>
26
16
  <tr>
27
- <td>License</td>
17
+ <td><%= t_m 'PettanrUnknownV01Licenses::Attribute.license_id' -%></td>
28
18
  <td><%= collection_select :unknown_license, :license_id, @license_group.licenses.map {|l| [l.caption, l.id] }, :last, :first -%></td>
29
- <td>+</td>
19
+ <td><%= t('pettanr_unknown_v01_licenses.no_blank') -%></td>
30
20
  </tr>
31
21
  <tr>
32
- <td>source picture's url</td>
22
+ <td><%= t_m 'PettanrUnknownV01Licenses::Attribute.source_url' -%></td>
33
23
  <td><%= text_field_tag 'unknown_license[source_url]', @unknown_license.source_url -%></td>
34
24
  <td></td>
35
25
  </tr>
36
26
  <tr>
37
- <td>note</td>
27
+ <td><%= t_m 'PettanrUnknownV01Licenses::Attribute.note' -%></td>
38
28
  <td><%= text_field_tag 'unknown_license[note]', @unknown_license.note -%></td>
39
29
  <td></td>
40
30
  </tr>
@@ -45,6 +35,6 @@
45
35
  <%= hidden_field_tag 'original_picture_license_group[license_group_id]', @original_picture_license_group.license_group_id %>
46
36
 
47
37
  <div class="actions">
48
- <%= submit_tag 'Next' %>
38
+ <%= submit_tag t('pettanr_unknown_v01_licenses.next') %>
49
39
  </div>
50
40
  <% end %>
@@ -13,15 +13,15 @@
13
13
  </td>
14
14
  </tr>
15
15
  <tr>
16
- <td>License Group</td>
16
+ <td><%= t_m 'PettanrUnknownV01Licenses::Attribute' -%></td>
17
17
  <td><%= link_to(h(picture.license.license_group.caption), picture.license.license_group.url) -%></td>
18
18
  </tr>
19
19
  <tr>
20
- <td>License</td>
20
+ <td><%= t_m 'PettanrUnknownV01Licenses::Attribute.license_id' -%></td>
21
21
  <td><%= link_to(h(picture.license.caption), picture.license.url) -%></td>
22
22
  </tr>
23
23
  <tr>
24
- <td>source picture's url</td>
24
+ <td><%= t_m 'PettanrUnknownV01Licenses::Attribute.source_url' -%></td>
25
25
  <td>
26
26
  <% if picture.credit_data['source_url'].blank? %>
27
27
  <% else %>
@@ -30,7 +30,7 @@
30
30
  </td>
31
31
  </tr>
32
32
  <tr>
33
- <td>note</td>
33
+ <td><%= t_m 'PettanrUnknownV01Licenses::Attribute.note' -%></td>
34
34
  <td><%= h picture.credit_data['note'] -%></td>
35
35
  </tr>
36
36
  </table>
@@ -1,2 +1 @@
1
- <h1>Select license (and more info)</h1>
2
- <img src="<%= @original_picture.url -%>">
1
+ <%= tag(:img, @original_picture.opt_img_tag) -%>
@@ -1,2 +1,3 @@
1
+ <h1><%= t('pettanr_unknown_v01_licenses.title') %></h1>
1
2
  <%= render 'pettanr_unknown_v01_licenses/attributes/note' %>
2
3
  <%= render 'pettanr_unknown_v01_licenses/attributes/form' %>
@@ -0,0 +1,18 @@
1
+ ja:
2
+ activerecord:
3
+ models:
4
+ pettanr_unknown_v01_licenses/attribute: 不明0.1
5
+ attributes:
6
+ pettanr_unknown_v01_licenses/attribute:
7
+ license_id: ライセンス
8
+ artist_name: 著作者名
9
+ source_url: 元作品のurl
10
+ note: 備考
11
+ pettanr_unknown_v01_licenses:
12
+ title: 画像の公開(ライセンスの選択)
13
+ selected: 選択されています
14
+ no_blank: 必須項目
15
+ next: 次へ
16
+ digest_credit: クレジット
17
+ full_credit: クレジット完全版
18
+
@@ -1,3 +1,3 @@
1
1
  module PettanrUnknownV01Licenses
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pettanr_unknown_v01_licenses
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-25 00:00:00.000000000 Z
12
+ date: 2012-12-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &26577624 !ruby/object:Gem::Requirement
16
+ requirement: &23915004 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.1.1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *26577624
24
+ version_requirements: *23915004
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: sqlite3
27
- requirement: &26576904 !ruby/object:Gem::Requirement
27
+ requirement: &23914644 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *26576904
35
+ version_requirements: *23914644
36
36
  description: This software is a license plugin for PettanR
37
37
  email:
38
38
  - yasusiito@gmail.com
@@ -55,6 +55,7 @@ files:
55
55
  - app/views/pettanr_unknown_v01_licenses/attributes/_form.html.erb
56
56
  - app/views/pettanr_unknown_v01_licenses/attributes/_full_credit.html.erb
57
57
  - app/views/pettanr_unknown_v01_licenses/attributes/_note.html.erb
58
+ - config/locales/pettanr_unknown_v01_licenses.ja.yml
58
59
  - config/routes.rb
59
60
  - db/b1.png
60
61
  - db/b2.png