Sha256: 8eae58d7d871b985406d98234e2cda77ea1aec6e6f31940e76a18aed8c9cc0ef

Contents?: true

Size: 1.57 KB

Versions: 94

Compression:

Stored size: 1.57 KB

Contents

<%
    raise "Missing 'url' key in headshot landing page block" unless local_assigns['url']
    raise "Missing 'name' key in headshot landing page block" unless local_assigns['name']
    raise "Missing 'intro' key in headshot landing page block" unless local_assigns['intro']
    raise "Missing 'img_src' key in headshot landing page block" unless local_assigns['img_src']
%>

<div class="Nxd-profile Vlt-center">
  <a href="<%= local_assigns['url'] %>">
    <img src="<%= local_assigns['img_src'] %>" width="200" height="200" alt="<%= local_assigns['name'] %> headshot"/>
  </a>

  <h3><%= local_assigns['name'] %></h3>

  <p><%= local_assigns['intro'] %></p>

  <% if local_assigns['twitter'] %>
    <small>
      <svg class="Vlt-icon Vlt-icon--smaller Vlt-grey-darker">
        <use xlink:href="/symbol/volta-brand-icons.svg#Brand-icon-twitter" />
      </svg>
      <a target="_blank" href="https://twitter.com/<%= local_assigns['twitter'] %>">@<%= local_assigns['twitter'] %></a>
    </small>
  <% end %>

  <% if local_assigns['github'] %>
    <small>
      <svg class="Vlt-icon Vlt-icon--smaller Vlt-grey-darker">
        <use xlink:href="/symbol/volta-icons.svg#Vlt-icon-github" />
      </svg>
      <a target="_blank" href="https://github.com/<%= local_assigns['github'] %>"><%= local_assigns['github'] %></a>
    </small>
  <% end %>

  <% if local_assigns['location'] %>
    <small>
      <svg class="Vlt-icon Vlt-icon--smaller Vlt-grey-darker">
        <use xlink:href="/symbol/volta-icons.svg#Vlt-icon-world" />
      </svg>
      <%= local_assigns['location'] %>
    </small>
  <% end %>
</div>

Version data entries

94 entries across 94 versions & 1 rubygems

Version Path
station-0.4.6 lib/nexmo_developer/app/views/static/default_landing/partials/_headshot.html.erb
station-0.4.5 lib/nexmo_developer/app/views/static/default_landing/partials/_headshot.html.erb
station-0.4.4 lib/nexmo_developer/app/views/static/default_landing/partials/_headshot.html.erb
station-0.4.3 lib/nexmo_developer/app/views/static/default_landing/partials/_headshot.html.erb
station-0.4.2 lib/nexmo_developer/app/views/static/default_landing/partials/_headshot.html.erb
station-0.4.1 lib/nexmo_developer/app/views/static/default_landing/partials/_headshot.html.erb
station-0.4.0 lib/nexmo_developer/app/views/static/default_landing/partials/_headshot.html.erb
station-0.3.2 lib/nexmo_developer/app/views/static/default_landing/partials/_headshot.html.erb
station-0.3.1 lib/nexmo_developer/app/views/static/default_landing/partials/_headshot.html.erb
station-0.3.0 lib/nexmo_developer/app/views/static/default_landing/partials/_headshot.html.erb
station-0.2.6 lib/nexmo_developer/app/views/static/default_landing/partials/_headshot.html.erb
station-0.2.5 lib/nexmo_developer/app/views/static/default_landing/partials/_headshot.html.erb
station-0.2.4 lib/nexmo_developer/app/views/static/default_landing/partials/_headshot.html.erb
station-0.2.3 lib/nexmo_developer/app/views/static/default_landing/partials/_headshot.html.erb
station-0.2.2 lib/nexmo_developer/app/views/static/default_landing/partials/_headshot.html.erb
station-0.2.1 lib/nexmo_developer/app/views/static/default_landing/partials/_headshot.html.erb
station-0.2.0 lib/nexmo_developer/app/views/static/default_landing/partials/_headshot.html.erb
station-0.1.8 lib/nexmo_developer/app/views/static/default_landing/partials/_headshot.html.erb
station-0.1.7 lib/nexmo_developer/app/views/static/default_landing/partials/_headshot.html.erb
station-0.1.6 lib/nexmo_developer/app/views/static/default_landing/partials/_headshot.html.erb