aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/config/custom-routes.rb4
-rw-r--r--lib/controller_patches.rb10
-rw-r--r--lib/customstates.rb18
-rw-r--r--lib/public_body_categories_en.rb8
-rw-r--r--lib/views/general/mycontroller.html.erb7
-rw-r--r--lib/views/help/about.es.html.erb8
-rw-r--r--lib/views/help/help_out.html.erb9
-rw-r--r--lib/views/help/help_out.rhml9
-rw-r--r--lib/views/outgoing_mailer/initial_request.text.erb9
9 files changed, 6 insertions, 76 deletions
diff --git a/lib/config/custom-routes.rb b/lib/config/custom-routes.rb
index 5aeb7c2..41feae8 100644
--- a/lib/config/custom-routes.rb
+++ b/lib/config/custom-routes.rb
@@ -1,8 +1,4 @@
# Here you can override or add to the pages in the core website
Rails.application.routes.draw do
- # brand new controller example
- match '/mycontroller' => 'general#mycontroller'
- # Additional help page example
- match '/help/help_out' => 'help#help_out'
end
diff --git a/lib/controller_patches.rb b/lib/controller_patches.rb
index 9959f86..8695d30 100644
--- a/lib/controller_patches.rb
+++ b/lib/controller_patches.rb
@@ -5,14 +5,4 @@
# See http://stackoverflow.com/questions/7072758/plugin-not-reloading-in-development-mode
#
Rails.configuration.to_prepare do
- # Example adding an instance variable to the frontpage controller
- GeneralController.class_eval do
- def mycontroller
- @say_something = "Greetings friend"
- end
- end
- HelpController.class_eval do
- def help_out
- end
- end
end
diff --git a/lib/customstates.rb b/lib/customstates.rb
index c09eb8c..15704d4 100644
--- a/lib/customstates.rb
+++ b/lib/customstates.rb
@@ -19,17 +19,13 @@ module InfoRequestCustomStates
end
# Mixin methods for InfoRequest
- module ClassMethods
+ module ClassMethods
def theme_display_status(status)
- if status == 'transferred'
- _("Transferred.")
- else
- raise _("unknown status ") + status
- end
+ raise _("unknown status ") + status
end
def theme_extra_states
- return ['transferred']
+ return []
end
end
end
@@ -39,12 +35,8 @@ module RequestControllerCustomStates
def theme_describe_state(info_request)
# called after the core describe_state code. It should
# end by raising an error if the status is unknown
- if info_request.calculate_status == 'transferred'
- flash[:notice] = _("Authority has transferred your request to a different public body.")
- redirect_to request_url(@info_request)
- else
- raise "unknown calculate_status " + info_request.calculate_status
- end
+
+ raise "unknown calculate_status " + info_request.calculate_status
end
end
diff --git a/lib/public_body_categories_en.rb b/lib/public_body_categories_en.rb
index a8969ba..3bf90c5 100644
--- a/lib/public_body_categories_en.rb
+++ b/lib/public_body_categories_en.rb
@@ -7,10 +7,4 @@
# [ "another_tag_2", "Another sub category title", "another descriptive sentence"]
# ])
-PublicBodyCategories.add(:en, [
- "Silly ministries",
- [ "useless_agency", "Useless ministries", "a useless ministry" ],
- [ "lonely_agency", "Lonely agencies", "a lonely agency"],
- "Popular agencies",
- [ "popular_agency", "Popular agencies", "a lonely agency"]
-])
+PublicBodyCategories.add(:en, [])
diff --git a/lib/views/general/mycontroller.html.erb b/lib/views/general/mycontroller.html.erb
deleted file mode 100644
index ad642d3..0000000
--- a/lib/views/general/mycontroller.html.erb
+++ /dev/null
@@ -1,7 +0,0 @@
-<% @title = "My new controller" %>
-
-<h1>My new controller</h1>
-
-<p>This is a view of a controller that does almost nothing, except output the words <code><%= @say_something %></code></p>
-
-
diff --git a/lib/views/help/about.es.html.erb b/lib/views/help/about.es.html.erb
deleted file mode 100644
index 9588249..0000000
--- a/lib/views/help/about.es.html.erb
+++ /dev/null
@@ -1,8 +0,0 @@
-<% @title = "Sobre" %>
-<%#-*- coding: utf8 -*-%>
-<%= render :partial => 'sidebar' %>
-
-<div id="left_column_flip">
- <h1>¡Bonjiorno amis!</h1>
- <p>Esta sito tu aidare a faire los requestio</p>
-</div>
diff --git a/lib/views/help/help_out.html.erb b/lib/views/help/help_out.html.erb
deleted file mode 100644
index 6fadca4..0000000
--- a/lib/views/help/help_out.html.erb
+++ /dev/null
@@ -1,9 +0,0 @@
-<% @title = "Help out" %>
-
-<%= render :partial => 'sidebar' %>
-<div id="left_column_flip">
- <h1>Help us!</h1>
-
- <p>This is a custom "help out" page, showing how you can add new pages to Alaveteli from within a theme.</p>
-</div>
-
diff --git a/lib/views/help/help_out.rhml b/lib/views/help/help_out.rhml
deleted file mode 100644
index 6744a27..0000000
--- a/lib/views/help/help_out.rhml
+++ /dev/null
@@ -1,9 +0,0 @@
-<% @title = "Help out" %>
-
-<%= render :partial => 'sidebar' %>
-
-<h1>Help us!</h1>
-
-<p>This is a custom "help out" page, showing how you can add new pages to Alaveteli from a theme. There's no navigation to it, though! You'd need to add that in your own custom <code>_sidebar.rhtml</code></p>
-
-
diff --git a/lib/views/outgoing_mailer/initial_request.text.erb b/lib/views/outgoing_mailer/initial_request.text.erb
deleted file mode 100644
index f927ad2..0000000
--- a/lib/views/outgoing_mailer/initial_request.text.erb
+++ /dev/null
@@ -1,9 +0,0 @@
-<%= raw @outgoing_message.body.strip %>
-
--------------------------------------------------------------------
-
-<%= _('This is an FOI request done via the {{site_name}} website. This footer has been overriden by the sample Alaveteli theme.', :site_name => site_name) %>
-
-<%= render :partial => 'followup_footer' %>
-
--------------------------------------------------------------------