Skip to content

Commit

Permalink
Adds anonymous prosecutor headshot
Browse files Browse the repository at this point in the history
  • Loading branch information
billimarie committed Aug 27, 2020
1 parent 149fdc1 commit 2acb9b5
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 9 deletions.
12 changes: 8 additions & 4 deletions client/templates/attorney-view/attorney-view.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@
<div class="jumbotron">
<div class="container">
<div class="row">
<div class="col-xs-4">
<img src="{{headshot}}" class="thumbnail" width="100%"/>
<div class="col-md-4">
{{#if headshot}}
<img src="{{headshot}}" class="thumbnail" width="100%" />
{{else}}
<img src="/images/anon-prosecutor.jpg" class="thumbnail" width="100%" />
{{/if}}
</div>
<div class="col-sm-8">
<div class="col-md-8" style="text-align: left;">
<h1>{{name}}</h1>
<h2>{{role}}</h2>
<h3><strong>{{state}}</strong> ({{county}})</h3>
Expand Down Expand Up @@ -76,7 +80,7 @@ <h3><strong>{{state}}</strong> ({{county}})</h3>
<div class="container">
<div class="row">
<div class="page-header">
<h2><strong>Relevant Cases</strong> <small>Cases available online</small></h2>
<h2><strong>Relevant Cases</strong><br /><small>Cases available online</small></h2>
<ul class="case-list">
{{#each relevantCases}}
<li>
Expand Down
6 changes: 5 additions & 1 deletion client/templates/pages/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ <h4>Recently Updated</h4>
{{#each recentAttorneys}}
<li class="col-sm-3 single-attorney">
<a href="{{pathFor 'attorneyView'}}">
<div class="thumbnail" style="background-image:url('{{headshot}}')"></div>
{{#if headshot}}
<div class="thumbnail" style="background-image:url('{{headshot}}')"></div>
{{else}}
<div class="thumbnail" style="background-image:url('images/anon-prosecutor.jpg')"></div>
{{/if}}
<h3>{{name}}</h3>
<h4>{{state}}</h4>
<h4>{{role}}</h4>
Expand Down
24 changes: 20 additions & 4 deletions client/templates/sections/current-prosecutors.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ <h3>Filter by Role</h3>
<li class="card col-sm-3 single-attorney">
<a href="{{pathFor 'attorneyView'}}">
<h3 class="card-header">{{name}}</h3>
<div class="thumbnail" style="background-image:url('{{headshot}}')"></div>
{{#if headshot}}
<div class="thumbnail" style="background-image:url('{{headshot}}')"></div>
{{else}}
<div class="thumbnail" style="background-image:url('images/anon-prosecutor.jpg')"></div>
{{/if}}
<div class="card-body">
<h4 class="card-title">{{role}}</h4>
<h5 class="card-subtitle">{{state}}</h5>
Expand Down Expand Up @@ -83,7 +87,11 @@ <h5 class="card-subtitle">{{state}}</h5>
<li class="card col-sm-3 single-attorney">
<a href="{{pathFor 'attorneyView'}}">
<h3 class="card-header">{{name}}</h3>
<div class="thumbnail" style="background-image:url('{{headshot}}')"></div>
{{#if headshot}}
<div class="thumbnail" style="background-image:url('{{headshot}}')"></div>
{{else}}
<div class="thumbnail" style="background-image:url('images/anon-prosecutor.jpg')"></div>
{{/if}}
<div class="card-body">
<h4 class="card-title">{{role}}</h4>
<h5 class="card-subtitle">{{state}}</h5>
Expand All @@ -109,7 +117,11 @@ <h5 class="card-subtitle">{{state}}</h5>
<li class="card col-sm-3 single-attorney">
<a href="{{pathFor 'attorneyView'}}">
<h3 class="card-header">{{name}}</h3>
<div class="thumbnail" style="background-image:url('{{headshot}}')"></div>
{{#if headshot}}
<div class="thumbnail" style="background-image:url('{{headshot}}')"></div>
{{else}}
<div class="thumbnail" style="background-image:url('images/anon-prosecutor.jpg')"></div>
{{/if}}
<div class="card-body">
<h4 class="card-title">{{role}}</h4>
<h5 class="card-subtitle">{{state}}</h5>
Expand All @@ -135,7 +147,11 @@ <h5 class="card-subtitle">{{state}}</h5>
<li class="card col-sm-3 single-attorney">
<a href="{{pathFor 'attorneyView'}}">
<h3 class="card-header">{{name}}</h3>
<div class="thumbnail" style="background-image:url('{{headshot}}')"></div>
{{#if headshot}}
<div class="thumbnail" style="background-image:url('{{headshot}}')"></div>
{{else}}
<div class="thumbnail" style="background-image:url('images/anon-prosecutor.jpg')"></div>
{{/if}}
<div class="card-body">
<h4 class="card-title">{{role}}</h4>
<h5 class="card-subtitle">{{state}}</h5>
Expand Down
Binary file added public/images/anon-prosecutor.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2acb9b5

Please sign in to comment.