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.1.5 lib/nexmo_developer/app/views/static/default_landing/partials/_header.html.erb
station-0.1.4 lib/nexmo_developer/app/views/static/default_landing/partials/_header.html.erb
station-0.1.3 lib/nexmo_developer/app/views/static/default_landing/partials/_header.html.erb
station-0.1.2 lib/nexmo_developer/app/views/static/default_landing/partials/_header.html.erb
station-0.1.1 lib/nexmo_developer/app/views/static/default_landing/partials/_header.html.erb
station-0.1.0 lib/nexmo_developer/app/views/static/default_landing/partials/_header.html.erb
station-0.0.145 lib/nexmo_developer/app/views/static/default_landing/partials/_header.html.erb
station-0.0.144 lib/nexmo_developer/app/views/static/default_landing/partials/_header.html.erb
station-0.0.143 lib/nexmo_developer/app/views/static/default_landing/partials/_header.html.erb
station-0.0.142 lib/nexmo_developer/app/views/static/default_landing/partials/_header.html.erb
station-0.0.141 lib/nexmo_developer/app/views/static/default_landing/partials/_header.html.erb
station-0.0.140 lib/nexmo_developer/app/views/static/default_landing/partials/_header.html.erb
station-0.0.139 lib/nexmo_developer/app/views/static/default_landing/partials/_header.html.erb
station-0.0.138 lib/nexmo_developer/app/views/static/default_landing/partials/_header.html.erb
station-0.0.137 lib/nexmo_developer/app/views/static/default_landing/partials/_header.html.erb
station-0.0.136 lib/nexmo_developer/app/views/static/default_landing/partials/_header.html.erb
station-0.0.135 lib/nexmo_developer/app/views/static/default_landing/partials/_header.html.erb
station-0.0.134 lib/nexmo_developer/app/views/static/default_landing/partials/_header.html.erb
station-0.0.133 lib/nexmo_developer/app/views/static/default_landing/partials/_header.html.erb
station-0.0.132 lib/nexmo_developer/app/views/static/default_landing/partials/_header.html.erb