Sha256: 168f5ad65de658e83c8efe339fe95eb82fb3566fb1e96e5eb225884812835079

Contents?: true

Size: 1.03 KB

Versions: 18

Compression:

Stored size: 1.03 KB

Contents

- # TODO: possible future improvements
- # - break up list of properties by graph
- # - show inbound links

- title = human_readable_name(resource)
- rdf_type_label = PublishMyData::RdfType.find(resource.rdf_type.first.to_s).label rescue nil

- highlight_in_menu "catalogue"
- set_page_title("Resource: #{title}")
- page_kind 'resource'
- set_pmd_page_class 'resource'

- additional_formats_for_resource(resource.uri)

%header
	= fullwidth do
		= badge("resource")
		= page_title(title)
		= title_uri resource.uri.to_s
	= fullwidth do
		=label(resource.read_predicate(RDF.type).many? ? 'Types' : 'Type')
		%p= resource.read_predicate(RDF.type).map { |t| resource_uri_or_label(resource, t) }.join(", ").html_safe
		- if resource.theme
			=label("Theme")
			%p= link_to "#{resource.theme.label || resource.theme.uri}", theme_path(resource.theme)
		- if resource.dataset
			=label("Dataset")
			%p= link_to "#{resource.dataset.label || resource.dataset.uri}", dataset_path(resource.dataset)

= render  'publish_my_data/stripes/resource_data', resource: resource

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
publish_my_data-1.3.25 app/views/publish_my_data/resources/show.html.haml
publish_my_data-1.3.24 app/views/publish_my_data/resources/show.html.haml
publish_my_data-1.3.23 app/views/publish_my_data/resources/show.html.haml
publish_my_data-1.3.22 app/views/publish_my_data/resources/show.html.haml
publish_my_data-1.3.21 app/views/publish_my_data/resources/show.html.haml
publish_my_data-1.3.20 app/views/publish_my_data/resources/show.html.haml
publish_my_data-1.3.19 app/views/publish_my_data/resources/show.html.haml
publish_my_data-1.3.18 app/views/publish_my_data/resources/show.html.haml
publish_my_data-1.3.17 app/views/publish_my_data/resources/show.html.haml
publish_my_data-1.3.16 app/views/publish_my_data/resources/show.html.haml
publish_my_data-1.3.15 app/views/publish_my_data/resources/show.html.haml
publish_my_data-1.3.14 app/views/publish_my_data/resources/show.html.haml
publish_my_data-1.3.13 app/views/publish_my_data/resources/show.html.haml
publish_my_data-1.3.12 app/views/publish_my_data/resources/show.html.haml
publish_my_data-1.3.11 app/views/publish_my_data/resources/show.html.haml
publish_my_data-1.3.10 app/views/publish_my_data/resources/show.html.haml
publish_my_data-1.3.9 app/views/publish_my_data/resources/show.html.haml
publish_my_data-1.3.8 app/views/publish_my_data/resources/show.html.haml