tkh_illustrations 0.1 → 0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +6 -0
- data/app/controllers/headers_controller.rb +2 -2
- data/app/controllers/illustrations_controller.rb +2 -2
- data/app/views/headers/_form.html.erb +2 -2
- data/app/views/headers/_tab_admin_menu.html.erb +6 -0
- data/app/views/headers/edit.html.erb +4 -0
- data/app/views/headers/index.html.erb +10 -8
- data/app/views/headers/new.html.erb +4 -0
- data/app/views/headers/show.html.erb +7 -5
- data/app/views/illustrations/_form.html.erb +3 -3
- data/app/views/illustrations/_tab_admin_menu.html.erb +6 -0
- data/app/views/illustrations/edit.html.erb +4 -0
- data/app/views/illustrations/index.html.erb +10 -8
- data/app/views/illustrations/new.html.erb +4 -0
- data/app/views/illustrations/show.html.erb +6 -4
- data/lib/generators/tkh_illustrations/create_or_update_locales/templates/de.yml +50 -7
- data/lib/generators/tkh_illustrations/create_or_update_locales/templates/en.yml +47 -5
- data/lib/generators/tkh_illustrations/create_or_update_locales/templates/es.yml +48 -4
- data/lib/generators/tkh_illustrations/create_or_update_locales/templates/fr.yml +50 -8
- data/lib/generators/tkh_illustrations/create_or_update_locales/templates/it.yml +55 -0
- data/lib/tkh_illustrations/version.rb +1 -1
- metadata +7 -4
data/CHANGELOG.md
CHANGED
@@ -26,7 +26,7 @@ class HeadersController < ApplicationController
|
|
26
26
|
def create
|
27
27
|
@header = Header.new(params[:header])
|
28
28
|
if @header.save
|
29
|
-
redirect_to @header, notice: '
|
29
|
+
redirect_to @header, notice: t('headers.create.notice')
|
30
30
|
else
|
31
31
|
render action: "new", layout: 'admin'
|
32
32
|
end
|
@@ -35,7 +35,7 @@ class HeadersController < ApplicationController
|
|
35
35
|
def update
|
36
36
|
@header = Header.find(params[:id])
|
37
37
|
if @header.update_attributes(params[:header])
|
38
|
-
redirect_to @header, notice: '
|
38
|
+
redirect_to @header, notice: t('headers.update.notice')
|
39
39
|
else
|
40
40
|
render action: "edit", layout: 'admin'
|
41
41
|
end
|
@@ -26,7 +26,7 @@ class IllustrationsController < ApplicationController
|
|
26
26
|
def create
|
27
27
|
@illustration = Illustration.new(params[:illustration])
|
28
28
|
if @illustration.save
|
29
|
-
redirect_to @illustration, notice: '
|
29
|
+
redirect_to @illustration, notice: t('illustrations.create.notice')
|
30
30
|
else
|
31
31
|
render action: "new", layout: 'admin'
|
32
32
|
end
|
@@ -35,7 +35,7 @@ class IllustrationsController < ApplicationController
|
|
35
35
|
def update
|
36
36
|
@illustration = Illustration.find(params[:id])
|
37
37
|
if @illustration.update_attributes(params[:illustration])
|
38
|
-
redirect_to @illustration, notice: '
|
38
|
+
redirect_to @illustration, notice: t('illustrations.update.notice')
|
39
39
|
else
|
40
40
|
render action: "edit", layout: 'admin'
|
41
41
|
end
|
@@ -2,12 +2,12 @@
|
|
2
2
|
<%= f.error_notification %>
|
3
3
|
|
4
4
|
<div class="form-inputs">
|
5
|
-
<%= f.input :photo, hint:
|
5
|
+
<%= f.input :photo, hint: t('headers.hint.photo') %>
|
6
6
|
<%= f.input :name %>
|
7
7
|
</div>
|
8
8
|
|
9
9
|
<div class="form-actions">
|
10
10
|
<%= f.button :submit, :class => 'btn btn-primary' %>
|
11
|
-
<%= link_to '
|
11
|
+
<%= link_to t('headers.cancel'), headers_path, :class => 'btn' %>
|
12
12
|
</div>
|
13
13
|
<% end %>
|
@@ -0,0 +1,6 @@
|
|
1
|
+
<ul class="nav nav-tabs" id="admin-menu-tab">
|
2
|
+
<%= content_tag :li, link_to(t('new'), new_header_path), ({ class: 'active' } if controller.action_name.to_s == 'new' ) %>
|
3
|
+
<%= content_tag :li, link_to(t('list'), headers_path), ({ class: 'active' } if controller.action_name.to_s == 'index' ) %>
|
4
|
+
<%= content_tag :li, link_to(t('view'), headers_path), ({ class: 'active' }) if controller.action_name.to_s == 'show' %>
|
5
|
+
<%= content_tag :li, link_to(t('edit'), headers_path), ({ class: 'active' }) if controller.action_name.to_s == 'edit' %>
|
6
|
+
</ul>
|
@@ -1,11 +1,13 @@
|
|
1
|
-
<h1
|
1
|
+
<h1><%= t('activerecord.models.headers') %></h1>
|
2
|
+
|
3
|
+
<%= render 'tab_admin_menu' %>
|
2
4
|
|
3
5
|
<table class='table table-striped'>
|
4
6
|
<thead>
|
5
7
|
<tr>
|
6
|
-
<th
|
7
|
-
<th
|
8
|
-
<th
|
8
|
+
<th><%= t('activerecord.attributes.header.photo') %></th>
|
9
|
+
<th><%= t('name_and_paths') %></th>
|
10
|
+
<th><%= t('actions') %></th>
|
9
11
|
</tr>
|
10
12
|
</thead>
|
11
13
|
|
@@ -14,12 +16,12 @@
|
|
14
16
|
<tr>
|
15
17
|
<td><%= link_to image_tag(header.photo.thumbnail), header %></td>
|
16
18
|
<td>
|
17
|
-
<h3><%= header.name %> | <%= link_to('
|
19
|
+
<h3><%= header.name %> | <%= link_to(t('see_all_resolutions'), header) %></h3>
|
18
20
|
<b>Thumbnail</b> path: <%= header.photo.thumbnail %><br />
|
19
21
|
<b>Large</b> path: <%= header.photo.large %><br />
|
20
22
|
</td>
|
21
|
-
<td><%= link_to '
|
22
|
-
<%= link_to 'Destroy', header, method: :delete, data: { confirm: '
|
23
|
+
<td><%= link_to t('edit'), edit_header_path(header), class: 'btn btn-mini' %>
|
24
|
+
<%= link_to 'Destroy', header, method: :delete, data: { confirm: t('are_you_sure') }, class: 'btn btn-mini btn-danger' %></td>
|
23
25
|
</tr>
|
24
26
|
<% end %>
|
25
27
|
</tbody>
|
@@ -27,6 +29,6 @@
|
|
27
29
|
|
28
30
|
<%= will_paginate @headers %>
|
29
31
|
|
30
|
-
<%= link_to '
|
32
|
+
<%= link_to t('headers.create.new'), new_header_path, class: 'btn btn-primary' %>
|
31
33
|
|
32
34
|
<%= render 'shared/admin_sidebar' %>
|
@@ -1,16 +1,18 @@
|
|
1
1
|
<% content_for :meta_title, @header.name %>
|
2
2
|
<% content_for :meta_description, @header.name %>
|
3
3
|
|
4
|
-
<h1
|
4
|
+
<h1><%= t('activerecord.models.headers') %></h1>
|
5
5
|
|
6
|
-
|
6
|
+
<%= render 'tab_admin_menu' %>
|
7
|
+
|
8
|
+
<h3><%= t('name')t('colon') %> <%= @header.name %></h3>
|
7
9
|
<p>
|
8
10
|
<%= image_tag @header.photo.thumbnail %><br /><%= @header.photo.thumbnail %><br /><br />
|
9
11
|
<%= image_tag @header.photo.large %><br /><%= @header.photo.large %>
|
10
12
|
</p>
|
11
13
|
|
12
|
-
<%= link_to 'edit', edit_header_path(@header), :class => 'btn btn-
|
13
|
-
<%= link_to 'all
|
14
|
-
<%= link_to '
|
14
|
+
<%= link_to t('edit'), edit_header_path(@header), :class => 'btn btn-primary' %>
|
15
|
+
<%= link_to t('headers.all'), headers_path, class: 'btn' %>
|
16
|
+
<%= link_to t('headers.upload_new'), new_header_path, class: 'btn ' %>
|
15
17
|
|
16
18
|
<%= render 'shared/admin_sidebar' %>
|
@@ -2,12 +2,12 @@
|
|
2
2
|
<%= f.error_notification %>
|
3
3
|
|
4
4
|
<div class="form-inputs">
|
5
|
-
<%= f.input :image %>
|
6
|
-
<%= f.input :name %>
|
5
|
+
<%= f.input :image, label: t('activerecord.attributes.illustration.image') %>
|
6
|
+
<%= f.input :name, label: t('activerecord.attributes.illustration.name') %>
|
7
7
|
</div>
|
8
8
|
|
9
9
|
<div class="form-actions">
|
10
10
|
<%= f.button :submit, :class => 'btn btn-primary' %>
|
11
|
-
<%= link_to '
|
11
|
+
<%= link_to t('illustrations.cancel'), illustrations_path, :class => 'btn' %>
|
12
12
|
</div>
|
13
13
|
<% end %>
|
@@ -0,0 +1,6 @@
|
|
1
|
+
<ul class="nav nav-tabs" id="admin-menu-tab">
|
2
|
+
<%= content_tag :li, link_to(t('new'), new_illustration_path), ({ class: 'active' } if controller.action_name.to_s == 'new' ) %>
|
3
|
+
<%= content_tag :li, link_to(t('list'), illustrations_path), ({ class: 'active' } if controller.action_name.to_s == 'index' ) %>
|
4
|
+
<%= content_tag :li, link_to(t('view'), illustrations_path), ({ class: 'active' }) if controller.action_name.to_s == 'show' %>
|
5
|
+
<%= content_tag :li, link_to(t('edit'), illustrations_path), ({ class: 'active' }) if controller.action_name.to_s == 'edit' %>
|
6
|
+
</ul>
|
@@ -1,11 +1,13 @@
|
|
1
|
-
<h1
|
1
|
+
<h1><%= t('activerecord.models.illustrations') %></h1>
|
2
|
+
|
3
|
+
<%= render 'tab_admin_menu' %>
|
2
4
|
|
3
5
|
<table class='table table-striped'>
|
4
6
|
<thead>
|
5
7
|
<tr>
|
6
|
-
<th
|
7
|
-
<th
|
8
|
-
<th
|
8
|
+
<th><%= t('activerecord.models.illustration') %></th>
|
9
|
+
<th><%= t('name_and_paths') %></th>
|
10
|
+
<th><%= t('actions') %></th>
|
9
11
|
</tr>
|
10
12
|
</thead>
|
11
13
|
|
@@ -14,15 +16,15 @@
|
|
14
16
|
<tr>
|
15
17
|
<td><%= link_to image_tag(illustration.image.thumbnail), illustration %></td>
|
16
18
|
<td>
|
17
|
-
<h3><%= illustration.name %> | <%= link_to('
|
19
|
+
<h3><%= illustration.name %> | <%= link_to(t('see_all_resolutions'), illustration) %></h3>
|
18
20
|
<b>Thumbnail</b> path: <%= illustration.image.thumbnail %><br />
|
19
21
|
<b>Small</b> path: <%= illustration.image.small %><br />
|
20
22
|
<b>Medium</b> path: <%= illustration.image.medium %><br />
|
21
23
|
<b>Large</b> path: <%= illustration.image.large %><br />
|
22
24
|
<b>XL</b> path: <%= illustration.image.xl %>
|
23
25
|
</td>
|
24
|
-
<td><%= link_to '
|
25
|
-
<%= link_to '
|
26
|
+
<td><%= link_to t('edit'), edit_illustration_path(illustration), class: 'btn btn-mini' %>
|
27
|
+
<%= link_to t('delete'), illustration, method: :delete, data: { confirm: t('are_you_sure') }, class: 'btn btn-mini btn-danger' %></td>
|
26
28
|
</tr>
|
27
29
|
<% end %>
|
28
30
|
</tbody>
|
@@ -30,6 +32,6 @@
|
|
30
32
|
|
31
33
|
<%= will_paginate @illustrations %>
|
32
34
|
|
33
|
-
<%= link_to '
|
35
|
+
<%= link_to t('illustrations.create.new'), new_illustration_path, class: 'btn btn-primary' %>
|
34
36
|
|
35
37
|
<%= render 'shared/admin_sidebar' %>
|
@@ -1,7 +1,9 @@
|
|
1
1
|
<% content_for :meta_title, @illustration.name %>
|
2
2
|
<% content_for :meta_description, @illustration.name %>
|
3
3
|
|
4
|
-
<h1
|
4
|
+
<h1><%= t('activerecord.models.illustrations') %></h1>
|
5
|
+
|
6
|
+
<%= render 'tab_admin_menu' %>
|
5
7
|
|
6
8
|
<h3>Name: <%= @illustration.name %></h3>
|
7
9
|
<p>
|
@@ -12,8 +14,8 @@
|
|
12
14
|
<%= image_tag @illustration.image.xl %><br /><%= @illustration.image.xl %>
|
13
15
|
</p>
|
14
16
|
|
15
|
-
<%= link_to '
|
16
|
-
<%= link_to '
|
17
|
-
<%= link_to '
|
17
|
+
<%= link_to t('edit'), edit_illustration_path(@illustration), :class => 'btn btn-primary' %>
|
18
|
+
<%= link_to t('illustrations.all'), illustrations_path, class: 'btn' %>
|
19
|
+
<%= link_to t('illustrations.upload_new'), new_illustration_path, class: 'btn' %>
|
18
20
|
|
19
21
|
<%= render 'shared/admin_sidebar' %>
|
@@ -1,10 +1,53 @@
|
|
1
|
-
|
1
|
+
en:
|
2
|
+
|
3
|
+
activerecord:
|
4
|
+
models:
|
5
|
+
header: 'header graphic'
|
6
|
+
headers: 'header graphics'
|
7
|
+
illustration: 'illustration'
|
8
|
+
illustrations: 'illustrations'
|
2
9
|
|
3
|
-
activerecord:
|
4
10
|
attributes:
|
5
|
-
illustration:
|
6
|
-
image: 'Bild'
|
7
|
-
name: "Name"
|
8
11
|
header:
|
9
|
-
photo: '
|
10
|
-
name: "
|
12
|
+
photo: 'photo'
|
13
|
+
name: "name"
|
14
|
+
illustration:
|
15
|
+
image: 'image'
|
16
|
+
name: "name"
|
17
|
+
|
18
|
+
|
19
|
+
headers:
|
20
|
+
all: 'all header graphics'
|
21
|
+
cancel: 'cancel and view all header graphics'
|
22
|
+
upload_new: 'upload new header graphic'
|
23
|
+
|
24
|
+
hint:
|
25
|
+
photo: "Ideally all header photos should have the following characteristics: 72 dpi; a width of at least 1,170 pixels; a ratio of 1170X273"
|
26
|
+
|
27
|
+
create:
|
28
|
+
new: 'create new header graphic'
|
29
|
+
notice: 'Header graphic was successfully created.'
|
30
|
+
update:
|
31
|
+
notice: 'Header graphic was successfully updated.'
|
32
|
+
|
33
|
+
illustrations:
|
34
|
+
all: 'all illustrations'
|
35
|
+
cancel: 'cancel and view all illustrations'
|
36
|
+
upload_new: 'upload new illustration'
|
37
|
+
|
38
|
+
create:
|
39
|
+
new: 'create new illustration'
|
40
|
+
notice: 'Illustration was successfully created.'
|
41
|
+
update:
|
42
|
+
notice: 'Illustration was successfully updated.'
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
name_and_paths: 'name and paths'
|
47
|
+
see_all_resolutions: 'See all resolutions'
|
48
|
+
|
49
|
+
errors:
|
50
|
+
messages:
|
51
|
+
carrierwave_processing_error: "Cannot resize image."
|
52
|
+
carrierwave_integrity_error: "Not an image."
|
53
|
+
carrierwave_download_error: "Couldn't download image."
|
@@ -1,11 +1,53 @@
|
|
1
1
|
en:
|
2
2
|
|
3
|
-
activerecord:
|
3
|
+
activerecord:
|
4
|
+
models:
|
5
|
+
header: 'header graphic'
|
6
|
+
headers: 'header graphics'
|
7
|
+
illustration: 'illustration'
|
8
|
+
illustrations: 'illustrations'
|
9
|
+
|
4
10
|
attributes:
|
5
|
-
illustration:
|
6
|
-
image: 'image'
|
7
|
-
name: "name"
|
8
11
|
header:
|
9
12
|
photo: 'photo'
|
10
13
|
name: "name"
|
11
|
-
|
14
|
+
illustration:
|
15
|
+
image: 'image'
|
16
|
+
name: "name"
|
17
|
+
|
18
|
+
|
19
|
+
headers:
|
20
|
+
all: 'all header graphics'
|
21
|
+
cancel: 'cancel and view all header graphics'
|
22
|
+
upload_new: 'upload new header graphic'
|
23
|
+
|
24
|
+
hint:
|
25
|
+
photo: "Ideally all header photos should have the following characteristics: 72 dpi; a width of at least 1,170 pixels; a ratio of 1170X273"
|
26
|
+
|
27
|
+
create:
|
28
|
+
new: 'create new header graphic'
|
29
|
+
notice: 'Header graphic was successfully created.'
|
30
|
+
update:
|
31
|
+
notice: 'Header graphic was successfully updated.'
|
32
|
+
|
33
|
+
illustrations:
|
34
|
+
all: 'all illustrations'
|
35
|
+
cancel: 'cancel and view all illustrations'
|
36
|
+
upload_new: 'upload new illustration'
|
37
|
+
|
38
|
+
create:
|
39
|
+
new: 'create new illustration'
|
40
|
+
notice: 'Illustration was successfully created.'
|
41
|
+
update:
|
42
|
+
notice: 'Illustration was successfully updated.'
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
name_and_paths: 'name and paths'
|
47
|
+
see_all_resolutions: 'See all resolutions'
|
48
|
+
|
49
|
+
errors:
|
50
|
+
messages:
|
51
|
+
carrierwave_processing_error: "Cannot resize image."
|
52
|
+
carrierwave_integrity_error: "Not an image."
|
53
|
+
carrierwave_download_error: "Couldn't download image."
|
@@ -1,10 +1,54 @@
|
|
1
1
|
es:
|
2
2
|
|
3
|
-
activerecord:
|
3
|
+
activerecord:
|
4
|
+
models:
|
5
|
+
header: 'header graphic'
|
6
|
+
headers: 'header graphics'
|
7
|
+
illustration: 'illustration'
|
8
|
+
illustrations: 'illustrations'
|
9
|
+
|
4
10
|
attributes:
|
11
|
+
header:
|
12
|
+
photo: 'photo_es'
|
13
|
+
name: "nombre"
|
5
14
|
illustration:
|
6
15
|
image: 'imagen'
|
7
16
|
name: "nombre"
|
8
|
-
|
9
|
-
|
10
|
-
|
17
|
+
|
18
|
+
|
19
|
+
headers:
|
20
|
+
all: 'all header graphics'
|
21
|
+
cancel: 'cancel and view all header graphics'
|
22
|
+
name_and_paths: 'name and paths'
|
23
|
+
upload_new: 'upload new header graphic'
|
24
|
+
|
25
|
+
hint:
|
26
|
+
photo: "Ideally all header photos should have the following characteristics: 72 dpi; a width of at least 1,170 pixels; a ratio of 1170X273"
|
27
|
+
|
28
|
+
create:
|
29
|
+
new: 'create new header graphic'
|
30
|
+
notice: 'Header graphic was successfully created.'
|
31
|
+
update:
|
32
|
+
notice: 'Header graphic was successfully updated.'
|
33
|
+
|
34
|
+
illustrations:
|
35
|
+
all: 'all illustrations'
|
36
|
+
cancel: 'cancel and view all illustrations'
|
37
|
+
name_and_paths: 'name and paths'
|
38
|
+
upload_new: 'upload new illustration'
|
39
|
+
|
40
|
+
create:
|
41
|
+
new: 'create new illustration'
|
42
|
+
notice: 'Illustration was successfully created.'
|
43
|
+
update:
|
44
|
+
notice: 'Illustration was successfully updated.'
|
45
|
+
|
46
|
+
|
47
|
+
name_and_paths: 'name and paths'
|
48
|
+
see_all_resolutions: 'See all resolutions'
|
49
|
+
|
50
|
+
errors:
|
51
|
+
messages:
|
52
|
+
carrierwave_processing_error: "Cannot resize image."
|
53
|
+
carrierwave_integrity_error: "Not an image."
|
54
|
+
carrierwave_download_error: "Couldn't download image."
|
@@ -1,10 +1,52 @@
|
|
1
1
|
fr:
|
2
2
|
|
3
|
-
activerecord:
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
3
|
+
activerecord:
|
4
|
+
models:
|
5
|
+
header: 'en-tête graphique'
|
6
|
+
headers: 'les en-tête graphiques'
|
7
|
+
illustration: 'illustration'
|
8
|
+
illustrations: 'les illustrations'
|
9
|
+
|
10
|
+
attributes:
|
11
|
+
header:
|
12
|
+
photo: 'photo'
|
13
|
+
name: "nom"
|
14
|
+
illustration:
|
15
|
+
image: 'image'
|
16
|
+
name: "nom"
|
17
|
+
|
18
|
+
|
19
|
+
headers:
|
20
|
+
all: 'liste des en-tête graphiques'
|
21
|
+
cancel: 'annuler et aller à la liste des graphiques'
|
22
|
+
upload_new: 'télécharger un nouvel en-tête graphique'
|
23
|
+
|
24
|
+
hint:
|
25
|
+
photo: "Idéalement, les graphiques doivent avoir ces caractéristiques : 72 dpi; largeur d'au moins 1,170 pixels; un ratio de 1170x273"
|
26
|
+
|
27
|
+
create:
|
28
|
+
notice: 'Cet en-tête graphique a bien été créé.'
|
29
|
+
update:
|
30
|
+
notice: 'Cet en-tête graphique a bien été mis à jour.'
|
31
|
+
|
32
|
+
illustrations:
|
33
|
+
all: 'liste des illustrations'
|
34
|
+
cancel: 'annuler et aller à la liste des illustrations'
|
35
|
+
name_and_paths: 'nom et chemins des fichiers'
|
36
|
+
upload_new: 'télécharger une nouvelle illustration'
|
37
|
+
|
38
|
+
create:
|
39
|
+
new: 'créer une nouvelle illustration'
|
40
|
+
notice: 'Cette illustration a bien été créée.'
|
41
|
+
update:
|
42
|
+
notice: 'Cette illustration a bien été mise à jour.'
|
43
|
+
|
44
|
+
|
45
|
+
name_and_paths: 'nom et chemins des fichiers'
|
46
|
+
see_all_resolutions: 'Voir toutes les résolutions'
|
47
|
+
|
48
|
+
errors:
|
49
|
+
messages:
|
50
|
+
carrierwave_processing_error: "l'image n'a pas pu être redimensionnée."
|
51
|
+
carrierwave_integrity_error: "Ce n'est pas une image."
|
52
|
+
carrierwave_download_error: "L'image n'a pu être téléchargée."
|
@@ -0,0 +1,55 @@
|
|
1
|
+
it:
|
2
|
+
|
3
|
+
activerecord:
|
4
|
+
models:
|
5
|
+
header: 'header graphic'
|
6
|
+
headers: 'header graphics'
|
7
|
+
illustration: 'illustration'
|
8
|
+
illustrations: 'illustrations'
|
9
|
+
|
10
|
+
attributes:
|
11
|
+
header:
|
12
|
+
photo: 'photo'
|
13
|
+
name: "name"
|
14
|
+
illustration:
|
15
|
+
image: 'image'
|
16
|
+
name: "name"
|
17
|
+
|
18
|
+
|
19
|
+
headers:
|
20
|
+
all: 'all header graphics'
|
21
|
+
cancel: 'cancel and view all header graphics'
|
22
|
+
name_and_paths: 'name and paths'
|
23
|
+
upload_new: 'upload new header graphic'
|
24
|
+
|
25
|
+
hint:
|
26
|
+
photo: "Ideally all header photos should have the following characteristics: 72 dpi; a width of at least 1,170 pixels; a ratio of 1170X273"
|
27
|
+
|
28
|
+
create:
|
29
|
+
new: 'create new header graphic'
|
30
|
+
notice: 'Header graphic was successfully created.'
|
31
|
+
update:
|
32
|
+
notice: 'Header graphic was successfully updated.'
|
33
|
+
|
34
|
+
|
35
|
+
illustrations:
|
36
|
+
all: 'all illustrations'
|
37
|
+
cancel: 'cancel and view all illustrations'
|
38
|
+
name_and_paths: 'name and paths'
|
39
|
+
upload_new: 'upload new illustration'
|
40
|
+
|
41
|
+
create:
|
42
|
+
new: 'create new illustration'
|
43
|
+
notice: 'Illustration was successfully created.'
|
44
|
+
update:
|
45
|
+
notice: 'Illustration was successfully updated.'
|
46
|
+
|
47
|
+
|
48
|
+
name_and_paths: 'name and paths'
|
49
|
+
see_all_resolutions: 'See all resolutions'
|
50
|
+
|
51
|
+
errors:
|
52
|
+
messages:
|
53
|
+
carrierwave_processing_error: "Cannot resize image."
|
54
|
+
carrierwave_integrity_error: "Not an image."
|
55
|
+
carrierwave_download_error: "Couldn't download image."
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tkh_illustrations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.2'
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-01-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -153,11 +153,13 @@ files:
|
|
153
153
|
- app/uploaders/image_uploader.rb
|
154
154
|
- app/uploaders/photo_uploader.rb
|
155
155
|
- app/views/headers/_form.html.erb
|
156
|
+
- app/views/headers/_tab_admin_menu.html.erb
|
156
157
|
- app/views/headers/edit.html.erb
|
157
158
|
- app/views/headers/index.html.erb
|
158
159
|
- app/views/headers/new.html.erb
|
159
160
|
- app/views/headers/show.html.erb
|
160
161
|
- app/views/illustrations/_form.html.erb
|
162
|
+
- app/views/illustrations/_tab_admin_menu.html.erb
|
161
163
|
- app/views/illustrations/edit.html.erb
|
162
164
|
- app/views/illustrations/index.html.erb
|
163
165
|
- app/views/illustrations/new.html.erb
|
@@ -168,6 +170,7 @@ files:
|
|
168
170
|
- lib/generators/tkh_illustrations/create_or_update_locales/templates/en.yml
|
169
171
|
- lib/generators/tkh_illustrations/create_or_update_locales/templates/es.yml
|
170
172
|
- lib/generators/tkh_illustrations/create_or_update_locales/templates/fr.yml
|
173
|
+
- lib/generators/tkh_illustrations/create_or_update_locales/templates/it.yml
|
171
174
|
- lib/generators/tkh_illustrations/create_or_update_migrations/create_or_update_migrations_generator.rb
|
172
175
|
- lib/generators/tkh_illustrations/create_or_update_migrations/templates/add_translation_of_name_to_illustrations.rb
|
173
176
|
- lib/generators/tkh_illustrations/create_or_update_migrations/templates/create_headers.rb
|
@@ -223,7 +226,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
223
226
|
version: '0'
|
224
227
|
segments:
|
225
228
|
- 0
|
226
|
-
hash: -
|
229
|
+
hash: -2837421847544288073
|
227
230
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
228
231
|
none: false
|
229
232
|
requirements:
|
@@ -232,7 +235,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
232
235
|
version: '0'
|
233
236
|
segments:
|
234
237
|
- 0
|
235
|
-
hash: -
|
238
|
+
hash: -2837421847544288073
|
236
239
|
requirements: []
|
237
240
|
rubyforge_project:
|
238
241
|
rubygems_version: 1.8.23
|