Sha256: ea82bc319ee5a694d948ebe2a3e217f8e3794db347b95e5fa9f804d37373d5ec

Contents?: true

Size: 1.13 KB

Versions: 6

Compression:

Stored size: 1.13 KB

Contents

<h1>Resources</h1>

<!-- Filter info -->

<% if @type_filter %>
  Of type:
  <% if @type %>
    <%= link_to @type.label || @type.uri, resource_path_from_uri(@type.uri) %>
  <% else %>
    <%= link_to @type_filter, resource_path_from_uri(@type_filter) %>
  <% end %>
  <br/>
<% end %>

<% if @dataset_filter %>
  In dataset:
  <% if @dataset %>
    <%= link_to @dataset.title, @dataset %>
  <% else %>
    <%= link_to @dataset_filter, resource_path_from_uri(@dataset_filter) %>
  <% end %>
  <br/>
<% end %>

<br/>

<% @resources.each do |r| %>
  <%= link_to (r.label || r.uri), resource_path_from_uri(r.uri) %><br/>
<% end %>

<%= paginate @resources %>

<br/>

Get this list as:
<%= link_to 'N-triples', :format => 'nt', :page => @pagination_params.page, :per_page => @pagination_params.per_page %>
<%= link_to 'Turtle', :format => 'ttl', :page => @pagination_params.page, :per_page => @pagination_params.per_page %>
<%= link_to 'RDF/XML', :format => 'rdf',:page => @pagination_params.page, :per_page => @pagination_params.per_page %>
<%= link_to 'JSON', :format => 'json', :page => @pagination_params.page, :per_page => @pagination_params.per_page %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
publish_my_data-0.0.10 app/views/publish_my_data/resources/index.html.erb
publish_my_data-0.0.9 app/views/publish_my_data/resources/index.html.erb
publish_my_data-0.0.8 app/views/publish_my_data/resources/index.html.erb
publish_my_data-0.0.7 app/views/publish_my_data/resources/index.html.erb
publish_my_data-0.0.5 app/views/publish_my_data/resources/index.html.erb
publish_my_data-0.0.4 app/views/publish_my_data/resources/index.html.erb