Sha256: 56f5f03af77aa11ef263440971a712a40ff5e289072abc3ca6a559f5a060cfa3

Contents?: true

Size: 1.64 KB

Versions: 5

Compression:

Stored size: 1.64 KB

Contents

<h1><img src="<%=h @user.avatar_url %>" alt="<%=h @user.name %>" width="64" height="64" /> <strong><%=h @user.name %></strong></h1>

<h2>Basic Information</h2>
<table class="table user-details">
  <tr>
    <th>Name:</th>
    <td><%=h @user.name %></td>
    <th>Username:</th>
    <td><%=h @user.username %> (<a href="http://www.namechecklist.com/#!<%=h @user.username %>" target="_blank" title="Find other sites where this username is taken">elsewhere</a>)</td>
    <th>E-mail:</th>
    <td><%=h @user.email || "None" %></td>
  </tr>
  <tr>
    <th>Location:</th>
    <td><%=h @user.location || "Unknown" %></td>
    <th>Website:</th>
    <td><%=h @user.website || "None" %></td>
    <th>Bio:</th>
    <td><%=h @user.bio %></td>
  </tr>
</table>

<% if @user.repos.count.zero? %>
  <div class="alert alert-info" role="alert">
    <strong><%=h @user.name %> has no public repositories.</strong>
  </div>
<% else %>
  <h2>Repositories</h2>
  <table class="table table-striped table-hover table-condensed user-repositories">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
        <th style="width:50px;text-align:right">Findings</th>
      </tr>
    </thead>
    <tbody>
      <% @repos.each do |repository| %>
        <% if repository.findings.count.zero? %>
          <tr>
        <% else %>
          <tr class="warning">
        <% end %>
          <td><strong><a href="/repos/<%=h repository.id %>"><%=h repository.name %></a></strong></td>
          <td><%=h repository.description %></td>
          <td style="text-align:center"><strong><%=h repository.findings.count %></strong></td>
        </tr>
      <% end %>
    </tbody>
  </table>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gitrob-0.0.6 views/user.erb
gitrob-0.0.5 views/user.erb
gitrob-0.0.4 views/user.erb
gitrob-0.0.3 views/user.erb
gitrob-0.0.2 views/user.erb