Sha256: 35027c078fa0f0dff9a1752eb27a3f403880ee8d3504ed982a068aaaa97175d2

Contents?: true

Size: 941 Bytes

Versions: 94

Compression:

Stored size: 941 Bytes

Contents

<% raise "Missing 'name' key in tutorial landing page block" unless local_assigns['name'] %>

<%
  path = Nexmo::Markdown::DocFinder.find(
    root: Tutorial.tutorials_path,
    document: "#{local_assigns['name']}.yml",
    language: @language,
  ).path

  raise "Unable to read file: #{path}" unless File.exist? path
  file = File.read(path)
%>
<% tutorial = YAML.safe_load(file) %>

<a class="Vlt-card" href="<%= tutorial['external_link'] ? tutorial['external_link'] : '/use-cases/' + local_assigns['name'] %>">
    <% if tutorial['image_url'] %>
        <img
            src="<%= tutorial['image_url'] %>"
            class="img-full"
            alt srcset=""
            sizes="(max-width: 100%) 100vw, 100%"
        >
    <% end %>
    <h4 class="Vlt-margin--top2"><%= tutorial['title'] %></h4>
    <% if tutorial['description'] %>
        <p>
            <%= tutorial['description'].render_markdown %>
        </p>
    <% end %>
</a>

Version data entries

94 entries across 94 versions & 1 rubygems

Version Path
station-0.5.16 lib/nexmo_developer/app/views/static/default_landing/partials/_tutorial.html.erb
station-0.5.15 lib/nexmo_developer/app/views/static/default_landing/partials/_tutorial.html.erb
station-0.5.14 lib/nexmo_developer/app/views/static/default_landing/partials/_tutorial.html.erb
station-0.5.13 lib/nexmo_developer/app/views/static/default_landing/partials/_tutorial.html.erb
station-0.5.12 lib/nexmo_developer/app/views/static/default_landing/partials/_tutorial.html.erb
station-0.5.11 lib/nexmo_developer/app/views/static/default_landing/partials/_tutorial.html.erb
station-0.5.10 lib/nexmo_developer/app/views/static/default_landing/partials/_tutorial.html.erb
station-0.5.9 lib/nexmo_developer/app/views/static/default_landing/partials/_tutorial.html.erb
station-0.5.8 lib/nexmo_developer/app/views/static/default_landing/partials/_tutorial.html.erb
station-0.5.7 lib/nexmo_developer/app/views/static/default_landing/partials/_tutorial.html.erb
station-0.5.6 lib/nexmo_developer/app/views/static/default_landing/partials/_tutorial.html.erb
station-0.5.5 lib/nexmo_developer/app/views/static/default_landing/partials/_tutorial.html.erb
station-0.5.4 lib/nexmo_developer/app/views/static/default_landing/partials/_tutorial.html.erb
station-0.5.3 lib/nexmo_developer/app/views/static/default_landing/partials/_tutorial.html.erb
station-0.5.2 lib/nexmo_developer/app/views/static/default_landing/partials/_tutorial.html.erb
station-0.5.1 lib/nexmo_developer/app/views/static/default_landing/partials/_tutorial.html.erb
station-0.5.0 lib/nexmo_developer/app/views/static/default_landing/partials/_tutorial.html.erb
station-0.4.9 lib/nexmo_developer/app/views/static/default_landing/partials/_tutorial.html.erb
station-0.4.8 lib/nexmo_developer/app/views/static/default_landing/partials/_tutorial.html.erb
station-0.4.7 lib/nexmo_developer/app/views/static/default_landing/partials/_tutorial.html.erb