aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB/Result/Problem.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2016-05-25 17:20:25 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2016-05-25 17:20:25 +0100
commit4ca6f431262c059ca1bb7cfe1e6188d363ca5a89 (patch)
treef72f295f278d0d9dd3a3eeb0431dda68a2e40171 /perllib/FixMyStreet/DB/Result/Problem.pm
parenteb3cebfcda16bfda4cfe261836d756e4699041aa (diff)
parent872545f8a71a98a91951be04515ca491e3cfed1d (diff)
Merge branch '694-summary-string-template-tidy'
Diffstat (limited to 'perllib/FixMyStreet/DB/Result/Problem.pm')
-rw-r--r--perllib/FixMyStreet/DB/Result/Problem.pm30
1 files changed, 0 insertions, 30 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Problem.pm b/perllib/FixMyStreet/DB/Result/Problem.pm
index 12dad073e..5b853134e 100644
--- a/perllib/FixMyStreet/DB/Result/Problem.pm
+++ b/perllib/FixMyStreet/DB/Result/Problem.pm
@@ -662,36 +662,6 @@ sub can_display_external_id {
return 0;
}
-# TODO Some/much of this could be moved to the template
-
-# either:
-# "sent to council 3 mins later"
-# "[Council name] ref: XYZ"
-# or
-# "sent to council 3 mins later, their ref: XYZ"
-#
-# Note: some silliness with pronouns and the adjacent comma mean this is
-# being presented as a single string rather than two
-sub processed_summary_string {
- my ( $problem, $c ) = @_;
- my ($duration_clause, $external_ref_clause);
- if ($problem->whensent) {
- $duration_clause = $problem->duration_string($c);
- }
- if ($problem->can_display_external_id) {
- if ($duration_clause) {
- $external_ref_clause = '<strong>' . sprintf(_('Council ref:&nbsp;%s'), $problem->external_id) . '.</strong>';
- } else {
- $external_ref_clause = '<strong>' . sprintf(_('%s ref:&nbsp;%s'), $problem->external_body, $problem->external_id) . '.</strong>';
- }
- }
- if ($duration_clause and $external_ref_clause) {
- return "$duration_clause. $external_ref_clause"
- } else {
- return $duration_clause || $external_ref_clause
- }
-}
-
sub duration_string {
my ( $problem, $c ) = @_;
my $body = $problem->body( $c );