noesya/osuny

View on GitHub
app/views/admin/communication/blocks/templates/license/_static.html.erb

Summary

Maintainability
Test Coverage
<%
cc = Licenses::CreativeCommons.create_from_block(block)
%>
<%= block_component_static block, :type %>
      creative_commons:
        attribution: <%= block.template.creative_commons_attribution %>
        commercial_use: <%= block.template.creative_commons_commercial_use %>
        derivatives: <%= block.template.creative_commons_derivatives %>
        sharing: <%= block.template.creative_commons_sharing %>
        identifier: <%= cc.identifier %>
        label: >-
          <%= cc.to_s %>
        url: <%= cc.url %>
        icons: <%= raw cc.icons %>