ttl2html 2.0.8 → 2.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ttl2html/version.rb +1 -1
- data/lib/ttl2html.rb +2 -0
- data/templates/about.html.erb +3 -0
- data/templates/index.html.erb +3 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d3fad4daa86b1212d5909af7b9ec124931c30442c693ab2c2d1e9c94a955727
|
4
|
+
data.tar.gz: b93501d62ca5185abb8c938cbda8854d0ce16f9cce1e52f890c910c51323c499
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35efabb00707c56a13bad316ff4cfac888f7ac0fef2e671aa17c73fd8eb07b55c859429e0261cd59d67054fc31df8cfd977a72234749972dbf19f4c0140dc365
|
7
|
+
data.tar.gz: 5f8c97ee2679fbc108cbd61826b215be630f37c891cdd1a2e37152ac95d562a97e9f9920e3e9718c8b99d7aa9288b124f0ae29504b7c3b1980292dabdf69416b
|
data/lib/ttl2html/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
TTL2HTML::VERSION = "2.0.
|
1
|
+
TTL2HTML::VERSION = "2.0.9"
|
data/lib/ttl2html.rb
CHANGED
@@ -199,6 +199,7 @@ module TTL2HTML
|
|
199
199
|
param[:data_inverse_global] = @data_inverse
|
200
200
|
param[:versions] = versions
|
201
201
|
param[:toplevel] = toplevel
|
202
|
+
param[:description] = template.to_html_raw("description.html", {}) if template.find_template_path("description.html")
|
202
203
|
subjects.sort.each do |subject|
|
203
204
|
objects = []
|
204
205
|
if @config.has_key? :top_additional_property
|
@@ -227,6 +228,7 @@ module TTL2HTML
|
|
227
228
|
param[:data_global] = @data
|
228
229
|
param[:versions] = versions
|
229
230
|
param[:toplevel] = toplevel
|
231
|
+
param[:description] = template.to_html_raw("description.html", {}) if template.find_template_path("description.html")
|
230
232
|
param[:shapes] = {}
|
231
233
|
shapes.each do |subject|
|
232
234
|
orders = []
|
data/templates/about.html.erb
CHANGED
@@ -4,6 +4,9 @@
|
|
4
4
|
<%- if param[:toplevel] and param[:toplevel][:description] -%>
|
5
5
|
<p><%= get_language_literal(param[:toplevel][:description]) %></p>
|
6
6
|
<%- end -%>
|
7
|
+
<%- if param[:description] -%>
|
8
|
+
<div class="description"><%= param[:description] %></div>
|
9
|
+
<%- end -%>
|
7
10
|
</div>
|
8
11
|
</div>
|
9
12
|
<div class="container">
|
data/templates/index.html.erb
CHANGED
@@ -4,6 +4,9 @@
|
|
4
4
|
<%- if param[:toplevel] and param[:toplevel][:description] -%>
|
5
5
|
<p><%= get_language_literal(param[:toplevel][:description]) %></p>
|
6
6
|
<%- end -%>
|
7
|
+
<%- if param[:description] -%>
|
8
|
+
<div class="description"><%= param[:description] %></div>
|
9
|
+
<%- end -%>
|
7
10
|
<p><i class="bi bi-link-45deg"></i> <a href="<%=h param[:base_uri] %>"><%=h param[:base_uri] %></a></p>
|
8
11
|
<p><a class="btn btn-info" href="<%=h relative_path(param[:about_file] || "about.html") %>"><%=h t("about.title", title: param[:site_title]) %> »</a></p>
|
9
12
|
</div>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ttl2html
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masao Takaku
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-03-
|
11
|
+
date: 2024-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|