pettanr_pettan_commons_v01_licenses 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/app/views/pettanr_pettan_commons_v01_licenses/attributes/_confirm.html.erb +2 -2
- data/app/views/pettanr_pettan_commons_v01_licenses/attributes/_form.html.erb +10 -10
- data/app/views/pettanr_pettan_commons_v01_licenses/attributes/_full_credit.html.erb +8 -8
- data/app/views/pettanr_pettan_commons_v01_licenses/attributes/_note.html.erb +1 -2
- data/app/views/pettanr_pettan_commons_v01_licenses/attributes/new.html.erb +1 -0
- data/config/locales/pettanr_pettan_commons_v01_licenses.ja.yml +19 -0
- data/lib/pettanr_pettan_commons_v01_licenses/version.rb +1 -1
- metadata +7 -6
@@ -1,8 +1,8 @@
|
|
1
1
|
<div>
|
2
|
-
<h2
|
2
|
+
<h2><%= t('pettanr_pettan_commons_v01_licenses.digest_credit') -%></h2>
|
3
3
|
<%= render @resource_picture.credit_template, :picture => @resource_picture %>
|
4
4
|
</div>
|
5
5
|
<div>
|
6
|
-
<h2
|
6
|
+
<h2><%= t('pettanr_pettan_commons_v01_licenses.full_credit') -%></h2>
|
7
7
|
<%= render @resource_picture.full_credit_template, :picture => @resource_picture %>
|
8
8
|
</div>
|
@@ -19,27 +19,27 @@
|
|
19
19
|
|
20
20
|
<table class="no-border">
|
21
21
|
<tr>
|
22
|
-
<td
|
23
|
-
<td><%=
|
24
|
-
<td
|
22
|
+
<td><%= t_m 'LicenseGroup' -%></td>
|
23
|
+
<td><%= t_m 'PettanrPettanCommonsV01Licenses::Attribute' -%></td>
|
24
|
+
<td><%= t('pettanr_pettan_commons_v01_licenses.selected') -%></td>
|
25
25
|
</tr>
|
26
26
|
<tr>
|
27
|
-
<td
|
27
|
+
<td><%= t_m 'PettanrPettanCommonsV01Licenses::Attribute.license_id' -%></td>
|
28
28
|
<td><%= collection_select :pettan_commons_license, :license_id, @license_group.licenses.map {|l| [l.caption, l.id] }, :last, :first -%></td>
|
29
|
-
<td
|
29
|
+
<td><%= t('pettanr_pettan_commons_v01_licenses.no_blank') -%></td>
|
30
30
|
</tr>
|
31
31
|
<tr>
|
32
|
-
<td
|
32
|
+
<td><%= t_m 'PettanrPettanCommonsV01Licenses::Attribute.artist_name' -%></td>
|
33
33
|
<td><%= text_field_tag 'pettan_commons_license[artist_name]', @pettan_commons_license.artist_name -%></td>
|
34
|
-
<td
|
34
|
+
<td><%= t('pettanr_pettan_commons_v01_licenses.no_blank') -%></td>
|
35
35
|
</tr>
|
36
36
|
<tr>
|
37
|
-
<td
|
37
|
+
<td><%= t_m 'PettanrPettanCommonsV01Licenses::Attribute.caption' -%></td>
|
38
38
|
<td><%= text_field_tag 'pettan_commons_license[caption]', @pettan_commons_license.caption -%></td>
|
39
39
|
<td></td>
|
40
40
|
</tr>
|
41
41
|
<tr>
|
42
|
-
<td
|
42
|
+
<td><%= t_m 'PettanrPettanCommonsV01Licenses::Attribute.sources' -%></td>
|
43
43
|
<td><%= text_area_tag 'pettan_commons_license[sources]', @pettan_commons_license.sources -%></td>
|
44
44
|
<td></td>
|
45
45
|
</tr>
|
@@ -50,6 +50,6 @@
|
|
50
50
|
<%= hidden_field_tag 'original_picture_license_group[license_group_id]', @original_picture_license_group.license_group_id %>
|
51
51
|
|
52
52
|
<div class="actions">
|
53
|
-
<%= submit_tag
|
53
|
+
<%= submit_tag t('pettanr_pettan_commons_v01_licenses.next') %>
|
54
54
|
</div>
|
55
55
|
<% end %>
|
@@ -13,23 +13,23 @@
|
|
13
13
|
</td>
|
14
14
|
</tr>
|
15
15
|
<tr>
|
16
|
-
<td
|
17
|
-
<td><%= h(picture.artist_name) -%></td>
|
18
|
-
</tr>
|
19
|
-
<tr>
|
20
|
-
<td>License Group</td>
|
16
|
+
<td><%= t_m 'PettanrPettanCommonsV01Licenses::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
|
20
|
+
<td><%= t_m 'PettanrPettanCommonsV01Licenses::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
|
24
|
+
<td><%= t_m 'PettanrPettanCommonsV01Licenses::Attribute.artist_name' -%></td>
|
25
|
+
<td><%= h(picture.artist_name) -%></td>
|
26
|
+
</tr>
|
27
|
+
<tr>
|
28
|
+
<td><%= t_m 'PettanrPettanCommonsV01Licenses::Attribute.caption' -%></td>
|
29
29
|
<td><%= h picture.credit_data['caption'] -%></td>
|
30
30
|
</tr>
|
31
31
|
<tr>
|
32
|
-
<td
|
32
|
+
<td><%= t_m 'PettanrPettanCommonsV01Licenses::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
|
-
|
2
|
-
<img src="<%= @original_picture.url -%>">
|
1
|
+
<%= tag(:img, @original_picture.opt_img_tag) -%>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
ja:
|
2
|
+
activerecord:
|
3
|
+
models:
|
4
|
+
pettanr_pettan_commons_v01_licenses/attribute: ぺったんコモンズ0.1
|
5
|
+
attributes:
|
6
|
+
pettanr_pettan_commons_v01_licenses/attribute:
|
7
|
+
license_id: ライセンス
|
8
|
+
artist_name: 著作者名
|
9
|
+
caption: 作品のタイトル
|
10
|
+
artist_url: 著作者のサイト
|
11
|
+
sources: 元作品のurl
|
12
|
+
pettanr_pettan_commons_v01_licenses:
|
13
|
+
title: 画像の公開(ライセンスの選択)
|
14
|
+
selected: 選択されています
|
15
|
+
no_blank: 必須項目
|
16
|
+
next: 次へ
|
17
|
+
digest_credit: クレジット
|
18
|
+
full_credit: クレジット完全版
|
19
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pettanr_pettan_commons_v01_licenses
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
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-
|
12
|
+
date: 2012-12-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &24285528 !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: *
|
24
|
+
version_requirements: *24285528
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: sqlite3
|
27
|
-
requirement: &
|
27
|
+
requirement: &24285000 !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: *
|
35
|
+
version_requirements: *24285000
|
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_commons_v01_licenses/attributes/_form.html.erb
|
58
58
|
- app/views/pettanr_pettan_commons_v01_licenses/attributes/_full_credit.html.erb
|
59
59
|
- app/views/pettanr_pettan_commons_v01_licenses/attributes/_note.html.erb
|
60
|
+
- config/locales/pettanr_pettan_commons_v01_licenses.ja.yml
|
60
61
|
- config/routes.rb
|
61
62
|
- db/b1.png
|
62
63
|
- db/b2.png
|