From e93140c1083ac9dde55d27d5e0685e9b77527d51 Mon Sep 17 00:00:00 2001 From: hukl Date: Tue, 20 Jul 2010 09:17:19 +0200 Subject: adding sponsors footer --- app/controllers/tags_controller.rb | 2 ++ app/views/layouts/application.html.erb | 8 ++++++++ config/locales/de.yml | 4 +++- config/locales/en.yml | 1 + 4 files changed, 14 insertions(+), 1 deletion(-) diff --git a/app/controllers/tags_controller.rb b/app/controllers/tags_controller.rb index fe3380d..565cdd4 100644 --- a/app/controllers/tags_controller.rb +++ b/app/controllers/tags_controller.rb @@ -14,6 +14,8 @@ class TagsController < ApplicationController @tag = @tag ? @tag.name : params[:id] @page = Page.new + + params[:page] = ( params[:page].is_a?(Fixnum) ? params[:page] : 1 ) @pages = Page.heads.paginate( Page.find_options_for_find_tagged_with(@tag).merge( diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index c75b803..678180d 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -42,6 +42,14 @@
<%= yield :layout %> + +
<%= tags %> diff --git a/config/locales/de.yml b/config/locales/de.yml index ff66ea1..7196120 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -2,6 +2,7 @@ # by Clemens Kofler (clemens@railway.at) de: + sponsors: Sponsoren show_tag_headline: "Seiten mit dem Tag:" old_ccc_de: das alte ccc.de date: @@ -118,4 +119,5 @@ de: less_than: "must be less than {{count}}" less_than_or_equal_to: "must be less than or equal to {{count}}" odd: "must be odd" - even: "must be even" \ No newline at end of file + even: "must be even" + \ No newline at end of file diff --git a/config/locales/en.yml b/config/locales/en.yml index 8a25451..e68cead 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2,6 +2,7 @@ # See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points. en: + sponsors: sponsors hello: "Hello world" show_tag_headline: "Pages tagged with:" old_ccc_de: the old ccc.de \ No newline at end of file -- cgit v1.3