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