Sha256: 51e95e9556273bbd3ce135f41b327bd09a8b6ceb8ff440c2eb28ec4f1f39b9e2

Contents?: true

Size: 1.35 KB

Versions: 94

Compression:

Stored size: 1.35 KB

Contents

<% 
    raise "Missing icon 'color' key in header landing page block" if local_assigns['icon'] && !local_assigns['icon']['color']
    raise "Missing icon 'name' key in header landing page block" if local_assigns['icon'] && !local_assigns['icon']['name']
    raise "Missing 'title' key in header landing page block" unless local_assigns['title']
%>
    <h1 class="Vlt-title--icon <%= "Vlt-title--#{local_assigns['title']['align']}" if local_assigns['title']['align'] %>" id="<%= local_assigns['title']['text'].parameterize %>">
      <% if local_assigns['icon'] %>
        <svg class="Vlt-<%= local_assigns['icon']['color'] %>">
          <use xlink:href="<%= local_assigns['icon']['name'].start_with?("Brand") ? "/symbol/volta-brand-icons.svg##{local_assigns['icon']['name']}" : "/symbol/volta-icons.svg#Vlt-#{local_assigns['icon']['name']}" %>"></use>
        </svg>
      <% end %>
      <%= local_assigns['title']['text'] %>
    </h1>
    <% if local_assigns['subtitle'] %>
    <% if local_assigns['subtitle']['align'] %>
        <div class="Vlt-<%= local_assigns['subtitle']['align'] %>">
    <% end %>
    <p class="<%= local_assigns['subtitle']['type'] == 'small' ? '' : 'p-large' %>">
        <%= local_assigns['subtitle']['text'].render_markdown({skip_paragraph_surround: true}) %>
    </p>
    <% if local_assigns['subtitle']['align'] %>
        </div>
    <% end %>
<% end %>

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/_header.html.erb
station-0.5.15 lib/nexmo_developer/app/views/static/default_landing/partials/_header.html.erb
station-0.5.14 lib/nexmo_developer/app/views/static/default_landing/partials/_header.html.erb
station-0.5.13 lib/nexmo_developer/app/views/static/default_landing/partials/_header.html.erb
station-0.5.12 lib/nexmo_developer/app/views/static/default_landing/partials/_header.html.erb
station-0.5.11 lib/nexmo_developer/app/views/static/default_landing/partials/_header.html.erb
station-0.5.10 lib/nexmo_developer/app/views/static/default_landing/partials/_header.html.erb
station-0.5.9 lib/nexmo_developer/app/views/static/default_landing/partials/_header.html.erb
station-0.5.8 lib/nexmo_developer/app/views/static/default_landing/partials/_header.html.erb
station-0.5.7 lib/nexmo_developer/app/views/static/default_landing/partials/_header.html.erb
station-0.5.6 lib/nexmo_developer/app/views/static/default_landing/partials/_header.html.erb
station-0.5.5 lib/nexmo_developer/app/views/static/default_landing/partials/_header.html.erb
station-0.5.4 lib/nexmo_developer/app/views/static/default_landing/partials/_header.html.erb
station-0.5.3 lib/nexmo_developer/app/views/static/default_landing/partials/_header.html.erb
station-0.5.2 lib/nexmo_developer/app/views/static/default_landing/partials/_header.html.erb
station-0.5.1 lib/nexmo_developer/app/views/static/default_landing/partials/_header.html.erb
station-0.5.0 lib/nexmo_developer/app/views/static/default_landing/partials/_header.html.erb
station-0.4.9 lib/nexmo_developer/app/views/static/default_landing/partials/_header.html.erb
station-0.4.8 lib/nexmo_developer/app/views/static/default_landing/partials/_header.html.erb
station-0.4.7 lib/nexmo_developer/app/views/static/default_landing/partials/_header.html.erb