tramway-core 1.7.1 → 1.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/tramway/core/title_helper.rb +18 -0
- data/lib/tramway/core/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '08f6f6bcde39befd59ba6691ac7af8c9ad1c6e7b411a77a43136e48ba3bdcbec'
|
4
|
+
data.tar.gz: be08d3d9cd2484c2669e514ed21c10f1c265fec09de9c37d393603f289f53af4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 273c2332f4f35eb86de887b7452c67cee82acb3ebc06c351ed90edbabfe89e57ffc420c7160b3f7f93ed49c48a54892b66a58369dd0cf1a7a5928bbfc71d7d1a
|
7
|
+
data.tar.gz: 0b628fc43bd379254fc06f5c2b499c454c8ffbbf902c64615b066c4548733be70f216fc10495febcb4e54accbc8d8b5f281ec17e21199cc564e20242e66dde73
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module Tramway
|
2
|
+
module Core
|
3
|
+
module TitleHelper
|
4
|
+
def title(page_title = default_title)
|
5
|
+
title_text = "#{page_title} | #{@application.title}"
|
6
|
+
content_for(:title) { title_text }
|
7
|
+
end
|
8
|
+
|
9
|
+
def default_title
|
10
|
+
t('.title')
|
11
|
+
end
|
12
|
+
|
13
|
+
def page_title(action, model_name)
|
14
|
+
t("helpers.actions.#{action}") + ' ' + genitive(model_name)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
data/lib/tramway/core/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tramway-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Kalashnikov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: reform-rails
|
@@ -228,6 +228,7 @@ files:
|
|
228
228
|
- app/forms/tramway/core/application_form.rb
|
229
229
|
- app/forms/tramway/core/extendable_form.rb
|
230
230
|
- app/forms/tramway/core/form_creator.rb
|
231
|
+
- app/helpers/tramway/core/title_helper.rb
|
231
232
|
- app/inputs/date_picker_input.rb
|
232
233
|
- app/models/tramway/core/application_record.rb
|
233
234
|
- app/uploaders/application_uploader.rb
|