Sha256: 24204455e6b6814ab7d7ff8da5a09fd33382fcedbebfb72c11aac066170ecec8

Contents?: true

Size: 794 Bytes

Versions: 2

Compression:

Stored size: 794 Bytes

Contents

- if (@additional_formats && @additional_formats.count > 0)
	%section
		=fullwidth do
			= section_title("Alternative formats")
			%p
				In addition to this bookmarkable html page, this
				%strong= @page_kind
				is also available for our robot customers in the following machine-readable formats:
				%span.visible_inline_when_javascript_available
					%a (show)
			.hidden_when_javascript_available
				- @additional_formats.each do |f|
					= label(f[:format])
					%code.codesmall.block.click_to_select=f[:link]
					=link_to "(download #{f[:format]})", f[:link]

:javascript
	$(".visible_inline_when_javascript_available a").click(function(e) {
		e.preventDefault();
		$(e.target).parent().hide();
		$(e.target).closest(".pmd_row").find(".hidden_when_javascript_available").show();
	});

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
publish_my_data-1.3.25 app/views/publish_my_data/stripes/_formats.html.haml
publish_my_data-1.3.24 app/views/publish_my_data/stripes/_formats.html.haml