publish_my_data 1.3.16 → 1.3.17
Sign up to get free protection for your applications and to get access to all the features.
- data/app/assets/stylesheets/publish_my_data/core/2000-elements.scss +1 -0
- data/app/assets/stylesheets/publish_my_data/core/4000-layout.scss +11 -0
- data/app/assets/stylesheets/publish_my_data/core/5000-styling.scss +1 -1
- data/app/views/layouts/publish_my_data/docs.html.haml +2 -2
- data/app/views/publish_my_data/stripes/_dataset_sample_data.html.haml +11 -10
- data/lib/publish_my_data/version.rb +1 -1
- data/spec/dummy/log/test.log +17571 -0
- metadata +3 -3
@@ -149,6 +149,17 @@ th.centred {
|
|
149
149
|
margin-right: 10px;
|
150
150
|
}
|
151
151
|
|
152
|
+
// on dataset_sample_data stripe
|
153
|
+
.resource_links_list {
|
154
|
+
list-style: none;
|
155
|
+
margin: 0;
|
156
|
+
padding: 0;
|
157
|
+
}
|
158
|
+
|
159
|
+
.resource_links_list li{
|
160
|
+
margin-top: 4px;
|
161
|
+
}
|
162
|
+
|
152
163
|
/* 4100 - EXPERIMENTAL huge monitor support (most useful for SPARQL tool)
|
153
164
|
========================================================================== */
|
154
165
|
|
@@ -12,7 +12,7 @@
|
|
12
12
|
%tr
|
13
13
|
%td(colspan="2")
|
14
14
|
=label resource.read_predicate(RDF.type).many? ? 'Types' : 'Type'
|
15
|
-
%
|
15
|
+
%h4{style:"line-height:1.2em;"}= resource.read_predicate(RDF.type).map { |t| resource_uri_or_label(resource, t) }.join("<br>").html_safe
|
16
16
|
%h5
|
17
17
|
Subject:
|
18
18
|
= link_to (resource.label || resource.uri), resource_path_from_uri(resource.uri)
|
@@ -36,12 +36,13 @@
|
|
36
36
|
= link_to show_resource_path(uri: resource.uri, format: 'ttl'), target: 'blank' do
|
37
37
|
Raw data for this resource (.ttl)
|
38
38
|
%i.icon-popup
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
39
|
+
%ul.resource_links_list
|
40
|
+
- types_for_example_resource(dataset, resource).each do |type|
|
41
|
+
%li
|
42
|
+
View
|
43
|
+
= link_to list_resources_path(dataset: dataset, type_uri: type) do
|
44
|
+
all
|
45
|
+
= dataset.type_count(type.uri)
|
46
|
+
resources of type
|
47
|
+
%strong
|
48
|
+
= type.label.nil? ? type.uri : type.label
|