-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #353 from alphagov/content-changes-3
Content changes
- Loading branch information
Showing
11 changed files
with
41 additions
and
36 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
9 changes: 8 additions & 1 deletion
9
app/views/petitions/search/result_items/_petition_result_for_facet_all.html.erb
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 |
---|---|---|
@@ -1,2 +1,9 @@ | ||
<h3><%= link_to petition.action, petition_path(petition) %></h3> | ||
<p><%= signature_count(:default, petition.signature_count) %></p> | ||
<% case petition.state %> | ||
<% when "open" %> | ||
<p><%= signature_count(:default, petition.signature_count) %></p> | ||
<% when "closed" %> | ||
<p><%= signature_count(:default, petition.signature_count) %>, now closed</p> | ||
<% when "rejected" %> | ||
<p>Rejected</p> | ||
<% end %> |
3 changes: 2 additions & 1 deletion
3
app/views/petitions/search/result_items/_petition_result_for_facet_with_response.html.erb
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<h3><%= link_to petition.action, petition_path(petition) %></h3> | ||
<p>Government responded – <%= short_date_format(petition.government_response_at) %></p> | ||
<p><%= petition.government_response.summary %></p> | ||
<p><%= signature_count(:default, petition.signature_count) %></p> | ||
<p>Responded <%= short_date_format(petition.government_response_at) %></p> |
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 |
---|---|---|
|
@@ -34,13 +34,13 @@ Feature: Suzie views a petition | |
Then I should see "Defence is the best Offence" | ||
|
||
Scenario: Suzie sees reason for rejection if appropriate | ||
Given a petition "Please bring back Eldorado" has been rejected with the reason "<i>We<i> like http://www.google.com and [email protected]" | ||
Given a petition "Please bring back Eldorado" has been rejected with the reason "We like http://www.google.com and [email protected]" | ||
When I view the petition | ||
Then I should see the petition details | ||
And I should see the reason for rejection | ||
And I should see "<i>We<i>" | ||
And I should not see a link called "http://www.google.com" linking to "http://www.google.com" | ||
And I should not see a link called "[email protected]" linking to "mailto:[email protected]" | ||
And I should see "We like http://www.google.com and [email protected]" | ||
And I should see a link called "http://www.google.com" linking to "http://www.google.com" | ||
And I should see a link called "[email protected]" linking to "mailto:[email protected]" | ||
And I should not see the vote count | ||
And I should see submitted date | ||
And I cannot sign the petition | ||
|
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