diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2012-09-28 13:22:05 +1000 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2012-09-28 13:22:05 +1000 |
commit | bacacd16a480e4cf6b3104bf60714f53cd2adc28 (patch) | |
tree | d44b0886519ed0fe00b24510eddc2263db789bc4 | |
parent | 55ab9bab3719713c71a977877d510bd606cdbbff (diff) |
Extract partial for easy overriding in a theme
-rw-r--r-- | app/views/request/_summary_suggestion.rhtml | 5 | ||||
-rw-r--r-- | app/views/request/new.rhtml | 7 |
2 files changed, 6 insertions, 6 deletions
diff --git a/app/views/request/_summary_suggestion.rhtml b/app/views/request/_summary_suggestion.rhtml new file mode 100644 index 000000000..a5da09cda --- /dev/null +++ b/app/views/request/_summary_suggestion.rhtml @@ -0,0 +1,5 @@ +<% if @info_request.law_used == 'eir' %> + <%= _("'Pollution levels over time for the River Tyne'") %> +<% else %> + <%= _("'Crime statistics by ward level for Wales'") %> +<% end %> diff --git a/app/views/request/new.rhtml b/app/views/request/new.rhtml index 23212fc0b..2ef193c42 100644 --- a/app/views/request/new.rhtml +++ b/app/views/request/new.rhtml @@ -86,12 +86,7 @@ </p> <div class="form_item_note"> (<%= _("a one line summary of the information you are requesting, \n\t\t\te.g.") %> - <% if @info_request.law_used == 'eir' %> - <%= _("'Pollution levels over time for the River Tyne'") %> - <% else %> - <%= _("'Crime statistics by ward level for Wales'") %> - <% end %> - ) + <%= render :partial => "summary_suggestion" %>) </div> </div> |