udongo 5.5.0 → 5.6.0
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.
- checksums.yaml +4 -4
- data/app/assets/fonts/FontAwesome.otf +0 -0
- data/app/assets/fonts/fontawesome-webfont.eot +0 -0
- data/app/assets/fonts/fontawesome-webfont.svg +2668 -682
- data/app/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/app/assets/fonts/fontawesome-webfont.woff +0 -0
- data/app/assets/fonts/fontawesome-webfont.woff2 +0 -0
- data/app/assets/stylesheets/backend/font-awesome.scss +57 -11
- data/app/controllers/backend/articles/base_controller.rb +1 -1
- data/app/decorators/page_decorator.rb +8 -0
- data/app/helpers/page_helper.rb +5 -0
- data/app/views/backend/articles/edit.html.erb +1 -1
- data/app/views/backend/articles/edit_translation.html.erb +1 -1
- data/app/views/backend/articles/images/index.html.erb +1 -1
- data/app/views/backend/articles/index.html.erb +1 -1
- data/app/views/backend/assets/index.html.erb +1 -1
- data/app/views/backend/snippets/edit_translation.html.erb +7 -3
- data/changelog.md +14 -0
- data/config/locales/en_backend.yml +11 -5
- data/config/locales/nl_backend.yml +2 -1
- data/config/locales/nl_general.yml +0 -14
- data/db/migrate/20170318184654_add_title_and_content_disabled_to_snippet.rb +6 -0
- data/lib/udongo/version.rb +1 -1
- metadata +4 -3
- data/config/locales/en_general.yml +0 -17
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Font Awesome 4.
|
|
2
|
+
* Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome
|
|
3
3
|
* License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
|
|
4
4
|
*/
|
|
5
5
|
/* FONT PATH
|
|
6
6
|
* -------------------------- */
|
|
7
7
|
@font-face {
|
|
8
8
|
font-family: 'FontAwesome';
|
|
9
|
-
src: font-url('fontawesome-webfont.eot?v=4.
|
|
10
|
-
src: font-url('fontawesome-webfont.eot?#iefix&v=4.
|
|
11
|
-
font-url('fontawesome-webfont.woff2?v=4.
|
|
12
|
-
font-url('fontawesome-webfont.woff?v=4.
|
|
13
|
-
font-url('fontawesome-webfont.ttf?v=4.
|
|
14
|
-
font-url('fontawesome-webfont.svg?v=4.
|
|
9
|
+
src: font-url('fontawesome-webfont.eot?v=4.7.0');
|
|
10
|
+
src: font-url('fontawesome-webfont.eot?#iefix&v=4.7.0') format('embedded-opentype'),
|
|
11
|
+
font-url('fontawesome-webfont.woff2?v=4.7.0') format('woff2'),
|
|
12
|
+
font-url('fontawesome-webfont.woff?v=4.7.0') format('woff'),
|
|
13
|
+
font-url('fontawesome-webfont.ttf?v=4.7.0') format('truetype'),
|
|
14
|
+
font-url('fontawesome-webfont.svg?v=4.7.0#fontawesomeregular') format('svg');
|
|
15
15
|
font-weight: normal;
|
|
16
16
|
font-style: normal;
|
|
17
17
|
}
|
|
18
|
-
|
|
19
18
|
.fa {
|
|
20
19
|
display: inline-block;
|
|
21
20
|
font: normal normal normal 14px/1 FontAwesome;
|
|
@@ -582,7 +581,7 @@ $icon-eye-slash: "\f070";
|
|
|
582
581
|
.fa-stumbleupon:before { content: "\f1a4"; }
|
|
583
582
|
.fa-delicious:before { content: "\f1a5"; }
|
|
584
583
|
.fa-digg:before { content: "\f1a6"; }
|
|
585
|
-
.fa-pied-piper:before { content: "\f1a7"; }
|
|
584
|
+
.fa-pied-piper-pp:before { content: "\f1a7"; }
|
|
586
585
|
.fa-pied-piper-alt:before { content: "\f1a8"; }
|
|
587
586
|
.fa-drupal:before { content: "\f1a9"; }
|
|
588
587
|
.fa-joomla:before { content: "\f1aa"; }
|
|
@@ -620,7 +619,7 @@ $icon-eye-slash: "\f070";
|
|
|
620
619
|
.fa-jsfiddle:before { content: "\f1cc"; }
|
|
621
620
|
.fa-life-bouy:before, .fa-life-buoy:before, .fa-life-saver:before, .fa-support:before, .fa-life-ring:before { content: "\f1cd"; }
|
|
622
621
|
.fa-circle-o-notch:before { content: "\f1ce"; }
|
|
623
|
-
.fa-ra:before, .fa-rebel:before { content: "\f1d0"; }
|
|
622
|
+
.fa-ra:before, .fa-resistance:before, .fa-rebel:before { content: "\f1d0"; }
|
|
624
623
|
.fa-ge:before, .fa-empire:before { content: "\f1d1"; }
|
|
625
624
|
.fa-git-square:before { content: "\f1d2"; }
|
|
626
625
|
.fa-git:before { content: "\f1d3"; }
|
|
@@ -723,7 +722,7 @@ $icon-eye-slash: "\f070";
|
|
|
723
722
|
.fa-optin-monster:before { content: "\f23c"; }
|
|
724
723
|
.fa-opencart:before { content: "\f23d"; }
|
|
725
724
|
.fa-expeditedssl:before { content: "\f23e"; }
|
|
726
|
-
.fa-battery-4:before, .fa-battery-full:before { content: "\f240"; }
|
|
725
|
+
.fa-battery-4:before, .fa-battery:before, .fa-battery-full:before { content: "\f240"; }
|
|
727
726
|
.fa-battery-3:before, .fa-battery-three-quarters:before { content: "\f241"; }
|
|
728
727
|
.fa-battery-2:before, .fa-battery-half:before { content: "\f242"; }
|
|
729
728
|
.fa-battery-1:before, .fa-battery-quarter:before { content: "\f243"; }
|
|
@@ -827,6 +826,53 @@ $icon-eye-slash: "\f070";
|
|
|
827
826
|
.fa-snapchat:before { content: "\f2ab"; }
|
|
828
827
|
.fa-snapchat-ghost:before { content: "\f2ac"; }
|
|
829
828
|
.fa-snapchat-square:before { content: "\f2ad"; }
|
|
829
|
+
.fa-pied-piper:before { content: "\f2ae"; }
|
|
830
|
+
.fa-first-order:before { content: "\f2b0"; }
|
|
831
|
+
.fa-yoast:before { content: "\f2b1"; }
|
|
832
|
+
.fa-themeisle:before { content: "\f2b2"; }
|
|
833
|
+
.fa-google-plus-circle:before, .fa-google-plus-official:before { content: "\f2b3"; }
|
|
834
|
+
.fa-fa:before, .fa-font-awesome:before { content: "\f2b4"; }
|
|
835
|
+
.fa-handshake-o:before { content: "\f2b5"; }
|
|
836
|
+
.fa-envelope-open:before { content: "\f2b6"; }
|
|
837
|
+
.fa-envelope-open-o:before { content: "\f2b7"; }
|
|
838
|
+
.fa-linode:before { content: "\f2b8"; }
|
|
839
|
+
.fa-address-book:before { content: "\f2b9"; }
|
|
840
|
+
.fa-address-book-o:before { content: "\f2ba"; }
|
|
841
|
+
.fa-vcard:before, .fa-address-card:before { content: "\f2bb"; }
|
|
842
|
+
.fa-vcard-o:before, .fa-address-card-o:before { content: "\f2bc"; }
|
|
843
|
+
.fa-user-circle:before { content: "\f2bd"; }
|
|
844
|
+
.fa-user-circle-o:before { content: "\f2be"; }
|
|
845
|
+
.fa-user-o:before { content: "\f2c0"; }
|
|
846
|
+
.fa-id-badge:before { content: "\f2c1"; }
|
|
847
|
+
.fa-drivers-license:before, .fa-id-card:before { content: "\f2c2"; }
|
|
848
|
+
.fa-drivers-license-o:before, .fa-id-card-o:before { content: "\f2c3"; }
|
|
849
|
+
.fa-quora:before { content: "\f2c4"; }
|
|
850
|
+
.fa-free-code-camp:before { content: "\f2c5"; }
|
|
851
|
+
.fa-telegram:before { content: "\f2c6"; }
|
|
852
|
+
.fa-thermometer-4:before, .fa-thermometer:before, .fa-thermometer-full:before { content: "\f2c7"; }
|
|
853
|
+
.fa-thermometer-3:before, .fa-thermometer-three-quarters:before { content: "\f2c8"; }
|
|
854
|
+
.fa-thermometer-2:before, .fa-thermometer-half:before { content: "\f2c9"; }
|
|
855
|
+
.fa-thermometer-1:before, .fa-thermometer-quarter:before { content: "\f2ca"; }
|
|
856
|
+
.fa-thermometer-0:before, .fa-thermometer-empty:before { content: "\f2cb"; }
|
|
857
|
+
.fa-shower:before { content: "\f2cc"; }
|
|
858
|
+
.fa-bathtub:before, .fa-s15:before, .fa-bath:before { content: "\f2cd"; }
|
|
859
|
+
.fa-podcast:before { content: "\f2ce"; }
|
|
860
|
+
.fa-window-maximize:before { content: "\f2d0"; }
|
|
861
|
+
.fa-window-minimize:before { content: "\f2d1"; }
|
|
862
|
+
.fa-window-restore:before { content: "\f2d2"; }
|
|
863
|
+
.fa-times-rectangle:before, .fa-window-close:before { content: "\f2d3"; }
|
|
864
|
+
.fa-times-rectangle-o:before, .fa-window-close-o:before { content: "\f2d4"; }
|
|
865
|
+
.fa-bandcamp:before { content: "\f2d5"; }
|
|
866
|
+
.fa-grav:before { content: "\f2d6"; }
|
|
867
|
+
.fa-etsy:before { content: "\f2d7"; }
|
|
868
|
+
.fa-imdb:before { content: "\f2d8"; }
|
|
869
|
+
.fa-ravelry:before { content: "\f2d9"; }
|
|
870
|
+
.fa-eercast:before { content: "\f2da"; }
|
|
871
|
+
.fa-microchip:before { content: "\f2db"; }
|
|
872
|
+
.fa-snowflake-o:before { content: "\f2dc"; }
|
|
873
|
+
.fa-superpowers:before { content: "\f2dd"; }
|
|
874
|
+
.fa-wpexplorer:before { content: "\f2de"; }
|
|
875
|
+
.fa-meetup:before { content: "\f2e0"; }
|
|
830
876
|
|
|
831
877
|
.sr-only {
|
|
832
878
|
position: absolute;
|
|
@@ -2,7 +2,7 @@ class Backend::Articles::BaseController < Backend::BaseController
|
|
|
2
2
|
before_action :find_article
|
|
3
3
|
before_action do
|
|
4
4
|
breadcrumb.add t('b.articles'), backend_articles_path
|
|
5
|
-
breadcrumb.add @article.title
|
|
5
|
+
breadcrumb.add @article.title.to_s.truncate(40), edit_backend_article_path(@article)
|
|
6
6
|
end
|
|
7
7
|
|
|
8
8
|
def find_article
|
|
@@ -23,4 +23,12 @@ class PageDecorator < ApplicationDecorator
|
|
|
23
23
|
|
|
24
24
|
"/#{locale}/#{slugs.reverse.join('/')}"
|
|
25
25
|
end
|
|
26
|
+
|
|
27
|
+
def url(locale: I18n.locale, options: {})
|
|
28
|
+
prefix = Rails.configuration.force_ssl ? 'https://' : 'http://'
|
|
29
|
+
host = Udongo.config.base.host
|
|
30
|
+
params = { locale: locale, options: options }
|
|
31
|
+
|
|
32
|
+
"#{prefix}#{host}#{path(params)}"
|
|
33
|
+
end
|
|
26
34
|
end
|
|
@@ -13,10 +13,14 @@
|
|
|
13
13
|
</div>
|
|
14
14
|
|
|
15
15
|
<div class="card-block">
|
|
16
|
-
|
|
16
|
+
<% unless @model.title_disabled? %>
|
|
17
|
+
<%= f.input :title, as: :string %>
|
|
18
|
+
<% end %>
|
|
17
19
|
|
|
18
|
-
<%
|
|
19
|
-
|
|
20
|
+
<% unless @model.content_disabled? %>
|
|
21
|
+
<% content_type = @model.editor_for_content? ? :ckeditor : :text %>
|
|
22
|
+
<%= f.input :content, as: content_type %>
|
|
23
|
+
<% end %>
|
|
20
24
|
</div>
|
|
21
25
|
</div>
|
|
22
26
|
|
data/changelog.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
5.6.0 - 2017-03-18
|
|
2
|
+
--
|
|
3
|
+
* The article title is truncated to 40 chars in the overview and breadcrumbs.
|
|
4
|
+
* Add the PageHelper which contains ```#page(identifier)``` to easily fetch a
|
|
5
|
+
page from cache.
|
|
6
|
+
* The files nl_backend.yml and en_backend.yml have been synced.
|
|
7
|
+
* The files nl_general.yml and en_general.yml have been removed.
|
|
8
|
+
* Update the font-awesome icons from 4.6.1 to 4.7.0.
|
|
9
|
+
* You can now disable the snippet title/content so it won't show up in the
|
|
10
|
+
translation edit form (which sometimes confused people).
|
|
11
|
+
* Added PageDecorator#url because the ```only_path: false``` option seems to be
|
|
12
|
+
borked at this moment.
|
|
13
|
+
|
|
14
|
+
|
|
1
15
|
5.5.0 - 2017-03-13
|
|
2
16
|
--
|
|
3
17
|
* When an SEO form has a slug, it's automatically calculated based on the title.
|
|
@@ -10,6 +10,7 @@ en:
|
|
|
10
10
|
articles: Articles
|
|
11
11
|
author: Author
|
|
12
12
|
cancel: Cancel
|
|
13
|
+
choose_an_existing_image: Choose an existing image
|
|
13
14
|
content: Content
|
|
14
15
|
current_image: Current image
|
|
15
16
|
custom_title: Custom title
|
|
@@ -35,7 +36,8 @@ en:
|
|
|
35
36
|
general: General
|
|
36
37
|
house_number: House number
|
|
37
38
|
html_content: HTML content
|
|
38
|
-
|
|
39
|
+
image: Image
|
|
40
|
+
images: Images
|
|
39
41
|
last_changed_at: Last changed at
|
|
40
42
|
last_name: Last name
|
|
41
43
|
locale: Locale
|
|
@@ -78,7 +80,9 @@ en:
|
|
|
78
80
|
telephone: Telephone
|
|
79
81
|
title: Title
|
|
80
82
|
to: To
|
|
83
|
+
type: Type
|
|
81
84
|
up: Up
|
|
85
|
+
upload_a_new_image: Upload a new image
|
|
82
86
|
used: Used
|
|
83
87
|
user: User
|
|
84
88
|
users: Users
|
|
@@ -87,7 +91,7 @@ en:
|
|
|
87
91
|
visible: Visible
|
|
88
92
|
|
|
89
93
|
msg:
|
|
90
|
-
added: '%
|
|
94
|
+
added: '%{actor} was added.'
|
|
91
95
|
admins:
|
|
92
96
|
account_details: Account details
|
|
93
97
|
personal_details: Personal details
|
|
@@ -96,9 +100,9 @@ en:
|
|
|
96
100
|
content_types:
|
|
97
101
|
image: Image
|
|
98
102
|
text: Text
|
|
99
|
-
deleted: '%
|
|
103
|
+
deleted: '%{actor} was deleted.'
|
|
100
104
|
dirty_inputs_warning: "You are about to leave the page but your changes aren't saved yet.\nDo you still want to leave the page?"
|
|
101
|
-
edited: '%
|
|
105
|
+
edited: '%{actor} was edited.'
|
|
102
106
|
flexible_content:
|
|
103
107
|
add_column: Add column
|
|
104
108
|
add_row: Add row
|
|
@@ -119,8 +123,10 @@ en:
|
|
|
119
123
|
no_title_set: This item has not title.
|
|
120
124
|
pages:
|
|
121
125
|
invisible: Deze pagina is niet zichtbaar op de website.
|
|
122
|
-
|
|
126
|
+
please_select_a_valid_image: Please select a valid image and try again.
|
|
127
|
+
saved: '%{actor} was saved.'
|
|
123
128
|
seo: SEO
|
|
129
|
+
something_went_wrong: Something went wrong!
|
|
124
130
|
status_codes:
|
|
125
131
|
'301': 301 (Moved Permanently)
|
|
126
132
|
'303': 303 (See Other)
|
|
@@ -80,6 +80,7 @@ nl:
|
|
|
80
80
|
telephone: Telefoonnummer
|
|
81
81
|
title: Titel
|
|
82
82
|
to: Naar
|
|
83
|
+
type: Type
|
|
83
84
|
up: Omhoog
|
|
84
85
|
upload_a_new_image: Upload nieuwe afbeelding
|
|
85
86
|
used: Gebruikt
|
|
@@ -114,7 +115,7 @@ nl:
|
|
|
114
115
|
forgot_password: Wachtwoord vergeten?
|
|
115
116
|
general_form_error: Er trad een fout op. Controleer de gemarkeerde velden.
|
|
116
117
|
help_texts:
|
|
117
|
-
status_code: Meer info over het gebruik van status codes
|
|
118
|
+
status_code: Meer info over het gebruik van status codes.
|
|
118
119
|
incorrect_login: Ongeldige login gegevens.
|
|
119
120
|
navigation:
|
|
120
121
|
custom: Op maat
|
|
@@ -1,17 +1,3 @@
|
|
|
1
1
|
nl:
|
|
2
2
|
g:
|
|
3
|
-
address: Adres
|
|
4
|
-
cancel: Annuleren
|
|
5
|
-
category: Categorie
|
|
6
|
-
close: Sluiten
|
|
7
|
-
first_name: Voornaam
|
|
8
|
-
last_name: Achternaam
|
|
9
|
-
description: Beschrijving
|
|
10
|
-
email: E-mail
|
|
11
|
-
house_number: Huisnummer
|
|
12
|
-
name: Naam
|
|
13
|
-
save: Opslaan
|
|
14
|
-
search: Zoeken
|
|
15
|
-
subject: Onderwerp
|
|
16
|
-
telephone: Telefoon
|
|
17
3
|
type: Type
|
data/lib/udongo/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: udongo
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.
|
|
4
|
+
version: 5.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Davy Hellemans
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2017-03-
|
|
12
|
+
date: 2017-03-18 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|
|
@@ -505,6 +505,7 @@ files:
|
|
|
505
505
|
- app/helpers/backend/pagination_helper.rb
|
|
506
506
|
- app/helpers/icon_helper.rb
|
|
507
507
|
- app/helpers/link_helper.rb
|
|
508
|
+
- app/helpers/page_helper.rb
|
|
508
509
|
- app/helpers/snippet_helper.rb
|
|
509
510
|
- app/helpers/udongo_helper.rb
|
|
510
511
|
- app/inputs/date_picker_input.rb
|
|
@@ -669,7 +670,6 @@ files:
|
|
|
669
670
|
- config/locales/en.yml
|
|
670
671
|
- config/locales/en_backend.yml
|
|
671
672
|
- config/locales/en_forms.yml
|
|
672
|
-
- config/locales/en_general.yml
|
|
673
673
|
- config/locales/fr.yml
|
|
674
674
|
- config/locales/nl.yml
|
|
675
675
|
- config/locales/nl_backend.yml
|
|
@@ -754,6 +754,7 @@ files:
|
|
|
754
754
|
- db/migrate/20170225144523_create_assets.rb
|
|
755
755
|
- db/migrate/20170228183831_create_images.rb
|
|
756
756
|
- db/migrate/20170305125627_create_articles.rb
|
|
757
|
+
- db/migrate/20170318184654_add_title_and_content_disabled_to_snippet.rb
|
|
757
758
|
- lib/tasks/task_extras.rb
|
|
758
759
|
- lib/tasks/udongo_tasks.rake
|
|
759
760
|
- lib/udongo.rb
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
en:
|
|
2
|
-
g:
|
|
3
|
-
address: Address
|
|
4
|
-
cancel: Cancel
|
|
5
|
-
category: Category
|
|
6
|
-
close: Close
|
|
7
|
-
first_name: First name
|
|
8
|
-
last_name: Last name
|
|
9
|
-
description: Description
|
|
10
|
-
email: E-mail
|
|
11
|
-
house_number: Housenumber
|
|
12
|
-
name: Name
|
|
13
|
-
save: Save
|
|
14
|
-
search: Search
|
|
15
|
-
subject: Subject
|
|
16
|
-
telephone: Telephone
|
|
17
|
-
type: Type
|