diff options
| author | Luc Donnet | 2012-01-06 17:48:53 +0100 | 
|---|---|---|
| committer | Luc Donnet | 2012-01-06 17:48:53 +0100 | 
| commit | f15300dd765252003da9f112775b9caed065c921 (patch) | |
| tree | 4501bef526ed159a0aeceb8c33709f4bb2c703ec /app/helpers | |
| download | chouette-core-f15300dd765252003da9f112775b9caed065c921.tar.bz2 | |
Initialize chouette2
Diffstat (limited to 'app/helpers')
| -rw-r--r-- | app/helpers/application_helper.rb | 7 | ||||
| -rw-r--r-- | app/helpers/application_helper.rb~ | 2 | ||||
| -rw-r--r-- | app/helpers/lines_helper.rb | 2 | ||||
| -rw-r--r-- | app/helpers/title_helper.rb | 15 | ||||
| -rw-r--r-- | app/helpers/title_helper.rb~ | 11 | ||||
| -rw-r--r-- | app/helpers/welcome_helper.rb | 2 | 
6 files changed, 39 insertions, 0 deletions
| 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 | 
