From f15300dd765252003da9f112775b9caed065c921 Mon Sep 17 00:00:00 2001 From: Luc Donnet Date: Fri, 6 Jan 2012 17:48:53 +0100 Subject: Initialize chouette2 --- app/helpers/application_helper.rb | 7 +++++++ app/helpers/application_helper.rb~ | 2 ++ app/helpers/lines_helper.rb | 2 ++ app/helpers/title_helper.rb | 15 +++++++++++++++ app/helpers/title_helper.rb~ | 11 +++++++++++ app/helpers/welcome_helper.rb | 2 ++ 6 files changed, 39 insertions(+) create mode 100644 app/helpers/application_helper.rb create mode 100644 app/helpers/application_helper.rb~ create mode 100644 app/helpers/lines_helper.rb create mode 100644 app/helpers/title_helper.rb create mode 100644 app/helpers/title_helper.rb~ create mode 100644 app/helpers/welcome_helper.rb (limited to 'app/helpers') diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb new file mode 100644 index 000000000..a16d32d46 --- /dev/null +++ b/app/helpers/application_helper.rb @@ -0,0 +1,7 @@ +module ApplicationHelper + + def chouette_line_path(line) + line_path(line) + end + +end diff --git a/app/helpers/application_helper.rb~ b/app/helpers/application_helper.rb~ new file mode 100644 index 000000000..de6be7945 --- /dev/null +++ b/app/helpers/application_helper.rb~ @@ -0,0 +1,2 @@ +module ApplicationHelper +end diff --git a/app/helpers/lines_helper.rb b/app/helpers/lines_helper.rb new file mode 100644 index 000000000..a03868a0a --- /dev/null +++ b/app/helpers/lines_helper.rb @@ -0,0 +1,2 @@ +module LinesHelper +end diff --git a/app/helpers/title_helper.rb b/app/helpers/title_helper.rb new file mode 100644 index 000000000..f5219276b --- /dev/null +++ b/app/helpers/title_helper.rb @@ -0,0 +1,15 @@ +module TitleHelper + + def title(title = nil) + if title + @title = title + else + @title + end + end + + def title_tag(title, options = nil) + content_tag :h2, title(title), options + end + +end diff --git a/app/helpers/title_helper.rb~ b/app/helpers/title_helper.rb~ new file mode 100644 index 000000000..aba7cc490 --- /dev/null +++ b/app/helpers/title_helper.rb~ @@ -0,0 +1,11 @@ +module TitleHelper + + def title(title = nil) + if title + @title = title + else + @title + end + end + +end diff --git a/app/helpers/welcome_helper.rb b/app/helpers/welcome_helper.rb new file mode 100644 index 000000000..eeead45fc --- /dev/null +++ b/app/helpers/welcome_helper.rb @@ -0,0 +1,2 @@ +module WelcomeHelper +end -- cgit v1.2.3