pettanr_pettan_public_v01_licenses 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,8 +1,8 @@
1
1
  <div>
2
- <h2>digest credit</h2>
2
+ <h2><%= t('pettanr_pettan_public_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_pettan_public_v01_licenses.full_credit') -%></h2>
7
7
  <%= render @resource_picture.full_credit_template, :picture => @resource_picture %>
8
8
  </div>
@@ -5,41 +5,31 @@
5
5
  end
6
6
  %>
7
7
  <%= form_tag('/pettanr_pettan_public_v01_licenses/attributes') do %>
8
- <% if @pettan_public_license.errors.any? %>
9
- <div id="error_explanation">
10
- <h2><%= pluralize(@pettan_public_license.errors.count, "error") %> prohibited this comic from being saved:</h2>
11
-
12
- <ul>
13
- <% @pettan_public_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 => @pettan_public_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_pettan_public_v01_licenses.selected') -%></td>
25
15
  </tr>
26
16
  <tr>
27
- <td>License</td>
17
+ <td><%= t_m 'PettanrPettanPublicV01Licenses::Attribute.license_id' -%></td>
28
18
  <td><%= collection_select :pettan_public_license, :license_id, @license_group.licenses.map {|l| [l.caption, l.id] }, :last, :first -%></td>
29
- <td>+</td>
19
+ <td><%= t('pettanr_pettan_public_v01_licenses.no_blank') -%></td>
30
20
  </tr>
31
21
  <tr>
32
- <td>Artist Name</td>
22
+ <td><%= t_m 'PettanrPettanPublicV01Licenses::Attribute.artist_name' -%></td>
33
23
  <td><%= text_field_tag 'pettan_public_license[artist_name]', @pettan_public_license.artist_name -%></td>
34
- <td>+</td>
24
+ <td><%= t('pettanr_pettan_public_v01_licenses.no_blank') -%></td>
35
25
  </tr>
36
26
  <tr>
37
- <td>Caption</td>
27
+ <td><%= t_m 'PettanrPettanPublicV01Licenses::Attribute.caption' -%></td>
38
28
  <td><%= text_field_tag 'pettan_public_license[caption]', @pettan_public_license.caption -%></td>
39
29
  <td></td>
40
30
  </tr>
41
31
  <tr>
42
- <td>source picture's url</td>
32
+ <td><%= t_m 'PettanrPettanPublicV01Licenses::Attribute.sources' -%></td>
43
33
  <td><%= text_area_tag 'pettan_public_license[sources]', @pettan_public_license.sources -%></td>
44
34
  <td></td>
45
35
  </tr>
@@ -50,6 +40,6 @@
50
40
  <%= hidden_field_tag 'original_picture_license_group[license_group_id]', @original_picture_license_group.license_group_id %>
51
41
 
52
42
  <div class="actions">
53
- <%= submit_tag 'Next' %>
43
+ <%= submit_tag t('pettanr_pettan_public_v01_licenses.next') %>
54
44
  </div>
55
45
  <% end %>
@@ -13,23 +13,23 @@
13
13
  </td>
14
14
  </tr>
15
15
  <tr>
16
- <td>Artist Name</td>
17
- <td><%= h(picture.artist_name) -%></td>
18
- </tr>
19
- <tr>
20
- <td>License Group</td>
16
+ <td><%= t_m 'PettanrPettanPublicV01Licenses::Attribute' -%></td>
21
17
  <td><%= link_to(h(picture.license.license_group.caption), picture.license.license_group.url) -%></td>
22
18
  </tr>
23
19
  <tr>
24
- <td>License</td>
20
+ <td><%= t_m 'PettanrPettanPublicV01Licenses::Attribute.license_id' -%></td>
25
21
  <td><%= link_to(h(picture.license.caption), picture.license.url) -%></td>
26
22
  </tr>
27
23
  <tr>
28
- <td>Caption</td>
24
+ <td><%= t_m 'PettanrPettanPublicV01Licenses::Attribute.artist_name' -%></td>
25
+ <td><%= h(picture.artist_name) -%></td>
26
+ </tr>
27
+ <tr>
28
+ <td><%= t_m 'PettanrPettanPublicV01Licenses::Attribute.caption' -%></td>
29
29
  <td><%= h picture.credit_data['caption'] -%></td>
30
30
  </tr>
31
31
  <tr>
32
- <td>source picture's url</td>
32
+ <td><%= t_m 'PettanrPettanPublicV01Licenses::Attribute.sources' -%></td>
33
33
  <td>
34
34
  <% picture.credit_data['sources'].to_s.gsub(/\r/, '').split(/\n/).each do |url| -%>
35
35
  <div><%= link_to(h(url), url) -%></div>
@@ -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_pettan_public_v01_licenses.title') %></h1>
1
2
  <%= render 'pettanr_pettan_public_v01_licenses/attributes/note' %>
2
3
  <%= render 'pettanr_pettan_public_v01_licenses/attributes/form' %>
@@ -0,0 +1,18 @@
1
+ ja:
2
+ activerecord:
3
+ models:
4
+ pettanr_pettan_public_v01_licenses/attribute: ぺったんパブリック0.1
5
+ attributes:
6
+ pettanr_pettan_public_v01_licenses/attribute:
7
+ license_id: ライセンス
8
+ artist_name: 著作者名
9
+ caption: 作品のタイトル
10
+ sources: 元作品のurl
11
+ pettanr_pettan_public_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 PettanrPettanPublicV01Licenses
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pettanr_pettan_public_v01_licenses
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
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-29 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: &24735816 !ruby/object:Gem::Requirement
16
+ requirement: &23368548 !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: *24735816
24
+ version_requirements: *23368548
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: sqlite3
27
- requirement: &24735048 !ruby/object:Gem::Requirement
27
+ requirement: &23368068 !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: *24735048
35
+ version_requirements: *23368068
36
36
  description: This software is a license plugin for PettanR
37
37
  email:
38
38
  - yasusiito@gmail.com
@@ -57,6 +57,7 @@ files:
57
57
  - app/views/pettanr_pettan_public_v01_licenses/attributes/_form.html.erb
58
58
  - app/views/pettanr_pettan_public_v01_licenses/attributes/_full_credit.html.erb
59
59
  - app/views/pettanr_pettan_public_v01_licenses/attributes/_note.html.erb
60
+ - config/locales/pettanr_pettan_public_v01_licenses.ja.yml
60
61
  - config/routes.rb
61
62
  - db/b1.png
62
63
  - db/migrate/20121008012741_create_pettanr_pettan_public_v01_licenses_attributes.rb