This repository has been archived by the owner on Jan 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
150 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<div class="summary-section"> | ||
<div class="summary-header complaints-list-detail-header"> | ||
<a href="<%= complaint.hses_link %>" target="_blank" class="display-flex flex-justify flex-align-center"> | ||
<h2>Complaint #<%= complaint.id %></h2> | ||
<div> | ||
<svg class="usa-icon" aria-hidden="true" focusable="false" role="img"> | ||
<use xlink:href="/assets/img/sprite.svg#arrow_forward"></use> | ||
</svg> | ||
</div> | ||
</a> | ||
</div> | ||
<div class="summary-body"> | ||
<div class="grid-row grid-gap"> | ||
<div class="grid-col-7"> | ||
<div> | ||
<span class="usa-tag"><%= complaint.priority %> </span> | ||
<span class="usa-tag"><%= complaint.status %> </span> | ||
</div> | ||
<p class="usa-prose"> | ||
<%= complaint.summary %> | ||
</p> | ||
</div> | ||
<div class="grid-col-5"> | ||
<div class="display-flex flex-justify"> | ||
<strong> Opened:</strong> | ||
<span><%= complaint.formatted_creation_date %> </span> | ||
</div> | ||
<div class="display-flex flex-justify"> | ||
<strong> Last Updated:</strong> | ||
<span><%= complaint.formatted_issue_last_updated %> </span> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
spec/views/grantees/_complaints_list_detail.html.erb_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
require "rails_helper" | ||
|
||
RSpec.describe "rendering complaints list" do | ||
let(:hses_complaint) { Api::FakeData::Complaint.new.data } | ||
let(:complaint) { Complaint.new(hses_complaint) } | ||
|
||
it "displays a complaint card" do | ||
render partial: "grantees/complaints_list_detail", locals: {complaint: complaint} | ||
complaint_header = "<h2>Complaint ##{complaint.id}</h2>" | ||
expect(rendered.squish).to match complaint_header | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters